You Are Here: Home » Hacks » How-To » Linux

How To Put Background Image In Grub (using StartUp-Manager)

By Ricky on November 5th, 2009 
Advertisement

Grub2

NOTE: THIS POST IS FOR JAUNTY NOT KARMIC.

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

  1. 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.grubback1
  2. 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.
  3. 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.grubback3
  4. 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

  1. If, however you want to use an existing image, go to File -> Open and select the image you want to use.
  2. 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.grubback2
  3. 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.grubback3
  4. 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

  1. Compress the image by using Gzip. To do this:
    • Open the Terminal.
    • Run the command: gzip ~/Desktop/grubback.xpm.
  2. 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:

  1. If you do not have StartUp-Manager already, install it. To install:
    • Open Terminal.
    • Run the command: sudo apt-get install startupmanager
  2. Now that you have the StartUp-Manager, run it.
  3. Under the tab Appearance,
    • Check the checkbox for Use background image for bootloader menu
    • In the dropdown menu for Grub background images, select your image.
    • Click on Close.grubback4

Done! Reboot your system to chech it.

Advertisement







How To Put Background Image In Grub (using StartUp-Manager) was originally published on Digitizor.com on October 11, 2009 - 4:08 am (Indian Standard Time)