RAM's logo in GRUB menu


Have a nicer GRUB menu adding the RAM logo in the background



The following works with GRUB version 0.97 !

The following assumes that you have a separate /boot partition in your harddisk.

Being root, first of all copy the logo to your /boot/grub directory, and change it's name:

root@yourcomputer:~# cd /boot/grub/
root@yourcomputer:~# wget http://ram.squat.net/tech/unixeries/ram.xpm.gz 
root@yourcomputer:~# mv ram.xpm.gz splash.xpm.gz

Now, simply edit the /boot/grub/menu.lst file, search the #Pretty coluors line, comment the default colors out, and add a line telling grub where to find the splash image... the final result will be similar to this (be sure that your boot hard disk is (hd0,0) !!!

# Pretty colours
#color cyan/blue white/blue
splashimage=(hd0,0)/grub/splash.xpm.gz

I wrote a little script to do it automatically... download the grub_splash_image.sh script, make it executable ( chmod 755 ./grub_splash_image.sh ), and run it ( sh ./grub_splash_image.sh ). Here the code:

#!/bin/sh

###################################
###################################
# script to add the nice RAM logo
# as a grub splash image
###################################

cp -v /boot/grub/menu.lst /boot/grub/menu.lst.bak ;

wget -O /tmp/ram.xpm.gz -c http://ram.squat.net/tech/unixeries/ram.xpm.gz ;

cp -v /tmp/ram.xpm.gz /boot/grub/splash.xpm.gz ;

sed s'/color\ cyan\/blue\ white\/blue/#color\ cyan\/blue\ white\/blue/' < /boot/grub/menu.lst > /tmp/menu.lst ; cp /tmp/menu.lst /boot/grub/menu.lst ;

sed '/#color\ cyan\/blue\ white\/blue/ a\
splashimage=(hd0,0)\/grub\/splash.xpm.gz' < /boot/grub/menu.lst > /tmp/menu.lst ; cp /tmp/menu.lst /boot/grub/menu.lst ;

update-grub ;