How to change login screen background in Ubuntu

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:

/usr/share/backgrounds

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

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.