The command for restarting Gnome2 is:
sudo /etc/init.d/gdm restart
What is the equivalent for Unity?
|
|
|
Gdm is still used to manage the desktop sessions, but the Upstart way is
Update: Another option, which isn't using the terminal but using a key combination, can be found at How to set keyboard combination to kill the server? |
||||
|
|
|
The command If you run the command from a terminal app, you should add It might also be worthwhile to add So, the command is:
If you can't open the terminal application due to the desktop being extremely unresponsive (or any other reason), you can open a purely text-based terminal by hitting There you will get a text terminal, you have to login first. Then you can run the command above, then hit This tends to fix "hanging" problems. As a side note: since Unity is a compiz plugin, you can restart unity by restarting compiz using the command:
If you run it from the
You'll still need to add |
|||||||
|
|
You don't need to open a tty. In most cases Alt-F2 still works. Just enter "unity". That's it. No & disown needed. |
|||
|
|
|
The command to restart GDM is If you are trying to restart unity itself just run |
|||
|
|
|
In a terminal, run nohup compiz --replace. The nohup command will make sure compiz isn't closed when you close the terminal. |
|||
|
|
|
I like to change GNOME's font size attribute depending on the monitor. I've been shutting down the programs directly so the window position is saved. I put this in the script which probably does pretty much the same thing:
|
|||
|
|