Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Simple Hardware Info Package

Package Structure

hwinfo-simple/
├── DEBIAN/
│   ├── control
│   └── postinst
└── usr/
    └── bin/
        └── hwinfo-simple

Building the Package

1. Create the directory structure:

mkdir -p hwinfo-simple/DEBIAN
mkdir -p hwinfo-simple/usr/bin

2. Copy the script:

# Copy the hwinfo script to hwinfo-simple/usr/bin/hwinfo-simple
# Make it executable:
chmod +x hwinfo-simple/usr/bin/hwinfo-simple

3. Create DEBIAN/control file:

Package: hwinfo-simple
Version: 1.0-1
Section: utils
Priority: optional
Architecture: all
Depends: bash
Maintainer: Your Name <your.email@example.com>
Description: Simple hardware information display tool
 A lightweight command-line utility that displays basic hardware
 information including CPU, memory, storage, and network details.

4. Create DEBIAN/postinst file:

#!/bin/bash
echo "hwinfo-simple installed successfully!"
echo "Run 'hwinfo-simple' to display hardware information."

5. Set permissions:

chmod 755 hwinfo-simple/DEBIAN/postinst
chmod 755 hwinfo-simple/usr/bin/hwinfo-simple

6. Build the package:

dpkg-deb --build hwinfo-simple

This will create hwinfo-simple.deb

7. Install the package:

sudo dpkg -i hwinfo-simple.deb

8. Use the tool:

hwinfo-simple

Uninstall

sudo dpkg -r hwinfo-simple

Features

  • Displays CPU information (model, cores)
  • Shows memory usage (total/available)
  • Lists disk usage for mounted filesystems
  • Shows network interfaces and IP addresses
  • Displays GPU information (if lspci available)
  • Counts USB devices (if lsusb available)
  • Works on most Linux distributions
  • No external dependencies beyond basic system tools

About

Simple hardware information display utility hwsnap provides a quick overview of your system's hardware configuration including processor details, memory usage, disk space, network interfaces, and graphics information. Designed for system administrators and users who need fast access to essential hardware details without installing heavy tools

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages