This simple tutorial shows how to easily change the login screen background wallpaper or solid color in Ubuntu 20.04 Gnome desktop.
There’s no setting option to change GDM3 login screen background unless hacking on the the style sheet file, though it was fairly straightforward to edit the content in Ubuntu 18.04 and Ubuntu 19.10.
In Ubuntu 20.04, you have to extract the css file from current theme’s .gresource
file, then edit the content and recompile to create the new .gresource
file, and finally set it as default.
Thankfully, there are a few scripts in Github to make things simple.
1.) First open terminal (Ctrl+Alt+T) and run command to install required libraries:
sudo apt install git libglib2.0-dev
2.) Then run command clone the project source:
git clone https://github.com/PRATAP-KUMAR/focalgdm3.git
you can also download the script in github web page.
3.) You’ll see focalgdm3
folder in your user home directory. Run the script via command:
sudo ./focalgdm3/focalgdm3 --set
Type user password for sudo prompt, press enter to proceed the script, type 1 then path to image or 2 then color code.
NOTE 1: it seems that image file has spaces in the file-name is not supported at the moment of writing.
When everything’s done, restart computer for the first time to apply changes.
3.(Optional) To restore changes, run command:
sudo ./focalgdm3/focalgdm3 --reset
In addition, there’s also another script available in github to do the same job.
via: askubuntu
Worked perfectly, thank you!
Hi dude,
why images show in zoom config?
I have the same issue… :(
Hi,
I get a syntax error on the first line;
syntax error near unexpected token `newline’
`’
Am I missing something?
Here is my system.
Linux red-Inspiron 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Thanks.
hi when i try to execute the script after inserting the desired images path it says that the image path doesn’t exist. i write the path like this /home/pictures/wallpapers/fag.jpg
any help is appreciated!! happy linuxing!!
Make sure you typed correct file path.
Open the folder with the picture image and press Ctrl+L on keyboard, it will show you the path in file browser header bar
Is you username “pictures” or is pictures a directory in your home? It appears that you may have left your username off the path. i.e.:
/home//pictures/wallpapers/fag.jpg.
I am getting a “sudo: ./focalgdm3: command not found” error when trying to run the script. I tried renaming it to *.sh with the same results.
@lavas “sudo bash ./focalgdm3 –set”, and you have to install “libglib2.0-dev” from “https://pkgs.org/search/?q=libglib2.0-dev”.
@Ji M, your focalgdm3 requires libglib2.0-dev “https://pkgs.org/search/?q=libglib2.0-dev”, and it works successfully.
after running the script it shows
“wget ‘https://github.com/PRATAP-KUMAR/focalgdm3/raw/master/focalgdm3.sh’
–2020-07-04 11:50:34– ‘https://github.com/PRATAP-KUMAR/focalgdm3/raw/master/focalgdm3.sh’
Resolving github.com (github.com)… 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2020-07-04 11:50:35 ERROR 404: Not Found.”
Post updated! The project maintainer changed the script name from focalgdm3.sh to focalgdm.
I have the same Issue as 2 people above, running 2 monitors and the image is spanning the both monitors, I’ve tried using Gnome Tweaks to set it but it doesn’t seem to make any difference, any ideas on how to fix it would be greatly welcomed.
Didn’t work for me. Instead of displaying my picture, it displays a plain one color background.
Worked like a charm, thanks!
make sure ‘p’ is in caps in pictures.= /home/Pictures.
check if your directory names are proper, that’s all.
Works perfect!!!