hwinfo-simple/
├── DEBIAN/
│ ├── control
│ └── postinst
└── usr/
└── bin/
└── hwinfo-simple
mkdir -p hwinfo-simple/DEBIAN
mkdir -p hwinfo-simple/usr/bin# Copy the hwinfo script to hwinfo-simple/usr/bin/hwinfo-simple
# Make it executable:
chmod +x hwinfo-simple/usr/bin/hwinfo-simplePackage: 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.
#!/bin/bash
echo "hwinfo-simple installed successfully!"
echo "Run 'hwinfo-simple' to display hardware information."chmod 755 hwinfo-simple/DEBIAN/postinst
chmod 755 hwinfo-simple/usr/bin/hwinfo-simpledpkg-deb --build hwinfo-simpleThis will create hwinfo-simple.deb
sudo dpkg -i hwinfo-simple.debhwinfo-simplesudo dpkg -r hwinfo-simple- 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