French version

Les amateurs de la personnalisation au maximum de Fedora ont sans doute été déçut par Fedora 9 qui intégrant la dernière version de gdm lors de sa sortie a perdu la possibilité de personnalisé son fond d'écran.

Aujourd'hui et quelques recherches plus tard j'ai trouvé comment faire et je vous livre la méthode clé en main

Attention, ceci s'adresse à des personnes sachant comment faire pour revenir à la situation initiale en ligne de commande si besoin est !

  1. Trouver l'image

(Ça je vous laisse faire)

  1. Crée un dossier qui contiendra l'image:
mkdir /usr/share/backgrounds/myTheme
  1. Y déposer vos images aux différentes résolutions
cp /home/user/undossier/vers/monImage.800.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/monImage.1280.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/monImage.1600.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/monImage.1920.png /usr/share/backgrounds/myTheme
  1. Écrire le fichier xml myTheme.xml pour afficher les images
<background>
<static>
<duration>86400.0</duration>
<file>
        <!-- Eeepc size --> <!-- 5:3 -->
        <size width="800" height="480">/usr/share/backgrounds/myTheme/monImage.800.png</size>
        <!-- Odd resolution but apparently popular --> <!-- 5:4 -->
        <size width="1280" height="1024">/usr/share/backgrounds/myTheme/monImage.1280.png</size>
        <!-- Standard 4:3 -->
        <size width="1600" height="1200">/usr/share/backgrounds/myTheme/monImage.1600.png</size>
        <!-- Widescreen 16:10 -->
        <size width="1920" height="1200">/usr/share/backgrounds/myTheme/monImage.1920.png</size>
 </file>
 </static>
 </background>
  1. Restaurer le context SELinux pour éviter des problèmes
restorecon -r /usr/share/background/myTheme
  1. Vérifier les contextes par ls -Z et en cas de besoin
chcon -R system_u:object_r:usr_t:s0 myTheme/
  1. Ensuite on va dire à gdm de prendre en compte ce theme:
  2. D'abord copie de sauvegarde
cp /etc/gconf/gconf.xml.defaults/%gconf-tree.xml /etc/gconf/gconf.xml.defaults/%gconf-tree.xml-old
  1. Changer le fichier de gdm
vim /etc/gconf/gconf.xml.defaults/%gconf-tree.xml

À la ligne 6622 (faites une recherche sur waves) changer:

<stringvalue>/usr/share/backgrounds/waves/waves.xml</stringvalue>

par

<stringvalue>/usr/share/backgrounds/myTheme/myTheme.xml</stringvalue>

Voila il ne vous reste plus qu'à redémarrer votre serveur graphique (ctrl+alt+retour) et à profiter de votre nouveau fond d'écran pour voter gdm :-)



Sources:
FedoraForum
HackTux



English version

Those who like to personalize their Fedora at maximum must have been disappointed by Fedora 9 which by included the latest version of gdm available when it came out lost the possibility to change the background picture on the gdm.

After few research I found the way to change it.

Watch out that you should be aware of what you are doing and you should know how to reverse the change you have made without graphical interface !

  1. Find the picture

(That's your job ! ;-) )

  1. Create the folder that will contain the pictures
mkdir /usr/share/backgrounds/myTheme
  1. Copy the pictures in there at the different resolutions
cp /home/user/undossier/vers/myPicture.800.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/myPicture.1280.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/myPicture.1600.png /usr/share/backgrounds/myTheme
cp /home/user/undossier/vers/myPicture.1920.png /usr/share/backgrounds/myTheme
  1. Write the file myTheme.xml to configure the display of the pictures
<background>
<static>
<duration>86400.0</duration>
<file>
        <!-- Eeepc size --> <!-- 5:3 -->
        <size width="800" height="480">/usr/share/backgrounds/myTheme/monImage.800.png</size>
        <!-- Odd resolution but apparently popular --> <!-- 5:4 -->
        <size width="1280" height="1024">/usr/share/backgrounds/myTheme/monImage.1280.png</size>
        <!-- Standard 4:3 -->
        <size width="1600" height="1200">/usr/share/backgrounds/myTheme/monImage.1600.png</size>
        <!-- Widescreen 16:10 -->
        <size width="1920" height="1200">/usr/share/backgrounds/myTheme/monImage.1920.png</size>
 </file>
 </static>
 </background>
  1. Restore the SELinux context to avoid problem
restorecon -r /usr/share/background/myTheme
  1. Check those via ls -Z and if needed run
chcon -R system_u:object_r:usr_t:s0 myTheme/
  1. Now we are going to explain to gdm which theme to take into account:
  2. First backup !
cp /etc/gconf/gconf.xml.defaults/%gconf-tree.xml /etc/gconf/gconf.xml.defaults/%gconf-tree.xml-old
  1. Then we change the gdm file:
vim /etc/gconf/gconf.xml.defaults/%gconf-tree.xml

At row 6622 (search on waves) change:

<stringvalue>/usr/share/backgrounds/waves/waves.xml</stringvalue>

to

<stringvalue>/usr/share/backgrounds/myTheme/myTheme.xml</stringvalue>

There we go, restart your X and enjoy your new gdm theme !! ;-)



Sources:
FedoraForum
HackTux