How can I end the GUI from a different TTY, then start up a new one.
This is for the occasional freeze of the GUI, or inaccessibility. When all I can do is switch to another TTY (using Ctrl+Alt+F5 for TTY5) and start over, or reboot.
How to restart the display manager
If X is hung, you should be able rejigger it by restarting the display manager. In 11.10, it's lightdm, recent past versions use gdm. Change the following examples as appropriate for your version. You can restart it a few different ways. I prefer the simplicity of the
Or you can use the
Init script hackers stuck on sysv will prefer
If it's really hung..
If restarting the display manager doesn't work, pull out a hammer and kill it dead with one or both of these commands:
Which example should I use? Does it matter?
Use the first one.
The other two commands,
I found a much easier way to restart the GUI.
In most cases you can just use: Alt+PrintScreen+K
If CTRL+ALT+BACKSPACE doesn't end the current X server and plop you back in lightdm or gdm then there is an alternate sequence (which I've personally never tried) that goes like this: ALT+PrintScreen+R-E-I-S-U-B, however this will actually reboot the machine. My preferred method is to just CTRL+ALT+F1 to get to a terminal and then
|show 1 more comment|