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 25/05/2025, à 18:54

Olak22

Grub

Bonjour,
Je n'arrive pas à personnaliser  Grub  avec un theme malgré tous les tutos. Le menu Grub persiste à rester d'origine.
Voilà mes fichiers.
Dans /boot/grub/themes j'ai bien mon dossier de theme tela.
Le fichier /etc/default/grub :

# If you change this file or any /etc/default/grub.d/*.cfg file,
# run 'update-grub' afterwards to update /boot/grub/grub.cfg.
# For full documentation of the options in these files, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="0"
GRUB_DISTRIBUTOR="`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER="false"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE/GOP/UGA
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=1920x1080,auto

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_THEME="/usr/share/grub/default/themes/tela/theme.txt"
GRUB_BACKGROUND="/usr/share/grub/default/themes/tela/background.jpg"

Donc s'il y a quelqu'un qui pourrait me dire où j'ai loupé qq chose je suis preneur..
Merci d'avance.
Olivier

Dernière modification par Olak22 (Le 26/05/2025, à 17:30)

Hors ligne

#2 Le 25/05/2025, à 18:58

xubu1957

Re : Grub

Bonjour,

Pour ajouter toi-même les balises code à ton précédent message #1 :         Merci           wink

  • Cliquer sur le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message

Balisesmoko138.jpg

comme indiqué dans le : Retour utilisable de commande

Dernière modification par xubu1957 (Le 28/05/2025, à 09:14)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#3 Le 25/05/2025, à 19:07

geole

Re : Grub

Olak22 a écrit :

Bonjour,
Je n'arrive pas à personnaliser  Grub  avec un theme malgré tous les tutos. Le menu Grub persiste à rester d'origine.
Voilà mes fichiers.
Dans /boot/grub/themes j'ai bien mon dossier de theme tela.
Le fichier /etc/default/grub :
# If you change this file or any /etc/default/grub.d/*.cfg file, # run 'update-grub' afterwards to update /boot/grub/grub.cfg.

GRUB_THEME="/usr/share/grub/default/themes/tela/theme.txt"

Donc s'il y a quelqu'un qui pourrait me dire où j'ai loupé qq chose je suis preneur..
Merci d'avance.
Olivier


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#4 Le 27/05/2025, à 18:06

Olak22

Re : Grub

Bonjour Geole

Merci pour ton intérêt . J'a fais le changement de chemin dans le fichier grub comme tu l'indique mais cela ne fonctionne toujours pas §
Je n'arrive pas à voir pourquoi. Assez étrange...
Bonne soirée
Olivier

Hors ligne

#5 Le 27/05/2025, à 18:08

geole

Re : Grub

Bonjour.
Donne le retour de cette commande

sudo update-grub

Dernière modification par geole (Le 27/05/2025, à 18:09)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#6 Le 28/05/2025, à 09:07

Olak22

Re : Grub

Bonjour,
le sudo upgrade-grub inscrit bien le chemin du theme

[sudo] Mot de passe de olivier : 
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/mojave1/theme.txt
Found linux image: /boot/vmlinuz-6.14.0-15-generic
Found initrd image: /boot/initrd.img-6.14.0-15-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Found memtest86+ 32bit EFI image: /boot/memtest86+ia32.efi
Found memtest86+ 64bit image: /boot/memtest86+x64.bin
Found memtest86+ 32bit image: /boot/memtest86+ia32.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 11 on /dev/sdc1
Found Windows 11 on /dev/sdc2
Adding boot menu entry for UEFI Firmware Settings ...
done

Hors ligne

#7 Le 28/05/2025, à 09:13

Olak22

Re : Grub

Volià mon fichier /etc/deafault/grub

# If you change this file or any /etc/default/grub.d/*.cfg file,
# run 'update-grub' afterwards to update /boot/grub/grub.cfg.
# For full documentation of the options in these files, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console
GRUB_TERMINAL_OUTPUT="gfxterm"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE/GOP/UGA
# you can see them in real GRUB with the command `videoinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_THEME="/boot/grub/themes/mojave1/theme.txt"
GRUB_GFXMODE="1920x1200"

Hors ligne

#8 Le 28/05/2025, à 11:34

steph810

Re : Grub

Bonjour,
que vous renvois cette commande:

sudo grub-mkconfig -o /boot/grub/grub.cfg

je pense c'est du au format image qui n'est pas supporter.
Je vien de test et j'avais ce problème, il vous faut essayer allez dans le dossier qui contient les image .png les ouvrir avec par gimp et les exporter au format .png.

Exemple click sur image:

grub.gif

Dernière modification par steph810 (Le 28/05/2025, à 12:12)

Hors ligne

#9 Hier à 19:22

Olak22

Re : Grub

Bonsoir,
J"ai changé le format d'image en png mais aucun changement, toujours pas de theme qui s'affiche au boot.

sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] Mot de passe de olivier : 
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/mojave1/theme.txt
Found linux image: /boot/vmlinuz-6.14.0-15-generic
Found initrd image: /boot/initrd.img-6.14.0-15-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Found memtest86+ 32bit EFI image: /boot/memtest86+ia32.efi
Found memtest86+ 64bit image: /boot/memtest86+x64.bin
Found memtest86+ 32bit image: /boot/memtest86+ia32.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 11 on /dev/sdc1
Found Windows 11 on /dev/sdc2
Adding boot menu entry for UEFI Firmware Settings ...
done

Je ne vois vraiment pas où cela coince  !
Merci encore pour votre aide.
Olivier

Hors ligne

#10 Hier à 20:05

steph810

Re : Grub

re,
Vous avez combien d'image ?
le retours de:

ls /boot/grub/themes/tela/

puis

cat /usr/share/grub/default/themes/tela/theme.txt

puis
Qui normalement as du se tranformer en .png

file /usr/share/grub/default/themes/tela/background.png

et enfin
avez-vous fais le changement de .jpg a .png ??

cat /etc/default/grub

Dernière modification par steph810 (Hier à 20:11)

Hors ligne

#11 Hier à 21:18

Olak22

Re : Grub

Bonsoir,

Normalement j'ai tout bon
Voila ce que me renvoie les commandes.
Il y a juste un changement, le theme est mojave1.

olivier@olivier-System-Product-Name:~$ sudo ls /boot/grub/themes/mojave1
[sudo] Mot de passe de olivier : 
background.png	logo.png      select_w.png     terminus-16.pf2	unifont-24.pf2
icons		select_c.png  terminus-12.pf2  terminus-18.pf2
info.png	select_e.png  terminus-14.pf2  theme.txt
olivier@olivier-System-Product-Name:~$ cat /usr/share/grub/default/themes/mojave1/theme.txt
# GRUB2 gfxmenu Linux theme
# Designed for any resolution

# Global Property
title-text: ""
desktop-image: "background.png"
desktop-color: "#242424"
terminal-font: "Terminus Regular 18"
terminal-box: "terminal_box_*.png"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"

# Show the boot menu
+ boot_menu {
  left = 52%
  top = 18%
  width = 28%
  height = 54%
  item_font = "Unifont Regular 24"
  item_color = "#efefef"
  selected_item_color = "#ffffff"
  icon_width = 48
  icon_height = 48
  item_icon_space = 8
  item_height = 72
  item_padding = 4
  item_spacing = 8
  selected_item_pixmap_style = "select_*.png"
}

+ image {
  top = 0%
  left = 0%
  file = "info.png"
}

+ image {
  top = 29%
  left = 22%
  file = "logo.png"
}

# Show a countdown message using the label component
+ label {
  top = 76%
  left = 55%
  width = 23%
  align = "center"
  id = "__timeout__"
  text = "Booting in %d seconds"
  color = "#ffffff"
  font = "Unifont Regular 24"
}

olivier@olivier-System-Product-Name:~$ cat /etc/default/grub
# If you change this file or any /etc/default/grub.d/*.cfg file,
# run 'update-grub' afterwards to update /boot/grub/grub.cfg.
# For full documentation of the options in these files, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console


# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE/GOP/UGA
# you can see them in real GRUB with the command `videoinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_THEME=/boot/grub/themes/mojave1/theme.txt
GRUB_GFXMODE=1920x1200

olivier@olivier-System-Product-Name:~$ file /usr/share/grub/default/themes/mojave1/background.png
/usr/share/grub/default/themes/mojave1/background.png: PNG image data, 1920 x 1080, 8-bit/color RGBA, non-interlaced

Hors ligne