23

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

update-rc.d doesnt help

Samat
  • 595

5 Answers5

24

As described here, one can now disable lightdm like this:

systemctl disable lightdm.service
19

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

Use

 echo  "manual" | sudo tee -a /etc/init/lightdm.override
orrymr
  • 195
  • 1
  • 8
5

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: Reset to Default Unity Login

Nirmik
  • 7,938
3

This is handled by display-manager... Disable on systemd and you're done.

# systemctl disable display-manager        
Removed symlink /etc/systemd/system/display-manager.service.
Trunet
  • 31
1

I just remove the execution bit on the lightdm binary.

chmod -x /usr/sbin/lightdm

Then to re-enable it:

chmod +x /usr/sbin/lightdm

John
  • 11