Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/04/2023, à 17:05

RaphaelD

Thème Grub ne fonctionne pas

Bonjour, j'essaie d'installer un thème pour Grub mais cela ne fonctionne pas.
Par exemple, pour le thème CyberSynchro, je copie le thème dans le dossier /boot/grub/themes/CyberSynchro et j'ajoute le chemin "GRUB_THEME='/boot/grub/themes/CyberSynchro/theme.txt" dans le fichier GRUB (/etc/default/).
Je mets à jour le fichier de config avec

sudo update-grub

et j'ai les messages suivants :

raphael@PC-RAPH:/etc/default$ sudo update-grub
Sourcing file `/etc/default/grub'
/boot/grub/themes/CyberSynchro/theme.txt: 2: desktop-image:: not found
/boot/grub/themes/CyberSynchro/theme.txt: 5: title-text: : not found
/boot/grub/themes/CyberSynchro/theme.txt: 6: message-font:: not found
/boot/grub/themes/CyberSynchro/theme.txt: 7: message-color:: not found
/boot/grub/themes/CyberSynchro/theme.txt: 8: terminal-font:: not found
/boot/grub/themes/CyberSynchro/theme.txt: 9: terminal-box:: not found
/boot/grub/themes/CyberSynchro/theme.txt: 12: +: not found
/boot/grub/themes/CyberSynchro/theme.txt: 13: width: not found
/boot/grub/themes/CyberSynchro/theme.txt: 14: height: not found
top: option « = » inconnue
Usage:
  top -hv | -bcEeHiOSs1 -d sec -n max -u|U util -p pid(s) -o champ -w [col]
/boot/grub/themes/CyberSynchro/theme.txt: 16: left: not found
/boot/grub/themes/CyberSynchro/theme.txt: 17: icon_width: not found
/boot/grub/themes/CyberSynchro/theme.txt: 18: icon_height: not found
/boot/grub/themes/CyberSynchro/theme.txt: 19: item_height: not found
/boot/grub/themes/CyberSynchro/theme.txt: 20: item_padding: not found
/boot/grub/themes/CyberSynchro/theme.txt: 21: item_icon_space: not found
/boot/grub/themes/CyberSynchro/theme.txt: 22: item_spacing: not found
/boot/grub/themes/CyberSynchro/theme.txt: 23: menu_pixmap_style: not found
/boot/grub/themes/CyberSynchro/theme.txt: 24: item_font: not found
/boot/grub/themes/CyberSynchro/theme.txt: 25: item_color: not found
/boot/grub/themes/CyberSynchro/theme.txt: 26: #0e2936: not found
/boot/grub/themes/CyberSynchro/theme.txt: 27: select_bkg_*.png: not found
/boot/grub/themes/CyberSynchro/theme.txt: 28: scrollbar: not found
/boot/grub/themes/CyberSynchro/theme.txt: 29: scrollbar_width: not found
/boot/grub/themes/CyberSynchro/theme.txt: 30: scrollbar_thumb: not found
/boot/grub/themes/CyberSynchro/theme.txt: 31: Syntax error: "}" unexpected

Les fichiers d'image sont bien dans le même dossier.
Quelqu'un aurait-il déjà eu ce problème, je n'ai rien trouvé sur internet ?

Hors ligne

#2 Le 26/04/2023, à 18:05

nany

Re : Thème Grub ne fonctionne pas

Bonjour,



RaphaelD a écrit :

j'ajoute le chemin "GRUB_THEME='/boot/grub/themes/CyberSynchro/theme.txt" dans le fichier GRUB (/etc/default/).

A priori tu as mis un « single quote » de trop.
Donne le retour de :

sudo sed -i '/GRUB_THEME/s/\'//g' /etc/default/grub && sudo update-grub

Hors ligne

#3 Le 27/04/2023, à 10:24

Qid

Re : Thème Grub ne fonctionne pas

nany a écrit :
RaphaelD a écrit :

j'ajoute le chemin "GRUB_THEME='/boot/grub/themes/CyberSynchro/theme.txt" dans le fichier GRUB (/etc/default/).

A priori tu as mis un « single quote » de trop.

ou il en a oublié un... en tous cas je confirme que même si j'ai essayé avec un autre thème chez moi ça a marché avec cette ligne :

GRUB_THEME='/boot/grub/themes/ubuntu/theme.txt'

en tous cas ce qui est sûr c'est que si on en met un en début de chemin il en faut un à la fin ce qui n'est pas le cas dans la ligne du demandeur... après peut-être que sans aucune quotte ça va marcher aussi wink


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#4 Le 27/04/2023, à 14:46

RaphaelD

Re : Thème Grub ne fonctionne pas

Bonjour nany et Qid, c'est bien un problème de "quote".
Je les ai remplacé par des guillemets et cela fonctionne smile

GRUB_THEME="/boot/grub/themes/CyberSynchro/theme.txt"

Merci à vous

Hors ligne