Make sure you are logged out first. Hit Ctrl+Alt+F1 and login using your credentials. kill your current X server session by typing sudo service lightdm stop or sudo lightdm stop Enter runlevel 3 by typing sudo init 3 Do whatever you need to do You might be required to reboot when the installation finishes. If … Continue reading How to stop and restart an X server on Ubuntu