Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to disable lightdm from autostart. Currenty, I run service lightdm disable from terminal, then run startx.

update-rc.d doesnt help

share|improve this question

2 Answers 2

up vote 12 down vote accepted

lightdm is starter by Upstart, not SysV Init, so update-rc.d doesn't work.


 echo  "manual" | sudo tee -a /etc/init/lightdm.override
share|improve this answer
thank you! By the way, I found profiles draft for upstart, but it is not implemented so far... –  Samat May 21 '12 at 4:25
With this setting I get a black screen when I exit the GUI (after having started it with the startx command). –  August Karlstrom Jun 4 '12 at 17:50

If you want to disable lightdm to enable gdm or kdm or any other display manager, enter the following command in the terminal

sudo dpkg-reconfigure lightdm

Then enter on ok and then select from the list your desired display manager.

The same answer with screenshots is given here: http://askubuntu.com/a/138569/62483

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.