LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   Added my own grub splash screen (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/added-my-own-grub-splash-screen-588460/)

checkmate3001 09-30-2007 05:22 PM

Added my own grub splash screen
 
I found out how to add my own grub splash screen. I'm sure most of you already know this stuff - but I'm proud.

First the picture you want to be your splash screen must be resized exactly to 640x480. If it is not then it will either not display properly or grub will not be able to read it and will give an error.

You must then have the colors indexed down to only 14 colors.
-In gimp-
Image
Mode
Indexed
Select: Generate Optimum Palette
Set: Maximum number of colors to 14

Now save the picture to .xpm format anywhere you like under any filename you like (keep it simple with "splash.xpm" if you want).

Now I recommend you copy the file to /boot/grub/. this way you don't have to remember where you put the thing.

gzip your picture
gzip [filename]

Edit the /boot/grub/menu.lst file
If your grub already has a splash image look for the entry with 'splashimage' and change it to point to your new splash image.
If your grub doesn't have a splash image you will have to add a line like this:
Quote:

splashimage=(hd0,0)/boot/grub/psych_flower.xpm.gz
Notice my splashimage is called psych_flower - it doesn't really matter what you name it.

The hardest part is determining what to use for (hd0,0). I just looked to see where it pointed to boot my system and guessed that. My setup is simple just one OS to boot - so not much to guess about. If you have problems you will have to look around to find out what put there.

If you want to make sure you didn't screw up your grub boot loader you can run:
Quote:

update-grub
It appears to just do some basic checks and makes sure everything is there and that menu.lst is readable. It will always say:
Quote:

Searching for splash image... Found (blah, blah, blah).
even if your are wrong about the (hd0,0) part. So it doesn't appear to do any deep checking.

Reboot and your set.

P.S. I did some checking and SuSe 10 doesn't have a 'update-grub' utility so your distro may not have this. All this was done on debian etch.

osor 09-30-2007 10:08 PM

Congratulations!

You might want to add that the splash image functionality is not part of vanilla-GRUB (at least not the pre-2.0 branch). To get this functionality on a self-compiled GRUB, you’ll have to patch it with one of the many splashimage patches (you can find them from e.g., Debian). You can also probably get similar patches from various other distro vendors.

Additionally, in GRUB 2.0, the configuration will be completely different. For one thing, there will be a video subsystem allowing full “32-bit” color at any VBE-2.0+ modes (e.g., 1024×768).


All times are GMT -5. The time now is 04:51 PM.