Skip to content
Related Articles

Related Articles

How to change login screen background in Ubuntu

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 18 Feb, 2019

You may get bored with ordinary purple-colored background screen whenever you login into your computer. To replace this purple-colored background to your favorite background screen it is not as easy as in Windows.

Steps to change login screen background in Ubuntu:

Step 1: Copy your favorite background image and paste in below mentioned folder:


or type this command in terminal and enter your password.

sudo cp Path_of_Image/NAME_OF_THE_FAVORITE_IMAGE /usr/share/backgrounds/

Step 2: We need to modify a CSS file which is responsible for the background image. Open the terminal and paste this command and you will able to see a CSS file.

  • For ubuntu 17.10
    xhost +local: && sudo gedit /etc/alternatives/gdm3.css

  • For ubuntu 18.04
    sudo gedit /usr/share/gnome-shell/theme/ubuntu.css

Step 3: Press ctrl+f and you will see insert box at top right corner of the window. Type #lockDialogGroup in the box then you can see the “#lockDialogGroup” highlighting on the screen.

Step 4: Find out the following section.

#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; }

Replace this with following:

#lockDialogGroup {
  background: #2c001e url(file:///usr/share/backgrounds/NAME_OF_THE_FAVOURITE_IMAGE);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

Write your image name in place of “NAME_OF_THE_FAVORITE_IMAGE” in the above section and save the file.

Step 5: Restart the computer and you will find your favorite background screen at the time of login.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!