Change GDM3 Login Screen Background On Ubuntu 22.4
GNOME Display Manager
Ubuntu has it's default display manager called GNOME Display Manager. GDM is a display manager (a graphical login manager) for the windowing systems X11 and Wayland. GNOME Display Manager has its default appearance uses a dark theme. In this tutorial, We will change GDM login screen background image in a secure way. We are using Ubuntu 22.4 for this example. But it will work on all distro that has GDM3 display manager.
Install Dependency
sudo apt install libglib2.0-dev-bin -y
Download Script
This bash script will helps us to easily change the background image of our login screen. It can be downloaded with the following wget command.wget -qO - https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background/archive/main.tar.gz | tar zx --strip-components=1 ubuntu-gdm-set-background-main/ubuntu-gdm-set-background
Download Image or Chose yours
You can use this image. I have collected it because I love cat and Linux. Otherwise you can use you own. Just need the image location. So copy your desired image location.
Set Login Background on Ubuntu
Once the script has downloaded and you know the path to your custom image, you can utilize the script along with the --image option like this
sudo ./ubuntu-gdm-set-background --image ~/Downloads/background.png
Set Solid Color as Background
sudo ./ubuntu-gdm-set-background --color \#772953
To reset Everything
sudo ./ubuntu-gdm-set-background --reset
If went Wrong?
If anything went wrong or you cannot login using GDM then run this command with tty login, the fallback version of GDM. Everything will be fine.
sudo update-alternatives --quiet --set gdm-theme.gresource /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource
Concusion
In this tutorial, you show you how to change the login screen background on Ubuntu 22.04 Jammy Jellyfish Linux. Hopefully this helps make your PC feel a little bit cool. Thank You.