Change theme/background image on GDM3?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 5:42 am

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:
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Linux Mint is funded by ads and donations.
 

Re: Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 6:06 am

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!
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby zerozero on Mon Jun 25, 2012 6:25 am

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

zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Re: Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 7:06 am

Cheers ZZ off to work will test later.

Steve
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 6:32 pm

OK tried that:

Sometimes on reboot I get:
Image
Then sometimes:

Image
And I never get a background image.
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby zerozero on Mon Jun 25, 2012 6:45 pm

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
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Re: Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 6:48 pm

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
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby zerozero on Mon Jun 25, 2012 7:00 pm

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.php?f=198&t=67502&p=562721&hilit=clearlooks#p562721
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Re: Change theme/background image on GDM3?

Postby xircon on Mon Jun 25, 2012 7:04 pm

Cheers, reading now :)
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby xircon on Tue Jun 26, 2012 6:26 am

The solution for the background is in this thread viewtopic.php?f=141&t=60853&start=20

I am still having problems with the login screen swapping between the two appearances (per photos). Working on that now.
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby xircon on Wed Jun 27, 2012 4:40 am

Can't work out why I am getting two different log-in screens, unless anyone has any ideas, I officially give up!!
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Change theme/background image on GDM3?

Postby xircon on Thu Jun 28, 2012 7:13 pm

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 :)
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 6 guests