Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Mar 22, 2007 2:07 am 
Offline
Senior Newbie

Joined: Tue Oct 11, 2005 3:14 pm
Posts: 10
cat /proc/version doesn't tell me what distro I'm running

thartman@linodewhyou:~>uname -a
Linux linodewhyou 2.4.29-linode39-1um #1 Wed Jan 19 12:22:14 EST 2005 i686 GNU/Linux

thartman@linodewhyou:~>cat /proc/version
Linux version 2.4.29-linode39-1um (root@nova1.theshore.net) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Wed Jan 19 12:22:14 EST 2005

In fact, I'm on ubuntu 6.06.

The above seems to tell me the host machine info.

is there an equivelant of the above commands when you're on user mode linux?


Top
   
 Post subject:
PostPosted: Thu Mar 22, 2007 3:19 am 
Offline
Junior Member

Joined: Mon Oct 23, 2006 12:09 am
Posts: 26
I wouldn't worry about the information in parentheses in /proc/version. It tells you about the version of GCC that the kernel was compiled on, not anything about the machine it's running on... it doesn't necessarily mean that your host is running Red Hat, although it might be a hint that the Linode admins favour RH.

For example, my vanilla non-Linode Ubuntu 6.06 kernel contains "(gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5))" in /proc/version... It wasn't compiled on "Ubuntu 4.0.3", just Ubuntu's version of GCC 4.0.3.

I'm not sure what an "equivalent" of those commands would be, since as far as I know they are working exactly the same as normal. The same thing would happen without UML, if you were using a non-distro-supplied kernel.

If you just want to know what distro of Linux you're using, usually there's a file in /etc to tell you, with a name ending in -version or -release. Ubuntu seems to have /etc/lsb-release, which might be standard nowadays, for all I know.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group