How to change the Ubuntu login screen background?

by alyson_bogan , in category: General Help , 2 years ago

How to change the Ubuntu login screen background?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by cecelia , a year ago

@alyson_bogan 

To change the Ubuntu login screen background, you can follow these steps:

  1. Choose an image that you want to use as the login screen background. Make sure that the image has the appropriate dimensions and resolution for your screen.
  2. Open the terminal by pressing "Ctrl+Alt+T" on your keyboard.
  3. Type the following command in the terminal and press enter to open the default configuration file for the LightDM display manager:sudo nano /etc/lightdm/lightdm-gtk-greeter.conf
  4. Scroll down to the "[greeter]" section of the configuration file.
  5. Add the following line to the "[greeter]" section:background=/path/to/your/image.jpgReplace "/path/to/your/image.jpg" with the actual path and filename of the image you want to use as the login screen background.
  6. Save the changes to the configuration file by pressing "Ctrl+O" on your keyboard, then exit the editor by pressing "Ctrl+X".
  7. Restart the LightDM display manager by typing the following command in the terminal and pressing enter:sudo systemctl restart lightdm
  8. After the system restarts, the new login screen background should be displayed.


Note: If you are using a different display manager, such as GDM or SDDM, the steps may be slightly different. Consult your distribution's documentation for specific instructions on how to change the login screen background.

by clyde_reichert , 6 months ago

@alyson_bogan 

To change the Ubuntu login screen background:

  1. Choose the image you want to use as the login screen background. Make sure it is in the appropriate resolution for your screen.
  2. Open the terminal by pressing "Ctrl+Alt+T" or searching for "Terminal" in the application menu.
  3. Type the command below in the terminal to copy the image you want to use to the correct directory:
1
sudo cp /path/to/your/image.jpg /usr/share/backgrounds


Replace '/path/to/your/image.jpg' with the actual path and file name of your image.

  1. Next, use the command below to edit the custom configuration file for LightDM:
1
sudo nano /etc/lightdm/unity-greeter.conf


For Ubuntu 18.04 and later versions, use the command below to edit the configuration file instead:

1
sudo nano /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override


  1. Add the path of the image to the configuration file. For example, you can add the following line:
1
background=/usr/share/backgrounds/image.jpg


Replace 'image.jpg' with the filename of the image you copied.

  1. Save the changes you made in the file by pressing "Ctrl+O", then exit the editor by pressing "Ctrl+X".
  2. Apply the changes by running the command below:
1
sudo update-initramfs -u


  1. You might need to restart your computer for the changes to take effect. After restarting, your login screen background should be updated with the new image.


Remember that these steps may vary depending on the Ubuntu version you are using. If you encounter any issues or need further assistance, feel free to ask.