LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to change GDM login background (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-change-gdm-login-background-4175489212/)

johnsfine 12-26-2013 12:15 PM

How to change GDM login background
 
Short answer: As root:
Code:

xhost +SI:localuser:gdm
sudo -u gdm dbus-launch gnome-control-center

Then select Appearance and Background.

Tried on Centos version 6.5 GDM version 2.30.4

I had done a bunch of Google searches and failed to figure this out. I saw lots of places others asked the same question and got answers that I could not understand. So once I figured it out, I'm posting this to try to help someone else.

The key concept that I didn't think through (or I would have gotten this much more easily) is that the login runs as localuser:gdm and its background is just that user's desktop background. (I had expected it to be some special setting because the desktop background was different from the login background).

So all the places where the answer to setting the GDM login background was given as a description of setting the desktop background were not (as I thought when reading them) misunderstanding the question. They were just skipping the key concept needed to use the answer (that, of course, you need to do this for the user gdm not for your own user).

Details:
Code:

xhost +SI:localuser:gdm
so far as I understand, tells your currently running X-server to accept a GUI opened by that user (sorry I'm off on terminology and details).
Code:

sudo -u gdm dbus-launch gnome-control-center
Runs gnome-control-center as user gdm. I haven't looked up what the dbus-launch part does. I had to su to root before sudo to gdm. Those who understand and/or configure sudo better might be able to do that more directly.

I think the results of doing all that are stored in hidden (starting with .) directories in ~gdm/

I may take time later to try to figure out which files in there control the things I care about, since I prefer to understand text config files, not just the config programs.

towheedm 12-30-2013 12:37 AM

That info is stored as key-value pairs in the gconf database.

Your can use the gconf-editor GUI for a more fine-grained control:
Code:

xhost +SI:localuser:gdm
sudo -u gdm dbus-launch gconf-editor

Alternatively, you can use the gconftool-2 CLI utility:
Code:

sudo -u gdm gconftool-2 type <datatype> set key <value>
I did a guide back in 2009 when I started using Linux with Ubuntu 9.10.

You can download the PDF here. GDM customizations starts on Page 23.

I'm on Debian now, which configures GDM slightly differently so can't remember much without refreshing myself from the guide.

Hope it helps.


All times are GMT -5. The time now is 04:03 AM.