LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2008, 10:54 PM   #1
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Rep: Reputation: 15
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
 
Old 09-15-2008, 12:13 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
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.
 
Old 09-15-2008, 12:31 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restart & check status of ssh server bostonantifan Ubuntu 3 10-30-2007 11:06 AM
Jobs IDs go away on ssh restart nuxeon Linux - Newbie 3 10-18-2007 06:46 PM
restart FTP and SSH when it is killed ???? culin Programming 1 05-08-2007 01:26 AM
How to restart dhcpd on another server using SSH? hueofwind Linux - Newbie 17 11-23-2005 06:07 AM
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:56 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