Hello everybody.
Sometimes we need to make some changes in Ubuntu that require restarting the X Server.
One way to restart the X server is running the following command in the shell:
sudo /etc/init.d/gdm restart
Another way to do that is configuring a shortcut Ctrl+Alt+Backspace that is disabled by default in Ubuntu.
In the terminal, type:
setxkbmap -option terminate:ctrl_alt_bksp
Now, to test that, hold Ctrl+Alt+Backspace to restart the X Server. However, to keep this functionality working for each Ubuntu startup, open the terminal and type:
gnome-session-properties
It will be opened a window like this one:
Click on add button and another window like this one will be opened:
Fill up for each field.
Name: Ctrl_Alt_Backspace
Command: setxkbmap -option terminate:ctrl_alt_bksp
Comment: Restart the X Server
Click on add button and after on close button. That’s it, all the time you start the Ubuntu and hold those keys, the X Server will be restarted.
See you next time.




There is a more user friendly (well, ok depends on the user…), way.
http://www.hackourlife.com/enable-restart-x-server-ctrl-alt-backspace-in-ubuntu-11-04-natty-narwhal/
ctrl+alt+backspace (approximate) equivalent is now ctrl+print screen+k
http://www.sudo-juice.com/ubuntu-11-10-restart-x-shortcut/
I meant alt gr+print screen+k, sorry
From Argentina: very very thanks for your tip, I need it. It’s usefull
if you use: gr+print screen+k to 12.04 for kill X server