Changer le GDM de Fedora 9
By Pierre-Yves on Monday, September 1 2008, 16:36 - Général - Permalink
How to change F9's gdm background
Comment changer le fond d'écran gdm de F9
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 !
- Trouver l'image
(Ça je vous laisse faire)
- Crée un dossier qui contiendra l'image:
mkdir /usr/share/backgrounds/myTheme
- 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
- É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>
- Restaurer le context SELinux pour éviter des problèmes
restorecon -r /usr/share/background/myTheme
- Vérifier les contextes par
ls -Z
et en cas de besoin
chcon -R system_u:object_r:usr_t:s0 myTheme/
- Ensuite on va dire à gdm de prendre en compte ce theme:
- D'abord copie de sauvegarde
cp /etc/gconf/gconf.xml.defaults/%gconf-tree.xml /etc/gconf/gconf.xml.defaults/%gconf-tree.xml-old
- 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 !
- Find the picture
(That's your job ! ;-) )
- Create the folder that will contain the pictures
mkdir /usr/share/backgrounds/myTheme
- 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
- 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>
- Restore the SELinux context to avoid problem
restorecon -r /usr/share/background/myTheme
- Check those via
ls -Z
and if needed run
chcon -R system_u:object_r:usr_t:s0 myTheme/
- Now we are going to explain to gdm which theme to take into account:
- First backup !
cp /etc/gconf/gconf.xml.defaults/%gconf-tree.xml /etc/gconf/gconf.xml.defaults/%gconf-tree.xml-old
- 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
Comments
Mon héros !
Je t'aime ! :D
Mon héros !
Je t'aime ! :D
(je me suis pas foulé, je sais :p)
Pour continuer sur GDM, je sais que depuis une mise à jour de juillet de Fedora 9, il est possible de réactiver le login automatique, mais je n'ai jamais trouvé comment. Seras-tu plus doué que moi ?
Source : https://www.redhat.com/archives/fed...
Et après ils disent que GNOME est simple... C'est tellement plus simple à mettre en place avec KDM!
Actually you need one single resolution (your own display's resolution) for the image and the only section for *that* resolution in the XML file.
Use the other only if you want to distribute the theme, and include what resolutions you feel like (we used those as a convenience, but the application will look at the list of available resolutions and will try to find the best fit).
@MrTom, je regarde ça
@Kevin Kofler, les gouts et les couleurs ... ;-) Mais ta remarque est pas fausse et kdm est en plus pas moche non plus
@Nicu, You are right as often ;-) but at least the XML I provided cover all the cases and if you are not sure what resolution is used you can just put the same picture for all resolutions...
@All Thanks for the comments :-)
Si j'ai bien compris, cette manip ne change que le fond d'écran du GDM, pas tout le theme...
Bon, c'est déjà pas mal, mais moi ce que j'aimerais, c'est mettre le theme GDM complet de Fedora 8.
Le pire, c'est qu'un paquet est disponible: fedorainfinity-gdm-theme
Par contre, si tu trouves comment s'en servir, je te paie un coup à boire à ton prochain passage à Paris :]
pour tester le resultat on peut faire :
$ /usr/bin/gdmthemetester xdmcp /usr/share/backgrounds/myTheme