Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Setup

Ubuntu 11.10 Server

LXDE

Question

After installing lxde, my box runs it on startup. How do I prevent this without uninstalling.

share|improve this question

3 Answers 3

Although this site specifically deals with GDM (Gnome Desktop Manager), you can apply this to LXDE as well. Basically, you'll want to stop X from running, ala:

sudo update-rc.d -f gdm remove

Replacing gdm with whichever login manager you chose.


You could also try installing lightdm (the regular login manager for the desktop version of Ubuntu), and then opening up /etc/defaults/grub and adding text to the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

...resulting in:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

Then, run sudo update-grub and restart.

share|improve this answer
    
the pesky devil survived this too –  wmarbut Apr 11 '12 at 19:24
    
tried sudo update-rc.d -f lxdm remove for the record –  wmarbut Apr 11 '12 at 20:01
    
I amended my answer to force it into text mode by installing lightdm, and having grub communicate with it. –  Andrew M. Apr 11 '12 at 20:35

You could always rename the start file:

mv /etc/init/lxdm.conf /etc/init/lxdm.conf.nostart
share|improve this answer
    
This works, but then you can't start lxde on demand –  wmarbut Apr 16 '12 at 15:10

sudo service lxdm stop should disable it. (Technically it's not starting "LXDE", it is starting a display manager; LXDE is one of several desktops that a user could choose to run when logging in.)

share|improve this answer
    
I get lightdm: unrecognized service with this –  wmarbut Apr 11 '12 at 18:56
    
Sorry, wrong service; you really need to combine our answers. Fixing... –  geekosaur Apr 11 '12 at 19:04
    
This works once lxdm is already started, but it doesn't disable auto start –  wmarbut Apr 16 '12 at 15:10

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.