I've been using Debian for the first during the last week, and I've managed to configure some desktop options with the gnome-tweak-tools, but I am stuck trying to customize the login screen.
During the research I've done I've found a lot of information about doing this things in Ubuntu, Linux Mint or Arch Linux, but not much information about the "Debian way".
I think, Gnome uses Debian-gdm user's configuration for the login screen, but I don't know how to actually change it, I've tried to change it with gnome-tweak-tools, as any other user, and I've tried also editing the "/etc/gdm3/greeter.dconf-defaults" file configuration, addind the path to the file I want as background in the "picture-uri" line. "picture-options_'none'" seems also to do nothing.
Which is the easiest way to customize it?
I'm using gnome-shell version 3.14.4 and debian version 8.6
Best Answer
(Tested on Ubuntu Gnome Shell 16.04+)
Two ways. If you want to know what exactly you are doing, follow Solution #1. If you want a single script to do all for you, follow Solution #2 (All it does it automate Solution #1)
Solution 1
Background Info: Gnome Login Background is not a parameter which you can change directly (weird!). It's present within Gnome Shell CSS file which is present in binary file. Hence, you have to extract binary file, modify it, and replace new binary with old file.
Step1: Extracting Gnome shell binary file
Run the following script
extractgst.sh
to extract Gnome shell theme to~/shell-theme
directoryStep2: Modifying it
~/shell-theme/theme
.~/shell-theme/theme/gnome-shell-theme.gresource.xml
with contentNow, open the
gnome-shell.css
file in the directory and change the#lockDialogGroup
definition as follows:#lockDialogGroup { background: #2e3436 url(filename); background-size: [WIDTH]px [HEIGHT]px; background-repeat: no-repeat; }
Set filename to be the name of the background image and background-size to your resolution.
Step3: Create new Gnome shell theme binary and replacing existing
Inside theme directory, run
You will get a binary file. Copy it to
Now restart GDM using
service gdm restart
If it doesn't work or got stuck, restart your computer to see your new login wallpaper :))
Solution 2
Ok, as promised, there is a simpler way to automate all this. Simply save this script as login-background.sh
Run the script using
Now restart gdm using
service gdm restart
or restart laptop for your new login background :))References: https://wiki.archlinux.org/index.php/GDM
https://bbs.archlinux.org/viewtopic.php?id=197036