Page 1 of 1

Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 5:42 am
by xircon
1>. How the hell do I change the background image (from solid blue) to an image? I have been at this for 2.5 hours and am getting nowhere :evil:

2>. Ditto gdm3 theme from mint-x to say Adwaita?

Tried dconf-editor, tried manually editing /etc/gdm3/greeter.gconf-defaults:

Code: Select all

# Use a specific background
/desktop/gnome/background/picture_filename	/usr/share/backgrounds/linuxmint/default_background.jpg
/desktop/gnome/background/picture_options	stretched

# Theming options
/desktop/gnome/interface/gtk_theme		Adwaita
#/desktop/gnome/interface/icon_theme		Mint-X

# Greeter options
#/apps/gdm/simple-greeter/logo_icon_name 	debian-swirl

# Some other possible options
#/apps/gdm/simple-greeter/banner_message_enable		true
#/apps/gdm/simple-greeter/banner_message_text		Welcome
#/apps/gdm/simple-greeter/disable_restart_buttons	false
#/apps/gdm/simple-greeter/disable_user_list		false

# The lower panel doesn't work with the compositor
/apps/metacity/general/compositing_manager		false

I change gtk_theme to Adwaita, it works, but something keeps changing it back to mint-x grrrrrrrr :)

I created /usr/share/backgrounds/linuxmint/ (it did not exist) and copied (a random) jpeg to it - did not work.

Also tried this script (works on squeeze apparently):

Code: Select all

#!/bin/bash

urlConfFile="/etc/gdm3/greeter.gconf-defaults"
urlGdmBackgrounds="/usr/share/images/desktop-base/"

echo " "
echo "-> This Script changes background image at GDM-Login-Screen (tested on Debian) you need to run it as root";
echo "-> Please copy the image that you want to put (jpg Extensión) in the same folder that this script is running";
echo ""
echo "------ .jpg Files in directory `pwd` -------"
counter=0

#ls to jpg files section:
for file in *.jpg; 
	do
			if [ -f "$file" ]
			then
				echo "$counter- $file"
				counter=`expr $counter + 1`


			else
				echo "No jpg files in this directory."
				echo "Copy a jpg image file and run it again, Bye."
				exit
			fi

			

	done
#select a number of file from ls
echo "Select one from the list by num:"; 
			read selectedFile

counter=0

#Update the greeter.gconf-defaults section:
for fileName in *.jpg; 
	do
			if [ "$selectedFile" = "$counter" ]
				then 
			#remove the lines from file if exist before
				sed -i '/\/background\/picture_filename/ d' $urlConfFile
				sed -i '/#This line generated from Energy1011/ d' $urlConfFile

			#add the new lines at the end of file with filename
				echo "-space-" >> $urlConfFile
				echo "#This line generated from Energy1011 change-login-background script " >> $urlConfFile
				echo /desktop/gnome/background/picture_filename	"$urlGdmBackgrounds""$fileName" >> $urlConfFile
				sed -i '/-space-/ d' $urlConfFile

			#copy the file
				echo "You need to be root to copy the file:$filename to $urlGdmBackgrounds"
			#this script needs to run as root to cp
				 cp "$fileName" "$urlGdmBackgrounds"

				echo "$fileName Sucessfull installed :D"
				echo "Restart your computer to see the changes, bye."
				exit
			fi

			counter=`expr $counter + 1`
	done

	echo "Invalid number, please use a number from the list, run it again."
Going round in circles - put me out of my misery.......... Please :lol:

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 6:06 am
by xircon
Well, think I have sorted the gtk_theme part of the problem - I removed the mint-x theme, so my system can't default to something that doesn't exist!

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 6:25 am
by zerozero
xircon wrote: Going round in circles - put me out of my misery.......... Please :lol:
try removing debian-system-adjustments

Code: Select all

amadeu@amadeu ~ $ cat /etc/gdm3/greeter.gconf-defaults
# Use a specific background
/desktop/gnome/background/picture_filename	/usr/share/backgrounds/gnome/Aqua.jpg
/desktop/gnome/background/picture_options	stretched

# Theming options
/desktop/gnome/interface/gtk_theme		Adwaita
/desktop/gnome/interface/icon_theme		Mint-Xtra

# Greeter options
#/apps/gdm/simple-greeter/logo_icon_name 	debian-swirl

# Some other possible options
#/apps/gdm/simple-greeter/banner_message_enable		true
#/apps/gdm/simple-greeter/banner_message_text		Welcome
#/apps/gdm/simple-greeter/disable_restart_buttons	false
#/apps/gdm/simple-greeter/disable_user_list		false

# The lower panel doesn't work with the compositor
/apps/metacity/general/compositing_manager		false


Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 7:06 am
by xircon
Cheers ZZ off to work will test later.

Steve

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 6:32 pm
by xircon
OK tried that:

Sometimes on reboot I get:
Image
Then sometimes:

Image
And I never get a background image.

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 6:45 pm
by zerozero
Steve, sorry if this is obvious but do you have this path

Code: Select all

/desktop/gnome/background/picture_filename   /usr/share/backgrounds/linuxmint/default_background.jpg
i don't

Code: Select all

amadeu@amadeu /usr/share/backgrounds $ ls
cosmos  linuxmint-debian  linuxmint-julia
gnome   linuxmint-extra   linuxmint-previous-releases

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 6:48 pm
by xircon
Yes, I created it earlier:

Code: Select all

molly3@n5010:~$ cd /usr/share/backgrounds/linuxmint/
molly3@n5010:/usr/share/backgrounds/linuxmint$ ls
default_background.jpg  default_background.png

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 7:00 pm
by zerozero
ohh now i understand (sort of) what you are trying to do: you are keeping (as much as possible the default greeter.gconf-default that debian-system-adjustments makes and somehow adapt the system to it

i just d/l the deb from packages.linuxmint and deep inside it it's this

Code: Select all

# Use a specific background
/desktop/gnome/background/picture_filename	/usr/share/backgrounds/linuxmint/default_background.jpg
/desktop/gnome/background/picture_options	stretched

# Theming options
/desktop/gnome/interface/gtk_theme		Mint-X
#/desktop/gnome/interface/icon_theme		Mint-X

# Greeter options
#/apps/gdm/simple-greeter/logo_icon_name 	debian-swirl

# Some other possible options
#/apps/gdm/simple-greeter/banner_message_enable		true
#/apps/gdm/simple-greeter/banner_message_text		Welcome
#/apps/gdm/simple-greeter/disable_restart_buttons	false
#/apps/gdm/simple-greeter/disable_user_list		false

# The lower panel doesn't work with the compositor
/apps/metacity/general/compositing_manager		false
basically what you have and are trying to make compatible with gdm3

i dunno :shock: the way i did it (ditching d-s-a and the mint paths was easier)
just for refernce (if you're wandering why :?: ) it all began here http://forums.linuxmint.com/viewtopic.p ... ks#p562721

Re: Change theme/background image on GDM3?

Posted: Mon Jun 25, 2012 7:04 pm
by xircon
Cheers, reading now :)

Re: Change theme/background image on GDM3?

Posted: Tue Jun 26, 2012 6:26 am
by xircon
The solution for the background is in this thread http://forums.linuxmint.com/viewtopic.p ... 3&start=20

I am still having problems with the login screen swapping between the two appearances (per photos). Working on that now.

Re: Change theme/background image on GDM3?

Posted: Wed Jun 27, 2012 4:40 am
by xircon
Can't work out why I am getting two different log-in screens, unless anyone has any ideas, I officially give up!!

Re: Change theme/background image on GDM3?

Posted: Thu Jun 28, 2012 7:13 pm
by xircon
Well I didn't give up, I installed KDM (and KDE to have a look), swapped to it with dpkg-reconfigure, then swapped back to GDM3, it seems to have fixed the problem (I think).

:Edit: No it didn't ho hum (forgot to post about it) Still getting two different windows per photos. Yes I gave up :)