2

I am trying to get Grub to look nice.

But, for some reason the changes do not apply. I tried background images, (custom ones and the ones from grub2-splashimages), color changing (all the options), but it does not want to apply. It does save correctly(without any errors), and as far as I know, grub is installed on the default location. Also the changes are still there when I re-launch grub-customizer.

Also I am using grub-emulator to test the result, but it is showing the exact same thing.

If you need any of grub's config files, please mention.

JustRamon
  • 23
  • 1
  • 1
  • 4

3 Answers3

1

To add a custom background image:

  1. Save your background image to your Pictures directory as .png
  2. Open terminal and paste sudo gedit /etc/grub.d/05_debian_theme
  3. Paste the line GRUB_BACKGROUND="/home/YOURUSERNAME/Pictures/NAME-OF-BACKGROUND.png" on its own line in the file.
  4. In terminal run sudo update-grub
  5. Terminal should say background image found.
  6. Reboot.

If this does not work, then I am not sure. The link I posted also has instructions on changing the text color and text background. If this works for you, please be sure to up vote it and mark as the correct answer. Thank you.

jbrock
  • 3,417
0

Grub works better with png images than jpg.

Have a look at this page: Ubuntu Community - Grub2/Displays

GRUB 2 can use PNG, JPG/JPEG and TGA images for the background. The image must meet the following specifications:

  • JPG/JPEG images must be 8-bit (256 color). Else you will get errors saying "Too many Huffman tables". Since most of the time you will not want to limit yourself to 256 colors (which is totally yesteryear) you will probably find PNG much preferable.
  • Images should be non-indexed, RGB.
loxaxs
  • 809
-1

If you only want to change the background image you can do this:

Put the image under /boot/grub/ and run:

sudo update-grub

For some reason grub-customizer doesn't work you should fill a bug.
It happens to a lot of users.

This article for Debian should work, since Ubuntu is based on it.

Now to change the colors, open “/etc/grub.d/05_debian_theme” and find the following line:

    if [ -z "${2}" ] && [ -z "${3}" ]; then
            echo "  true"
    fi

and, replace them with the following:

if [ -z "${2}" ] && [ -z "${3}" ]; then
    # echo "  true"
    echo "    set color_highlight=red/green"
    echo "    set color_normal=light-cyan/black" 
fi

Don’t change the “black” present in color_normal. If changed, the image will not be transparent in the area where the menu is displayed.

After this change, execute “update-grub”, and reboot your system.

The following colors are supported by grub:

black
blue
brown
cyan
dark-gray
green
light-cyan
light-blue
light-green
light-gray
light-magenta
light-red
magenta
red
white
yellow

The article explains also the paths and the requirements for the images.
You simply need to put them in some folder no need to edit the config.

Make a backup of the file that you will edit.

Scorpion
  • 384
  • 3
  • 15