Skip to content
Unix Server Solutions
  • Server
  • Apple
  • Database
  • Ubuntu
  • Linux

Ubuntu – How to change the login screen in Ubuntu 16.04+

login-screenthemes

The recipies for changing one's login screen in 14.04 [EDIT or in 15.04, 15.10] don't work in 16.04. The "custom" background shows for a split second and then fades to the Ubuntu one. So, how do I change the login screen background in 16.04?

[Edit: this post is not a duplicate because all other related questions specifically refer to previous versions of Ubuntu, and the solutions to those do not apply here (as they do not work on 16.04).]

Best Answer

You said:

The "custom" background shows for a split second and then fades to the Ubuntu one.

The greeter by default load the selected user background if it is available. A fade transition used to change between backgrounds of users including greeter default (for guest user). I think that the question should: How to stop lightdm greeter from loading the user background?

Be aware of two distinct greeters, default is unity-greeter. I noticed that some answer here in AU, don't mention this and mix up between them.

Using lightdm-gtk-greeter

GUI tool

  1. Install the settings tool

    sudo apt install lightdm-gtk-greeter-settings
    
  2. Run it

    pkexec lightdm-gtk-greeter-settings
    
  3. In Appearance tab: Select the image

  4. On same tab: Unckeck User user wallpaper if available
  5. Save & Close

    lightdm-gtk-greeter-settings

CLI tools

  1. Open lightdm greeter settings file

    sudo nano /etc/lightdm/lightdm-gtk-greeter.conf
    
  2. Change it this way

    [greeter]
    background = /usr/share/backgrounds/Spring_by_Peter_Apas.jpg
    user-background = false
    
  3. Ctrl+o to save it then Ctrl+x to exit.

Using unity-greeter (default)

Same answer by Serg, I have tested it in a fresh VBox Ubuntu 16.04.

  • Change the background of the login screen

    $ sudo nano /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override
    
    [com.canonical.unity-greeter]
    draw-user-backgrounds=false
    background='/usr/share/backgrounds/Spring_by_Peter_Apas.jpg'
    
    $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas
    $ sudo service lightdm restart
    
  • Some debug hints:

    1. Purge lightdm-gtk-greeter settings

      sudo apt purge lightdm-gtk-greeter lightdm-gtk-greeter-settings
      

      Or you may want just disabling it temporary

      sudo mv /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.disabled
      

      To enable it back

      sudo mv /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.disabled /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
      

      Restarting the lightdm is needed

      sudo systemctl restart lightdm
      
    2. Reinstall unity-greeter to remove any change in /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml

      sudo apt install --reinstall unity-greeter
      
    3. Check if there any other dconf override file that take priority

      grep -rn -e "com.canonical.unity-greeter" -e "background=" -e "draw-user-backgrounds=" /usr/share/glib-2.0/schemas/
      

Related Solutions

Ubuntu – Ubuntu 16.04 Login Loop After Update

I had something similar with my Mint 18 last evening after an upgrade of the package virtualbox-guest-utils. Solved it by removing all virtualbox packages: sudo apt-get remove virtualbox virtualbox-dkms virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

Followed by a reboot.

Not exactly a long term solution, but hopefully it will get you a usable PC until this get fixed.

Ubuntu – How to login to Ubuntu 18.04 without a password

I do exactly this myself, and upgraded the box from 16.04 to 18.04 a few weeks ago - with zero ill effects.

Run sudo passwd -d username to delete the password for this user.

That should allow you to login without entering a password, and works fine for me on 18.04

If this is your only account on the machine, you should probably either configure passwordless sudo, or add a second account with administrative privileges.

Related Question
  • Ubuntu – Ubuntu 16.04 Login Loop After Update
  • Ubuntu – How to login to Ubuntu 18.04 without a password