61

I downloaded a couple greeters for LightDM, but I have not figured out how to enable them. Is there a way to switch greeter, either by graphical or command-line method?. I do not intend to change display manager, nor the background, but to change the layout and appearance of the login screen through a different "theme" (greeter is the name for LightDm themes). Thanks for your time.

1
  • 6
    The greeter is not really a theme. It is a program that interacts with lightdm through a series of api-calls. Some of these greeters then in turn have support for themes.
    – Zoke
    Nov 5, 2011 at 19:08

9 Answers 9

57

Just edit the greeter-session option in /etc/lightdm/lightdm.conf to the desired greeter.

If you for example want to use the lightdm-gtk-greeter.

Open up '/etc/lightdm/lightdm.conf' with any editor as root. For examplesudo vim /etc/lightdm/lightdm.conf then change the line

greeter-session=unity-greeter

to

greeter-session=lightdm-gtk-greeter

If the file does not exist, let it contain

[SeatDefaults]
greeter-session=lightdm-gtk-greeter

Then all you have to do is make sure that the greeter is installed (e.g. the package lightdm-gtk-greeter) and then restart lightdm.

4
  • 11
    Works even in Ubuntu 14.04 where /etc/lightdm/lightdm.conf file doesn't exist. Just create it and put two following lines there [SeatDefaults] and greeter-session=YOUR-GREETER, and then reboot.
    – ezze
    Aug 9, 2014 at 9:54
  • 1
    @Ezze, that should be "[SetDefaults]", right? Dec 27, 2014 at 11:35
  • 4
    @WaldirLeoncio, no, it should be [SeatDefaults] exactly. Please see LightDM configuration.
    – ezze
    Jan 1, 2015 at 12:06
  • Be cautious with this! Hi couldn't boot after I did it because I had Onboard enabled and I had to boot in recovery to fix things. askubuntu.com/questions/141606/…
    – 842Mono
    Oct 2, 2016 at 2:47
22

Change the LightDM Greeter

KDM, another display manager, has themes that may be changed using a configuration front end. LightDM has greeters that may be changed, but there is no front end.

LighDM configuration is governed by the lightdm.conf file, however it's not suppose to be directly edited, instead use the backend lightdm-set-defaults.

Before you change LighDM configuration, make a backup up the file:

sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.old

There are several LightDM greeters, such as lightdm-unity-greeter, lightdm-gtk-greeter, lightdm-webkit-greeter, and lightdm-kde-greeter.

For this example I will use lightdm-kde-greeter.

If you are doing this from a root console, type all commands without sudo. For the following commands, if you are using a GUI (graphical user interface), use the key sequence ALT-F2 or the Super key (usually the Windows key) and type term to open a terminal of your choice. If KDE default terminal, just type konsole.

Follow these steps carefully.

  1. Be sure you have LightDM and the greeter of your choice installed by typing the following command.

    sudo apt-get install -s lightdm-kde-greeter

  2. If you receive the message, "Unable to locate package ...," check what you typed if it was correct, enter the following sequence of commands then go to step 4. Otherwise, go to step 3.

    sudo apt-add-repository ppa:agateau/lightdm-kde
    sudo apt-get update
    sudo apt-get install lightdm-kde-greeter

  3. If you do not see 0 newly installed in the following sequence: "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded, then enter the command again without -s which is the option to simulate an action in apt-get. Then go to step 4.

    sudo apt-get install lightdm-kde-greeter

  4. For many users, the command lightdm-set-defaults will not be found because it is not in their path. For this reason, we will use /usr/lib/lightdm/lightdm-set-defaults. To set the greeter to lightdm-kde-greeter type the following command in a terminal:

    sudo /usr/lib/lightdm/lightdm-set-defaults --greeter lightdm-kde-greeter

  5. If you are in a root console or have Xephyr installed, you may check your set up using the built in testing function. You may only log in as yourself. Do not use sudo!

    lightdm --test-mode

  6. For best results, shut down and restart your system. Remember /etc/lightdm/lightdm.conf.old so you may use it to replace lightdm.conf if anything goes wrong. I suggest your write it down. If something goes wrong and you cannot log in, type this command that you also should have written down which writes your backup back to the configuration file.

    sudo cp /etc/lightdm/lightdm.conf.old /etc/lightdm/lightdm.conf

Note

I gleaned most of this information from the LightDM Ubuntu Wiki. Except for adding the PPA, the information is not release version specific and LightDM is beyond the testing stage. Read more at http://wiki.ubuntu.com/LightDM

If something goes horribly wrong.

  1. If you have no graphics, go to a text terminal using CTRL-ALT-F1.
  2. Stop LightDM with sudo stop lightdm.
  3. Depending upon which you have installed, start GDM with sudo start gdm or KDM with sudo start kdm.
  4. Run sudo dpkg-reconfigure lightdm to set the default display manager.
  5. Edit /etc/X11/default-display-manager and set it to /usr/sbin/gdm or /usr/bin/kdm if you can't run the above.
  6. Uninstall LightDM and GDM will replace it after a reboot.

    sudo apt-get remove lightdm

2
  • You fail to mention that lightdm must be installed also. Jun 23, 2015 at 1:24
  • Getting a 404 - file not found for repository ppa:agateau/lightdm-kde :( Nov 26, 2019 at 19:32
10

enter image description here Just install this:

sudo apt-get install lightdm-gtk-greeter-settings

Then, launch the GUI program "LightDM GTK+ Greeter settings" Configure what you want in it and then reboot.

1
  • Is there a way to revert this installation and set the greeter back to the default operating system greeter?
    – Levano
    Mar 3, 2020 at 17:09
2

Try this little tool to easily change the LightDM theme (PPA made by Claudio Novais):

sudo apt-add-repository ppa:claudiocn/slm && sudo apt-get update

sudo apt-get install simple-lightdm-manager

See this video explaining how to use it!

0
2

Just a note, on Ubuntu 14.04.5 LTS I have this:

$ locate lightdm.conf
/etc/init/lightdm.conf
/usr/share/doc/lightdm/lightdm.conf.gz
/usr/share/lightdm/lightdm.conf.d
/usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
/usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
/usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
/usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
/usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
/usr/share/lightdm/lightdm.conf.d/60-my-own.conf
/usr/share/ubuntu-mate/lightdm/lightdm.conf
/var/lib/dpkg/info/lightdm.conffiles
/var/lib/dpkg/info/lightdm.config

... so the files suggested elsewhere (e.g. the accepted /etc/lightdm/lightdm.conf) did not work for me - what did, was to create my own file 60-my-own.conf which would sort last in /usr/share/lightdm/lightdm.conf.d/, in which I can finally switch between greeters, e.g.:

[SeatDefaults]
#greeter-session=lightdm-gtk-greeter
greeter-session=unity-greeter
0

You can change the LightDM greeter background by doing the following in the Terminal:

  1. type gksu gedit /etc/lightdm/unity-greeter.conf
  2. Scroll down to "background" and change the path/filename
    • I suggest you copy the file to a separate directory so every time you want to switch, it's easier because they are all in the same folder.
  3. Save the file
  4. Log out

For more information about LightDM, go to Ubuntu's Wiki Page on LightDM

1
  • 1
    Thanks for your suggestion, but this only changes the background image for the Unity Greeter. I asked how to change the greeter itself.
    – Tigull
    Nov 5, 2011 at 14:49
0

For Ubuntu 14.04.4 LTS:

1)Download new greeter, for examples: sudo apt-get install ligthdm-gtk-greeter

2)modify configuration as following sudo nano /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

[SeatDefaults]
#autologin-user=sirag 
#greeter-session=unity-greeter 
greeter-session=ligthdm-gtk-greeter

3) save and reboot ~

-1

Install Ubuntu Tweak. Open it and select the "Tweaks" tab. Under "Startup" select "Login Settings". At the very top right hand corner is a search bar, just to it's left is the unlock. Unlock and you can change the gtk and icon theme on start up. Plus the logo and background. Hope that helps.

-1

Change greeter on Ubuntu 14.04 Trusty =<

The Man-Pages for lightdm in ubuntu 14.04 trusty and up showing up a reference to dm-tool This is a tool to mange some Display Mangaer settings and is instlled asside Lightdm. So you can solve your problem with this command

sudo dm-tool --switch-to-greeter <nameofgreeter>

You have to do this from outside an x session. in an init script for instance

2
  • The switch-to-greeter command actually doesn't take any more arguments. It just shows the enabled greeter, it can't change it. Nov 7, 2015 at 9:18
  • Is this true for 15.04 and newer?
    – Josh
    Nov 9, 2015 at 13:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .