Here are the two simplest ways to stop and restart X, found in about 2 seconds searching for "stop x server" on google:
From the command lineStop the xserver: Go to virtual console 1 (Press Ctrl + Alt + F1 and enter your login information), then run this command (type it in and press enter):
- Code: Select all
sudo service lightdm stop
Start the xserver: from virtual console 1, run:
- Code: Select all
sudo service lightdm start
orKeyboard shortcutUse the following keyboard shortcut to restart the xserver: ALT + SYSRQ/PRTSC + K