LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2006, 10:27 AM   #1
pbb
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu Breezy 5.10
Posts: 4

Rep: Reputation: 0
How to determine kernel/Xorg version numbers?


I'm a Ubuntu newbie. In many documentation I read, I see things like "If you have kernel version > x", "When you have Xorg/XFree version < y".
But I have no idea how to determine those version numbers! Commands like "ver" or "version" are not recognized.

Can someone please instruct me on how to determine these version numbers?
 
Old 01-22-2006, 11:15 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
For the kernel, "uname -r" will tell you. For Xorg check /var/log/Xorg.0.log since it's printed when X starts. Since Ubuntu is Debian based, the package manager is dpkg. You can do "sudo dpkg -l" to see all the packaged software you have installed and its version.
 
1 members found this post helpful.
Old 01-22-2006, 11:16 AM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
uname -a for the kernel
X -version for xorg
 
Old 01-22-2006, 11:17 AM   #4
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
'Xorg -version' for Xorg
'uname -a' fro the kernel

 
1 members found this post helpful.
Old 01-22-2006, 11:26 AM   #5
pbb
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu Breezy 5.10
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for helping!!
 
Old 04-27-2016, 01:46 AM   #6
nehaljwani
LQ Newbie
 
Registered: Jan 2013
Distribution: Fedora
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by pbb View Post
I'm a Ubuntu newbie. In many documentation I read, I see things like "If you have kernel version > x", "When you have Xorg/XFree version < y".
But I have no idea how to determine those version numbers! Commands like "ver" or "version" are not recognized.

Can someone please instruct me on how to determine these version numbers?
For just the Xorg version, type
Code:
sudo Xorg -version 2>&1 | awk '/X.Org X Server/ {print $NF}'
 
Old 04-27-2016, 02:27 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
why did you post it here? (and even your solution is not correct, sudo must not be used)
 
Old 04-27-2016, 02:41 AM   #8
nehaljwani
LQ Newbie
 
Registered: Jan 2013
Distribution: Fedora
Posts: 10

Rep: Reputation: Disabled
When I run it without sudo, it says
Code:
$ Xorg -version
/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I would like to be able to determine my kernel version. Gueron Linux - Newbie 3 10-10-2005 02:24 PM
determine kernel version linuxmandrake Mandriva 1 05-28-2005 05:38 AM
How to determine Kernel version stonesino Linux - General 2 03-13-2004 01:57 PM
Version numbers X11 Programming 2 04-09-2002 08:56 AM
file version numbers tjones11 Programming 2 03-15-2002 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration