No matter what distribution of Linux you’re using, the default GRUB bootloader background image is probably pretty generic. Or, maybe you just want to personalize it. Since your system isn’t booted very far, your tool set is rather limited, so there are strict requirements for the image.
- It must be exactly 640×480
- It can only use up to 14 colors
- It must be in .xpm file format
That’s pretty limited when you’re used to digital cameras taking high resolution pictures with millions of colors, but it will have to do. Use Gimp or other image editing software (I like mtpaint, available in the standard Fedora YUM repositories) to chop your image if you want to play with it visually first.
If you’re all set, or you already have the image ready, use ImageMagick to get your chosen image down to spec. (ImageMagick is usually installed by default, but is available in the standard repos)
$ convert image.png -colors 14 -resize 640×480 grubimg.xpm
ImageMagick’s “convert” tool will recognize the file types and take care of all the “magick” for you. All that’s left to do is put this image file in your grub.conf
You can also gzip the image file if you want, in which case you would probably call it grubimg.xpm.gz. You can call it splash or fallout3 or whatever, as long as you specify the path to it in grub.conf.
Note: I used this image from Fallout 3 which required me to open it in GIMP and change the color mode to indexed. (Image -> Mode -> Indexed) and then I changed the maximum colors to 14. I thought it was a good picture to use because there’s not much variation of color in the first place. I can’t really see a difference in the before & after except for the smaller file size.
Related Posts: On this day...
- TRON: Legacy RECONFIGURED to Feature Remixes of the Original Motion Picture Soundtrack by Acclaimed Dance and Electronic Music Producers Including Moby, The Crystal Method and Boys Noize - 2011
- Mario and Luigi appear in Manchester - 2010
- "The Butt Station" Desk Accessory Holder - 2010
- Supreme Court Refuses To Hear Lawsuit Blaming Gun Companies For Shooting Deaths - 2009
- Mario seen on the steets of New York City - 2009
- Opting Out of Verizon's New Data Sharing Policy - 2009
- The Pirate Bay - 2009
- iTunes Store challenged by rogue developers - 2009
- 34% Of Americans Don’t Think It's Possible To Live Without Government Help - 2009
- HOWTO: Reset a forgotten MySQL root password - 2009