If you are using Ubuntu (or any of its variant), chances are you have thought why Grub looks so retro, with its black background and white text, while some other OS like Fedora can have a nice graphical Grub. In this article we show you how to put a nice background image in Grub, so that it looks better, without doing potentially dangerous stuffs like messing with the Grub config files manually.

So, here goes the step by step procedure to putting a background in Grub:

Creating the background image

The first thing you need to do is create the background image.

In Gimp, File -> New.

Enter Width = 640 pixels and Height = 480 pixels.

Click on Ok.

Now make the background you want. However keep in mind these things:

The Grub background can have only 14 colors. So, you may not want to use those pretty gradients.

The middle portion of the screen will be occupied by the GRUB menu. So, if you are putting logo, text etc. the top and bottom 40-45 pixels is the best place.

If you have a widescreen, the 640x480 image will be stretched to fit. So, to prevent distortion of the texts and logo, shrink it by about 20% horizontally.

Now, that the artist in you has finished creating the image, convert the image to a 14 color image. To do this:

Go to Image -> Mode -> Indexed.

Click on the Generate optimum palette radio button and enter the value of Maximum number of colors as 14.

You can experiment with the various color dithering options available. Personally, I like the Floyd-Steinberg (reduced color bleeding).

Click on Convert.

Go to File -> Save. Give any name you want, however make the extension as .xpm. For the remainder of this article, we are going to assume that the file is saved as grubback.xpm in the desktop.

If you want to use an existing image

If, however you want to use an existing image, go to File -> Open and select the image you want to use.

The image has to be resized to 640x480. To do this:

Click on Image -> Scale Image

Enter Width = 640 pixels and Height = 480 pixels.

Click on Scale.

Convert the image to a 14 color image. To do this:

Go to Image -> Mode -> Indexed.

Click on the Generate optimum palette radio button and enter the value of Maximum number of colors as 14.

You can experiment with the various color dithering options available. Personally, I like the Floyd-Steinberg (reduced color bleeding).

Click on Convert.

Go to File -> Save. Give any name you want, however make the extension as .xpm. For the remainder of this article, we are going to assume that the file is saved as grubback.xpm in the desktop.

Compress the image and copy it into the Grub folder

Compress the image by using Gzip. To do this:

Open the Terminal.

Run the command: gzip ~/Desktop/grubback.xpm.

Copy the compressed image to the Grub folder.

In terminal, run the command: sudo cp ~/Desktop/grubback.xpm.gz /boot/grub/splashimages/

Set it as the Grub background

Instead of editing the Grub config file manually, which could end in disaster if something went wrong, we are going to use StartUp-Manager. Here is the step-by-step explaination: