About this computer

Ted Gould ted at ubuntu.com
Fri Dec 14 05:00:06 GMT 2007


I've been working on the implementation of the AboutThisComputer
blueprint[1] and I have a little demo script of the data gathering
component.  It pulls a bunch of data from HAL and some config files and
prints to the screen.  I wanted to post it here so that people could run
it on various configurations and see what breaks.  It's nothing fancy,
but I want to try to vet out problems before more code depends on them.
Here's an example output from my Mac mini:

Processor:  Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
Processor:  Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
HD size:  80026361856 bytes
Network:  Atheros Communications, Inc. :  AR5006EG 802.11 b/g Wireless
PCI Express Adapter
Network:  Marvell Technology Group Ltd. :  88E8053 PCI-E Gigabit
Ethernet Controller
Video:  Intel Corporation Mobile 945GM/GMS, 943/940GML Express
Integrated Graphics Controller  ( intel )
Distribution:  Ubuntu 7.10 (gutsy)
Linux Kernel:  2.6.22-14-generic
RAM:  1003888 kB
GNOME:  2.20.1

It needs to be cleaned up, but I'm currently more worried about
correctness.  I don't need posts from everyone unless the values come
out with something that is incorrect.  If everything is right don't
worry about it.

Also a couple of questions have come up:

      * Is there a way to get the KDE or XFCE version similar to the
        "gnome-about --gnome-version" command?

      * At UDS we decided that we only wanted to have the size of the
        hard drive that the root partition was on.  Does this still make
        sense?  If we already have to handle "multiples" for processors,
        video cards and network cards, does it make sense to handle
        multiple hard drives?

Next step, make it pretty :)


[1] https://blueprints.launchpad.net/ubuntu/+spec/about-this-computer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 3614 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-desktop/attachments/20071214/f8d1ea97/attachment.py 
-------------- 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 : https://lists.ubuntu.com/archives/ubuntu-desktop/attachments/20071214/f8d1ea97/attachment.pgp 

More information about the ubuntu-desktop mailing list