LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-26-2013, 12:15 PM   #1
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
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.

Last edited by johnsfine; 12-26-2013 at 12:25 PM.
 
Old 12-30-2013, 12:37 AM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Change GDM/Login Screen Background Image in Ubuntu Lucid, Maverick LXer Syndicated Linux News 0 01-04-2011 08:00 PM
I cannot change login theme because I cannot log in as gdm skykooler Ubuntu 7 04-26-2010 12:28 AM
Suse 10.0 Gnome Splash Background (After GDM Login) slong682000 Linux - Newbie 2 03-24-2006 06:50 PM
gdm background will not change hughes28105 SUSE / openSUSE 0 06-20-2005 11:15 AM
Change login background monowar Linux - Newbie 2 06-29-2002 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration