Skip to content

Instantly share code, notes, and snippets.

@str8edgedave
Last active July 27, 2017 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save str8edgedave/51824eaec5effac441eb0e250c8a5133 to your computer and use it in GitHub Desktop.
Save str8edgedave/51824eaec5effac441eb0e250c8a5133 to your computer and use it in GitHub Desktop.
set gdm login screen

This is a mess, and not "ready for production"

  • I dont' test my code, but when I do, I do it in production.

Follow this steps ( all as root,please be careful )

sudo nautilus /usr/share/gnome-shell/theme make a copy of the file "noise-texture.png" this is the background file in the GDM now copy "your image.png" to /usr/share/gnome-shell/theme erase the file "noise-texture.png" rename your "image.png" to "noise-texture.png" quit nautilus and log out it's all :) Good Luck !

link Comments Thank you for pointing me in the right direction. The method you suggested works, but the image comes up tiled or stretched (in case the image is not of the correct size) and also I have to convert the image into PNG and rename accordingly. I did a little research around and found that the gnome-shell.css file in the same directory has information about the image on the GDM login screen. So I modified it as follows and things worked as expected (wiith any file name and any file type). #lockDialogGroup { background: #2e3436 url(Road-grayscale.jpg); background-repeat: no-repeat; background-size: cover; background-position: center center; } Although lightdm is an alternative Display Manager which provides such feature (hiding users list), I do not consider it as a solution to actual question/problem.

You can configure GDM , the Official Fedora/GNOME Display Manager in order to hide users list in login screen,

not only this but also display a (header) message if you want

and disable the restart button too.

Tested and worked as expected in Fedora 22.

First we need to create a folder and a file with specific content.

Open a terminal and execute the following commands:

sudo mkdir /etc/dconf/db/gdm.d sudo gedit /etc/dconf/db/gdm.d/01-hide-users The second command will open gedit editor empty, copy-paste the following content:

[org/gnome/login-screen] banner-message-enable=true banner-message-text='ENTER ANY MESSAGE YOU WANT HERE. FOR A NEW LINE USE \n.' disable-restart-buttons=true disable-user-list=true If you don't want a banner message then do not include the first and second lines at all.

If you don't want to disable the restart button, do not include the relevant line either.

Save the file and return to your terminal.

Now we need to create one more file

sudo gedit /etc/dconf/profile/gdm again, an empty editor will open, copy-paste the following content:

user-db:user system-db:gdm save the file and execute the following command in your terminal

sudo dconf update Check whether the command executed as it should, a new file(file not folder) should be created inside /etc/dconf/db/ with the name gdm.

ls /etc/dconf/db should return something like this

gdm gdm.d ibus ibus.d Restart GDM for the changes to take effect.

sudo systemctl restart gdm And voilà

image description

Original Size Image

Based on

link Comments Thank you very much for your answer, NikTh :) However, when executing sudo update dconf the terminal returns sudo: update: command not found and checing the /etc/dconf/db folder gives a slightly different return gdm.d ibus ibus.d Any ideas? Sieges (Jul 21 '15) typo: sudo dconf update is the correct command. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment