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 would like to stop kdm from starting when my computer boots up. Is there a way to do that? kdm is my only graphical login program, I do not use gdm or xdm.

share|improve this question
up vote 3 down vote accepted

Disabling it should be as simple as:

sudo mv /etc/init/kdm.conf{,disabled}

The same should be the true for gdm (which also uses a upstart script in /etc/init/).

If you want to fine-tune it, edit /etc/init/kdm.conf and change its start on declarations. Just comment that entire section out and you'll still be able to run sudo start kdm when you want a graphical display.

share|improve this answer
Thank you, it works! – Ryan Hoots Jun 15 '11 at 15:56
@Oli what about if I want to prevent kdm and lightdm? Will it work ok (I mean log in at system will be ok)? – nazar_art Dec 29 '13 at 18:33

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.