22/07/2008

lshw: a pretty useful system analysis tool...

...which is not included in the openSuSE distribution. Get the sources from ezix.org.
Untar, run make, if you want the GUI, run also make gui (cf. the README file).
The lshw command-line tool is in the src subdir, the GUI (gtk-lshw) in src/gui. If you want to use both systemwide, copy lshw to /usr/bin and create a shell script in /usr/bin:
#!/bin/bash
kdesu <location of gtk-lshw>
Make it executable.
There is even a 10.3 rpm here. In case the sources don't compile - it also seems to work OK on 11.0.

Talking of compile bugs - I got a compile error on 11.0 with lshw-B.02.13 (apparenty yet again caused by the switch to GCC 4.3)
abi.cc: In function ‘bool scan_abi(hwNode&)’:
abi.cc:39: error: ‘free’ was not declared in this scope

Just add a #include <cstdlib> statement in <lshw source dir>/src/core/abi.cc.
dev.ezix.org had the solution and also a diff file.

No comments: