How can I make LightDM the default display manager?

I have LightDM installed and can start it with sudo start lightdm. But at boot, GDM is still the default. How can change this so LightDM is loaded automatically at boot instead of GDM?


sudo dpkg-reconfigure lightdm

Will prompt you to make it default. More information here:

  • https://wiki.ubuntu.com/LightDM

/etc/X11/default-display-manager should currently contain something else than lightdm.

Like I answered in another question, since LightDM starts on your machine, you should reference the binary in /etc/X11/default-display-manager :

sudo sh -c 'echo "/usr/sbin/lightdm" > /etc/X11/default-display-manager'