Wednesday, January 12, 2011

Change bootsplash in Backtrack 4 Final

Most likely you will render your systems unusable and then NOBODY will help you fix them. Still if you believe you know what you`re doing here are a few hints :

1. Images must be 640x480

2. Contain no more than 16 colors

3. Be in gzipped xpm format

4. The gimp can be used to resize (image->scale image..), reduce colors (image->mode->indexed..), and can save to .xpm.gz format.


A. to configure manually:

when you have created the image add a line like

Code:

splashimage=(hd0,4)/boot/grub/splash.xpm.gz

to your menu.lst. Usefull trick is creating a symlink to the actual image named splash.xpm.gz


Code:

cd /boot/grub
sudo ln -s my_favourite_image.xpm.gz splash.xpm.gz
Grub loads the image from the disk upon boot-it is not stored in the MBR. If you use a symlink, you will not have to edit menu.lst and reinstall grub to change the image, you just have to change the symlink. Make sure any symlink does not point to a file on another partition, for instance if you have /boot on a separate partition.


B. with update-grub

update-grub will automatically pick up /boot/grub/splash.xpm.gz and configure menu.lst. It will find the correct hdX and partition number (no need to type (hd0,4)).


Code:

sudo apt-get install grub-splashimages #collection of splash images
sudo ln -s /boot/grub/splashimages/my_favourite_image.xpm.gz /boot/grub/splash.xpm.gz
sudo update-grub
Try and ERROR then cross your finger........

No comments:

Post a Comment