$sudo apt-get install grub2-splashimagesNow we have a couple grub2 themes under /usr/share/images/grub/ folder.Let's select a grub2 theme from the following folders :
/usr/share/images/desktop-base/
/usr/share/images/grub/$ls /usr/share/images/grub/My output :
BLABLABLABLA
Moraine_Lake_17092005.tga TulipStair_QueensHouse_Greenwich.tga
BLABLABLABLAIn this howto i am selecting Moraine Lake splash image.Note down the name of the file and edit the following file :
$sudo gedit /etc/grub.d/05_debian_themeSearch for this line :
for i in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub.{png,tga}And change it to :
for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/Moraine_Lake_17092005.{png,tga}This basically tells GRUB2 to look for image name “Moraine_Lake_17092005” in the following locations:
/boot/grub
/usr/share/images/desktop-base
/usr/share/images/grubDo not forget to change "Moraine_Lake_17092005" with your selected theme's name.Save and exit.
Now we have to regenerate grub's config (grub.cfg) with the following command :
$sudo update-grubReboot and test your Grub2 theme.
PS: The output of $update-grub command should look like this (BOLD one) :
Generating grub.cfg ...
Found Debian background: Moraine_Lake_17092005.tga
Found linux image: /boot/vmlinuz-2.6.30-8-generic
Found initrd image: /boot/initrd.img-2.6.30-8-generic
Found linux image: /boot/vmlinuz-2.6.29-02062903-generic
Found initrd image: /boot/initrd.img-2.6.29-02062903-generic
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found memtest86+ image: /boot/memtest86+.bin
Found Moblin release 2 (Moblin) on /dev/sda3
done


5 comments:
Good tutorial, thanks!
it never gives Found Debian background: .... as aoutput after the command
For this to work you need to change one more line a little bit above the path from "use_bg=false" to "use_bg=true".
Otherwise grub won't use any backgrounds.
Do not set use_bg=true, that's up to the script. It only get set if the grub is able to read the path.
If it doesn't work, easiest is just to copy the image you want to /boot/grub and run the script again.
Search for this line :
/desktop-base}/moreblue-orbit-grub.{png,tga}
And change it to :
desktop-base,/usr/share/images/grub}/Moraine_Lake_17092005.{png,tga}
You must add this!!!
,/usr/share/images/grub
Then the
Found Debian background: Moraine_Lake_17092005.tga
will be found and it will appeared!
Post a Comment