Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to just force my box to end all GUI instances for server usage. I want to be able to start them back up again for desktop usage later on.

I have tried:

sudo /etc/init.d/gdm stop
sudo service gdm stop
sudo service gnome stop
sudo service gdm stop gdm: unrecognized service
sudo service gnome stop gnome: unrecognized service
sudo /etc/init.d/gdm stop sudo: /etc/init.d/gdm: command not found
share|improve this question
up vote 4 down vote accepted

Precise Pangolin uses lightdm instead of gdm, so something like the following should work.

sudo service lightdm stop
share|improve this answer

To stop lightdm , you can do

sudo stop lightdm

to start lightdm

sudo start lightdm

Source :LightDM

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.