LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Restart X Server over SSH? (https://www.linuxquestions.org/questions/linux-general-1/restart-x-server-over-ssh-669951/)

skibud2 09-14-2008 10:54 PM

Restart X Server over SSH?
 
It looks like my windows manager crashed. Is there a good way to restart the X server over ssh? I attempted to search the forum, but you cannot search for X (since it is too short of a word).

Thanks,

Mike

Jerre Cope 09-15-2008 12:13 AM

Is your question really "How do I restart the X display manager from the command line?"

If so, it depends on which display manager you use. For instance, KDE's would be kdm, Gnu's would be gdm.

Try something like

/etc/init.d/kdm restart

If you are still have a window up on the crashed display manager, try control-alt-backspace.

b0uncer 09-15-2008 12:31 AM

Try to kill the window manager process using (for example) one of the commands kill, pkill or killall. Then restart it (and X, if it was shut down too). Another way is to straight away stop and restart X itself; either with one of the kill commands or by switching to a non-graphical runlevel and back with init command.


All times are GMT -5. The time now is 11:38 PM.