Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I occasionally want to use my Ubuntu machine as a desktop but mostly as a headless file server. Before I upgraded to Oneiric, I used rcconf services to disable or enable the desktop. In Oneiric I don't see GDM; so can't uncheck it. LightDM appears but isn't checked. I don't see anything else that looks like a desktop.

So, how can I disable, an occasionally enable, the Oneiric desktop?

share|improve this question
It is lightdm you want. It replaced gdm in 11.10. – Elvis Stressborg Nov 15 '11 at 23:27
Thank you. So, how do I stop LightDM from loading on bootup? – Jim Wilson Nov 16 '11 at 1:43
askubuntu.com/questions/16371/how-to-disable-x-at-boot-time Might help one part of that. – zookalicious Nov 16 '11 at 2:38

1 Answer

This is a specific instance of a generic question, "how do I prevent an upstart service from running at boot".

You can use an override:

sudo echo "manual" >> /etc/init/lightdm.override

To start lightdm on command:

sudo start lightdm

To restore your system so that lightdm is always started on boot:

sudo rm /etc/init/lightdm.override

For more information, the upstart cookbook is your friend:

share|improve this answer

Your Answer

 
discard

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.