Home » Infrastructure » Linux » how do i check if X_windows server is started
how do i check if X_windows server is started [message #277842] Wed, 31 October 2007 18:40 Go to next message
new_to_linux
Messages: 1
Registered: October 2007
Junior Member
how do i check if X_windows server is started
Re: how do i check if X_windows server is started [message #277843 is a reply to message #277842] Wed, 31 October 2007 19:10 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
if the system is running GNOME or KDE then by definition X-Windows is running.
Re: how do i check if X_windows server is started [message #283582 is a reply to message #277843] Tue, 27 November 2007 09:30 Go to previous messageGo to next message
virtualmorrigan
Messages: 7
Registered: November 2007
Junior Member
/etc/init.d/dm status
(might be gdm or something similar depending on which distro)

could do a fuser on the log file as well but I suspect that's too complicated

what exactly do you want to do?

morrigan
Re: how do i check if X_windows server is started [message #283684 is a reply to message #277842] Tue, 27 November 2007 23:48 Go to previous messageGo to next message
varu123
Messages: 754
Registered: October 2007
Senior Member
type xclock in your terminal.If a clock appears your x window server is running
Re: how do i check if X_windows server is started [message #283814 is a reply to message #283684] Wed, 28 November 2007 03:42 Go to previous messageGo to next message
virtualmorrigan
Messages: 7
Registered: November 2007
Junior Member
>type xclock in your terminal.If a clock appears your x window >server is running

err, if he already has a terminal in a window I suspect he would know that he has an X server running...

and if you meant that terminal as ssh or such from another machine, then no, you cannot be certain X-forwarding is enabled.

so, imho it would be either runlevelscript (/etc/init.d/dm status) or service dm status (which amounts to the same thing.)

it would help, though, if we knew what distro and what exactly the problem seems to be.

morrigan
Re: how do i check if X_windows server is started [message #283830 is a reply to message #283814] Wed, 28 November 2007 04:28 Go to previous message
ThomasG
Messages: 3211
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
Since X could also have been started "by hand", not over a login manager or runlevel, one could also check for the X process with

ps -eaf |grep "X "| grep -v grep


To see if a binary named "X" is running.
Previous Topic: Oracle Database 10g Release 2 on Linux x86
Next Topic: Oracle 10g R1 on Oracle Enterprise linux
Goto Forum:
  


Current Time: Wed Apr 17 22:09:04 CDT 2024