Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 12731  / 2 Years ago, mon, april 4, 2022, 3:06:20

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

More From » boot

 Answers
5

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.


[#26532] Tuesday, April 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
ouschee questions
;