4

I managed to change the background on the boot screen and now I need to set the font colours to something I can read. I've been lurking around the Ubuntu Forums and the Ask site and I've also tried with the grub-customizer with no luck. All I need is the right code for grub file.

Here's a copy of my current grub:

GRUB_DEFAULT="saved"
GRUB_SAVEDEFAULT="true"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_BACKGROUND="/home/autumn/Pictures/grub/suckng.jpg"

menu_color_normal=black/black
menu_color_highlight=yellow/dark-gray
color_normal=black/black
color_higlight=black/black
4

I had this problem in ubuntu 13.10 with grub-customizer. In my case it was caused by reverting to the default debian theme, which made the image appear in the background, but all text was grey. I solved it by editing the 05_debian_theme file found in /etc/grub.d/

$ sudo gedit /etc/grub.d/05_debian_theme

Find where it reads:

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

Change to:

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

Replace the colours with that of your choosing, remembering grub treats 'black' as transparent. Then run the following and reboot:

sudo update-grub

If that does not solve it for you go go back and edit the theme as mentioned above. You will see a section:

set_default_theme(){
case $GRUB_DISTRIBUTOR in
    Ubuntu|Kubuntu)
        # Set a monochromatic theme for Ubuntu.
        echo "${1}set menu_color_normal=white/black"
        echo "${1}set menu_color_highlight=light-blue/black"

        if [ -e /lib/plymouth/themes/default.grub ]; then
            sed "s/^/${1}/" /lib/plymouth/themes/default.grub
        fi
        ;;
    *)
        # Set the traditional Debian blue theme.
        echo "${1}set menu_color_normal=white/black"
        echo "${1}set menu_color_highlight=light-blue/black"
        ;;

Change the colours to what you require then update-grub, reboot.

Good luck, I hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.