What release of Ubuntu am I running?
nwayno@Homer:~$ cat /etc/issue
Ubuntu 9.10 n l
——————
What version of the kernel am I running?
nwayno@Homer:~$ uname -a
Linux Homer 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux
——————
What graphics card do I have?
nwayno@Homer:~$lspci | grep VGA
00:0d.0 VGA compatible controller: nVidia Corporation GeForce 6150SE nForce 430 (rev a2)
What usb devices are on the system?
lsusb
Bus 002 Device 003: ID 03f0:3f11 Hewlett-Packard PSC-1315/PSC-1317
Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0bc2:3000 Seagate RSS LLC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
——————
What graphics driver am I using?
grep -i glx /var/log/Xorg.0.log
(II) “glx” will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: “glx”
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor=”NVIDIA Corporation”
(II) NVIDIA GLX Module 185.18.36 Fri Aug 14 18:27:24 PDT 2009
(II) Loading extension GLX
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(==) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(II) Loading extension NV-GLX
(II) Initializing extension GLX
———————
What file system am I using?
nwayno@Homer:~$ sudo blkid
/dev/loop0: TYPE=”squashfs”
/dev/sda1: UUID=”92569F58569F3C43″ LABEL=”MMMVISTA” TYPE=”ntfs”
/dev/sda3: UUID=”949CA48C9CA46A86″ LABEL=”FACTORY_IMAGE” TYPE=”ntfs”
/dev/sda5: TYPE=”swap” UUID=”5ed81b0d-ae9a-41b1-b4c7-02b500b94bea”
/dev/sda6: UUID=”df45c71e-9373-47fb-9e0b-b984c8f1015c” TYPE=”reiserfs”
/dev/sdb1: UUID=”FC1268B212687414″ LABEL=”BFDNTFS” TYPE=”ntfs”
/dev/sdb2: UUID=”a15fa8f4-cba6-4b3f-a59d-e2fd7d9281ab” LABEL=”bfdlinux” TYPE=”reiserfs”
Do I have a 64 bit computer?
if grep -q ' lm ' /proc/cpuinfo; then echo "is 64 bits"; else "No luck :("; fi
I got back:
is 64 bits
see also below:
——————
What type of CPU do I have?
nwayno@Homer:~$ cat /proc/cpuinfo | grep name
model name : AMD Sempron(tm) Dual Core Processor 2200
model name : AMD Sempron(tm) Dual Core Processor 2200
——————
What’s running on my computer?
nwayno@Homer:~$ top
top – 14:31:10 up 1 day, 4:39, 2 users, load average: 2.28, 2.19, 2.12
Tasks: 165 total, 3 running, 162 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0%us, 0.7%sy, 95.8%ni, 0.0%id, 0.0%wa, 0.3%hi, 0.2%si, 0.0%st
Mem: 1904076k total, 1856984k used, 47092k free, 84720k buffers
Swap: 0k total, 0k used, 0k free, 646804k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22417 nwayno 39 19 57612 43m 1928 S 98 2.3 129:14.99 setiathome-5.28
29460 nwayno 39 19 113m 102m 2536 R 95 5.5 25:25.45 einsteinbinary_
4370 nwayno 20 0 621m 62m 15m S 3 3.4 21:25.11 pidgin
5184 nwayno 20 0 671m 168m 23m S 2 9.1 56:23.99 firefox-3.5
5164 nwayno 20 0 188m 15m 9340 S 1 0.9 20:22.74 boincmgr
4158 root 20 0 188m 81m 15m S 1 4.4 15:08.08 Xorg
30786 nwayno 20 0 206m 17m 10m R 0 0.9 0:00.71 gnome-terminal
1 root 20 0 4104 824 532 S 0 0.0 0:00.96 init
2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:00.02 migration/0
4 root 15 -5 0 0 0 S 0 0.0 0:00.14 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
6 root RT -5 0 0 0 S 0 0.0 0:00.08 migration/1
7 root 15 -5 0 0 0 S 0 0.0 0:00.17 ksoftirqd/1
8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1
9 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/0
10 root 15 -5 0 0 0 S 0 0.0 0:00.48 events/1
Related Articles
2 users responded in this post
The file ‘/etc/issue’ is not a solid indicator of your computer’s OS. This is a text file which is shown to users logging in via the text console. Its related file ‘/etc/issue.net’ is shown to users logging in remotely, through ssh (or telnet, ewww!). Local users get ‘issue’, remote users get ‘issue.net’
Looking at three of my many systems here, a much better and consistent method of OS determination is to look for files in /etc which end with either ‘version’ or ‘release’. Yeah, odd, but more consistent.
openSUSE 11.0: /etc/SuSE-release
openSUSE 11.0 (X86-64)
VERSION = 11.0
openSUSE 11.2 rc 1: /etc/SuSE-release
openSUSE 11.2 RC 1 (i586)
VERSION = 11.2
Ubuntu 9.10 Karmic Koala: /etc/debian_version
squeeze/sid
-and-
Ubuntu 9.10 Karmic Koala: /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION=”Ubuntu karmic (Development Branch)”
whew! Ubuntu has quite a lot of detailed information available, Thus far, searching for ‘*release’ will describe openSUSE and Ubuntu flavors. Debian is slightly different.
Debian 5.03: /etc/debian_version
squeeze/sid
Essentially, you use the filename AND the contents to determine which system you’re on. The filename can be either (or both!) something ending in ‘release’, or something ending in ‘version’.
Weird, but consistently weird. I imagine Slackware, DSL, Slax, RedHat, Fedora, the *BSD’s, and even Mac OS X all have their own unique identifiers.
Take Care,
Loni
(Hopefully the html shows up correctly, otherwise Mr Wayno might be needed to massage this comment’s contents.)
Aaaannnnddd for those of you who can count… I described FOUR of my computers. My apologies, it’s the hair… blonde. Four! Four! One, Two, Three, FOUR! Dang it!
Loni