Setting A Wallpaper For The Grub Menu

Alexzee

Silver Member
Silver Supporter
Joined
Jun 1, 2019
Messages
5,103
Reaction score
3,091
Credits
32,664
The Grub Menu by default is a tad drab with an all black background and white lettering.

To see the 3 entries in my Grub Menu on this triple booted rig, I prefer to set an image that will have a dark background with some zip.
In order to accomplish this you'll need to find that wallpaper that you prefer. Once that's done you'll need to edit that wallpaper in Gimp, Inkscape or perhaps Image Magick.

In Gimp you will need to change the .jpg that you downloaded to a .png. Go to file> Export and follow the prompts to make the change to the wallpapers extention.

Once you have the wallpaper you want and it's been converted to a .png format open your /etc/default/grub config with nano or your favorite text editor.
In the code below I opened the /etc/default/grub config with cat however, to make the change you'll have to open this with root privileges. Something like: sudo nano /etc/default/grub.

Code:
Debiansparky:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_BACKGROUND=/home/alex/GrubPics/SciFiCar.png

In this case I didn't have the string "GRUB_BACKGROUND=exact/path/to/.png" so I had to add it and save the changes.

To close nano hold down CTRL+o that's the letter o above the L key on the keyboard. Next press Enter and lastly hold down CTRL +X to save and make the change.

Once finished, update grub so the next time you boot your system your new wallpaper will be in place in your Grub Menu.

Code:
sudo update-grub

The wallpaper that came with Sparky Linux was not to my liking-
Old Grub.jpg

After changing the wallpaper, editing the /etc/default/grub conf file and updating Grub my new polished wallpaper was good to go!
New Grub.jpg

You'll need to ensure before doing this, that you edit the /etc/default/grub config file that is directly related to the distribution that is at the very top of your Grub Menu.

If you have trouble reading the text in the Grub Menu you can adjust that as well.
Again, edit your /etc/default/grub config file with root privileges and uncomment this line and type in the size you prefer.

Code:
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=800x600

Here's a few wallpaper sites that have a variety of styles and themes you'll have to explore.


Enjoy and drive your Linux safe.

Alex
 


Another option you can use, in more cases than not, and in many distros - rather than editing /etc/default/grub

GRUB_BACKGROUND=/home/alex/GrubPics/SciFiCar.png

... to simply use admin privileges to place SciFiCar.png in

/boot/grub

and then run

Code:
sudo update-grub

This is best performed using .png over .jpg

Cheers

Wizard
 
If you have trouble reading the text in the Grub Menu you can adjust that as well.
Again, edit your /etc/default/grub config file with root privileges and uncomment this line and type in the size you prefer.

# The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' GRUB_GFXMODE=800x600
Thanks for this. Changing my GRUB menu resolution was on my to do list. That was easy enough. Btw not to hijack your thread but I see you are using Debian Bookworm would you happen to know how to adjust the timer for the default screen lock? I believe it is lightdm but I haven't been able to figure this one out.
 
Thanks for this. Changing my GRUB menu resolution was on my to do list. That was easy enough. Btw not to hijack your thread but I see you are using Debian Bookworm would you happen to know how to adjust the timer for the default screen lock? I believe it is lightdm but I haven't been able to figure this one out.
You're welcome.

In regard to the 'default screen lock' it's generally adjusted in the Settings> Power Management. Screenshot attached:-
It's a little different depending on the DE that you are running. Mate, KDE, Gnome, XFCE and many others.
See the link below.

Disable screen saver / blanking / lock in Debian Bookworm XFCE?

 

Attachments

  • Power MNG.png
    Power MNG.png
    37.8 KB · Views: 186
Thanks again for the link. I'm using Debian 12.11 XFCE on this machine. I decided to go with options in XFCE's power manager although its a little limited. Minimum time I can set it to is 15 minutes (preferred 10 minutes). This is an area where XFCE has some bugs when it comes to laptops. I usually use xscreensaver but it freezes/locks up when I open and close the lid. XFCE screen saver doesn't come installed on Debian XFCE and is a pain to install so that is not an option. I'll just have to settle for default lightdm light locker and 15 minute time out.
 


Follow Linux.org

Members online


Top