LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to determine kernel/Xorg version numbers? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-determine-kernel-xorg-version-numbers-406535/)

pbb 01-22-2006 10:27 AM

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?

btmiller 01-22-2006 11:15 AM

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.

comprookie2000 01-22-2006 11:16 AM

uname -a for the kernel
X -version for xorg

snowtigger 01-22-2006 11:17 AM

'Xorg -version' for Xorg
'uname -a' fro the kernel

:)

pbb 01-22-2006 11:26 AM

Thanks for helping!!

nehaljwani 04-27-2016 01:46 AM

Quote:

Originally Posted by pbb (Post 2061552)
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}'

pan64 04-27-2016 02:27 AM

why did you post it here? (and even your solution is not correct, sudo must not be used)

nehaljwani 04-27-2016 02:41 AM

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



All times are GMT -5. The time now is 04:50 AM.