2010年4月9日 星期五

How to add a splashmage in GRUB2 (1)

 1) Download the free, already-made splashimages from the Ubuntu repositories
sudo apt-get install grub2-splashimages

 2) You'll find your new splashimages in /usr/share/images/grub/
Copy the images to /boot/grub, that way if someone has an installation with a separate /boot with an encrypted file system for / , they can still use the images. (GRUB can't 'see' inside an encrypted file system).
sudo cp /usr/share/images/grub/*.tga /boot/grub/

 3) Here are the thumbnails,
2006-02-15_Piping.tga
050817-N-3488C-028.tga
2006-02-15_Piping.tga
2006-02-15_Piping.tga
Aesculus_hippocastanum_fruit.tga
Aesculus_hippocastanum
_fruit.tga
Apollo_17_The_Last_Moon_Shot_Edit1.tga
Apollo_17_The_Last_
Moon_Shot_Edit1.tga
B-1B_over_the_pacific_ocean.tga
B-1B_over_the_pacific
_ocean.tga
BonsaiTridentMaple.tga
BonsaiTridentMaple.tga
Flower_jtca001.tga
Flower_jtca001.tga
Fly-Angel.tga
Fly-Angel.tga
Glasses_800_edit.tga
Glasses_800_edit.tga
Hortensia-1.tga
Hortensia-1.tga
Lake_mapourika_NZ.tga
Lake_mapourika_NZ.tga
Moraine_Lake_17092005.tga
Moraine_Lake_17092005
.tga
Plasma-lamp.tga
Plasma-lamp.tga
Sparkler.tga
Sparkler.tga
TulipStair_QueensHouse_Greenwich.tga
TulipStair_QueensHouse
_Greenwich.tga
Windbuchencom.tga
Windbuchencom.tga

 
4)
To get your new splashimage to appear, you need to edit a file called /etc/grub/ 05_debian_theme.
gksudo gedit /etc/grub.d/05_debian_theme

 5) scroll down in the file and find line 16 or 17

 6) change the following code in line 16 or 17 from:
 for i in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub.{png,tga} ; do

 to replace 'moreblue-orbit-grub' with the name of the splashimage of your choice)
 for i in {/boot/grub,/usr/share/images/desktop-base}/Windbuchencom.{png,tga} ; do
  NOTE: Be careful to keep the dot in the filename! eg: 'Windbuchencom.'

  Save and close the file.

  7) Run grub-mkconfig (Karmic Koala), or update-grub (in earlier versions of Ubuntu),
sudo grub-mkconfig -o /boot/grub/grub.cfg
The grub-mkconfig or update-grub command is to write the changes to your grub-conf file.

The expected feedback should look something like this,
[sudo] password for username:
Updating /boot/grub/grub.cfg …
Found Debian background: Windbuchencom.tga
Found linux image: /boot/vmlinuz-2.6.27-7-generic
Found initrd image: /boot/initrd.img-2.6.27-7-generic
Found memtest86+ image: /boot/memtest86+.bin
done
 

8) That's it! All done! Now you can reboot and see how it looks!

沒有留言:

張貼留言

How to repair and clone disk with ddrescue

  ddrescue  is a tool that can be used to repair and clone disks on a  Linux system . This includes hard drives, partitions, DVD discs, flas...