In this tip we will see how to restart X server under a system running Ubuntu 12.04/11.10 or older. The commands given will vary according to the display manager used. For Ubuntu 12.04/11.10 or later, LightDM is the X display manager used. And for Ubuntu 11.04 or older, the GDM display manager is used.

To restart X Server without rebooting your computer under Ubuntu 12.04/11.10, open the terminal and run one of these commands:

sudo restart lightdm


sudo service lightdm restart

Your desktop will disappear for a few moments and it will reload back. For Ubuntu 11.04 or older, run one of these commands:

sudo restart gdm


sudo service gdm restart

This command may also work for all Ubuntu versions:

sudo pkill X

That's it!

Post a Comment