PDA

View Full Version : Is it possible to report the hardware detected?



dataco
12-18-2005, 12:24 PM
Hi all

New to linux.

Is there a way to produce a report of the hardware that knoppix has detected? I have used the Kinfo Center program but there doesnt seem to be a way of exporting this info to a text file.

Many thanks
AlanC

OErjan
12-18-2005, 02:16 PM
here you have a a script to give you a extremly verbose description on what is on your computer, some things will be shown several times, as to what is detected and what works... that requires some knowledge, but this should give most info you likely need.


#hardwarescript.sh
#/bin/sh
true ; ( set -x
sudo su
lspci -vv
lsusb -vv
lsmod
ifconfig
iwconfig
cat /etc/fstab
fdisk -l
mount
dmesg
) >& result.txt
copy the text to a textfile called hardwarescript.sh save it in /home/knoppix and make it executable.
to make it executable you open a console, terminal... (it is the icon like a computerscreen) and issue the comand
chmod +x /home/knoppix/hardwarescript.sh

dataco
12-18-2005, 02:24 PM
Hi OErjan

Thats great, I'll give it a try.

Many thanks
AlanC

rrk
12-18-2005, 09:36 PM
see if you have l shw or apt-get it
lshw > hardware.txt the lspci -vv is nice

dataco
12-20-2005, 12:57 PM
Hi rrk

I've tried to apt-get install lshw from knoppix but it can't find it to install. I have found the source on the programmers website. Is this likely to compile and run when I boot knoppix from CD?

Thanks
AlanC

rrk
12-20-2005, 06:34 PM
lshw should be in testing
apt-get -t testing install lshw

dataco
12-20-2005, 09:03 PM
Hi

I had to do an apt-get update before the command you gave me would work. It took quite a while to update. Any ideas? I thought I was using the latest knoppix. v4.0.2.

Thanks again
AlanC