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.8k times
        
    43
            
            
         
    
    
        RolandiXor
        
- 51,797
 
    
    
        Anders Feder
        
- 435
3 Answers
45
            sudo dpkg-reconfigure lightdm
Will prompt you to make it default. More information here:
 
    
    
        Jorge Castro
        
- 73,717
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,963
- 13
- 22
- 31
 
    
    
        Aniket Raj
        
- 21
