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?
Asked
Active
Viewed 7.4k times
43

RolandiXor
- 51,541

Anders Feder
- 435
3 Answers
46
sudo dpkg-reconfigure lightdm
Will prompt you to make it default. More information here:

Jorge Castro
- 71,754
-
1I have the feeling it is not working $ sudo dpkg-reconfigure lightdm [sudo] password for user: dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing – seb Sep 03 '11 at 23:43
-
@ seb, I get the same warning and my issue (http://askubuntu.com/questions/63134/how-to-get-the-proper-lightdm-theme) has not been fixed... I'm quite certain I'm running LightDM because entering "lightdm --test-mode" in a console gives me the exact same login screen. – Matthijs Sep 30 '11 at 08:59
-
I have the same problem. Googling reveals we are not alone, but there appears to be no solution. – Nov 09 '11 at 09:34
10
/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'

eric.lemerdy
- 119
2
Do this:
$ sudo systemctl disable gdm.service
$ sudo systemctl enable lightdm.service
Here enable starts service at boot. You can know more about it here.

ThunderBird
- 1,955

Aniket Raj
- 21