-   Slackware (
-   -   Can't get colors in grub2 boot menu. (

slackin1stimer 12-25-2012 02:08 AM

Can't get colors in grub2 boot menu.
I've recently installed Slack-14 64bit and so far everything worked as it should until I installed grub2--big surprise there right?. There is by no means a show-stopping lack of functionality but I would really like to get some colors in my grub2 menu. I've edited "/etc/default/grub" many times with no success. I can't even change the resolution on the boot menu. I've used other distros on this laptop before and been able to use colors and images with no problem. I'm sure there's a little switch somewhere that needs to be flicked but I just can't find it. Any help would be appreciated.

alfredo10 12-26-2012 05:20 AM

Some URLs (I know, partially concerning different distributions); maybe you'll find a hint:

hakan56 12-26-2012 09:12 AM

About background pictures, look here...
..number 6 "imprazaguy"

About colors...
The /etc/grub.d/05_debian_theme is not present anymore. (that,s where the "colorcommands" for /etc/default/grub was before)

Now you can do it with a /boot/grub/custom.cfg file, you create it and put this in...


# menu_color_highlight => The color of the highlighted menu entry and its background within the menu box
# menu_color_normal => The color of non-selected menu entry and its background within the menu box
# color_normal => The color of text and background outside the menu box
# The syntax for specifying the color is as follows:
# menu_color_highlight=fg-color/bg-color
# 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 "black/black" equals foreground/background colors, except that black as a background
# color actually means "transparent" (no background color).

set color_normal="brown/black"
set menu_color_normal="black/black"
set menu_color_highlight="red/light-gray"

...of course you should pick your own colors.

This file is called from /etc/grub.d/41_custom, so make sure it is "executable" before you run..
# grub-mkconfig -o /boot/grub/grub.cfg create a new grub.cfg

As always, please be patient with my English, it.s not my native language. :)


All times are GMT -5. The time now is 07:43 PM.