[Sussex] Finding pc hardware details in Linux

Steve Dobson steve.dobson at syscall.org.uk
Mon Apr 28 16:42:07 UTC 2008


Peter/David

On Mon, 2008-04-28 at 14:12 +0100, petermoule2 at tiscali.co.uk wrote:
> I need to know how to find out the hardware details of my PC plus  ram etc.  
> In Windows it is easy as you just right click on My Computer and pick 
> properties.  This  then shows me the PC details and another tab giving details 
> of peripherals such as graphics adaptors, USB and printer ports.
> 
> Can you advise me how to get this information in PCLinux.

The best way, IMHO, is to use the command line programs to gather this
information.  The main reason for this is that you can then cut and
paste the data from the terminal window into an e-mail, they are almost
certainly going to what to read it.  With a graphic app you run the risk
of not coping the information accurately.

Memory Information:
===================

$ cat /proc/meminfo
MemTotal:      2063624 kB
MemFree:        132600 kB
Buffers:          2084 kB
Cached:         803264 kB

	and lots, lots more.

CPU Information:
================

$ cat /proc/cpuinfo
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 15
model		: 47
model name	: AMD Athlon(tm) 64 Processor 3500+

	and lots, lots more

PCI Device Information:
=======================

$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. K8T800Pro Host Bridge
00:0a.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 
	Gigabit Ethernet Controller (rev 13)
00:0c.0 VGA compatible controller: Texas Instruments TVP4020
	[Permedia 2] (rev 01)

		and lots, lots more

If your want more information on use the "-v" flag.  If you want
information about only one device use the "-s" flag and give a PCI
address.

$ lspci -v -s 00:0a.0
00:0a.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001
	Gigabit Ethernet Controller (rev 13)
	Subsystem: ASUSTeK Computer Inc. Marvell 88E8001 Gigabit
	Ethernet Controller (Asus)
		Flags: bus master, 66MHz, medium devsel, latency 64,
			IRQ 17
		Memory at faa00000 (32-bit, non-prefetchable) [size=16K]
		I/O ports at a800 [size=256]
		Expansion ROM at fa900000 [disabled] [size=128K]
		Capabilities: <access denied>
		Kernel driver in use: skge
		Kernel modules: skge

USB Device Information:
=======================

You need to become root for this.  I don't know if PCLinux linux uses
"sudo" or allows stright "su" to become root.  So the command is either:
	$ sudo bash
or
	$ su -

If that doesn't work trying logging in as root at the graphical login
screen.  I don't recommend the last option as it gives to much power to
the graphical apps - they can, for example, over right any file,
including the important system files.  The better way is to loggin in
graphically as a normal user and then use "sudo" or "su" to become root.

At the end of the day you'll need root's "#" prompt to get sensible USB
information.

# lsusb
Bus 005 Device 002: ID 04cf:8819 Myson Century, Inc. 
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  

Like "lspci" you can use the "-v" flag and "-s" flag to get more
detailed information:

# lsusb -v -s 005:002

Bus 005 Device 002: ID 04cf:8819 Myson Century, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  idVendor           0x04cf Myson Century, Inc.
  idProduct          0x8819 
  bcdDevice           a2.13
  iManufacturer           1 Myson Century, Inc.
  iProduct                2 CS8819A2-113
  iSerial                 3 100
  bNumConfigurations      1
  Configuration Descriptor:
    iConfiguration          4 USB Mass Storage

	and lots, lots more.

Hope this helps.

Note.  I have edited the output to format better for e-mail.

Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20080428/90fd4035/attachment.pgp 


More information about the Sussex mailing list