I'm using lockscreen that came with Ubuntu Gnome. It's called GDM. can I replace it with LightDM or lockscreen that comes with KDE , LXDE or others?

what are the names of these packages? how to install them?

If that's too broad then

  • How can I just install LightDM without affecting my Ubuntu Gnome Installation?
  • How can I uninstall it and get GDM back if I don't like the experience?

To install an alternate login manager use software manager or the command line

sudo apt-get install kdm

You can try slim or lightdm, both probably lighter then kdm, or try them all.

To remove them

sudo apt-get purge kdm

or slim or lightdm

To select which one to use use sudo dpkg-reconfigure gdm or edit /etc/sysconfig/displaymanager

sudo dpkg-reconfigure gdm

you will get a screen where you can select which display manager (login screen) to use.

enter image description here

Use you up/down arrow keys to select and hit enter key.


sudo nano /etc/sysconfig/displaymanager

and change to the dm you wish, such as


sudo dpkg-reconfigure gdm has the advantage of less typing and less typographical errors.

Locking the screen when you are inactive is a different issue and is a property of the screensaver you use. By default it is gnome-screensaver but xscreensaver is probably the most popular alternate.

To configure and change screensaevers see Configure screensaver in Ubuntu

| improve this answer | |
  • As neither GNOME nor Ubuntu have a screensaver by default any more these programs don't handle the lock-screen either any more. – user364819 May 11 '17 at 19:41
  • Good points. Without additional information the info on screensavers may or may not be relevant, not sure about the nature of the question or version of Ubuntu, so the information was included for completeness. – Panther May 11 '17 at 20:05
  • 1
    Perhaps you should make that more clear in your answer then. So that if they are running a more recent version they will not get confused by your screensaver suggestions. – user364819 May 12 '17 at 8:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.