Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Change Grub2 background

Post Reply
Spaceman Spiff
Forum Novice
Forum  Novice
Posts: 18
Joined: Sat Mar 17, 2018 12:01 am

Change Grub2 background

#1

Post by Spaceman Spiff » Thu May 09, 2019 2:33 pm

How do I change the grub background to the sparrowhawk mx image?

User avatar
dolphin_oracle
Developer
Posts: 12199
Joined: Sun Dec 16, 2007 1:17 pm

Re: Change Grub2 background

#2

Post by dolphin_oracle » Thu May 09, 2019 3:12 pm

Spaceman Spiff wrote:
Thu May 09, 2019 2:33 pm
How do I change the grub background to the sparrowhawk mx image?
select whatever background you want in the mx-boot-options background chooser.

or edit the Grub_background_picture (I think) line in /etc/default/grub, and do a "sudo update-grub".

but that's what mx-boot-options will do anyway.


help link for those interested: https://mxlinux.org/wiki/help-files/hel ... t-options/
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18.3
lenovo s21e - antiX-19 beta 2 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Cavsfan
Forum Novice
Forum  Novice
Posts: 23
Joined: Tue Apr 02, 2019 3:07 pm

Re: Change Grub2 background

#3

Post by Cavsfan » Thu May 09, 2019 5:52 pm

You can use one of the pictures in the /usr/share/backgrounds/ folder or you can use your own picture.
Then edit /etc/default/grub where it says this:

Code: Select all

export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png"
I like to put my grub backgrounds in /boot/grub/picture.png etc. but, where you store it is up to you.
Then you just have to put that between quotes as above.

Since the font color is white stick with a darker picture.

Of course then

Code: Select all

sudo update-grub
You should see the picture listed in the terminal output. But you'll need to reboot to see if it worked.
I've found png pictures work the best.

Cheers
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki for Legacy/MBR and UEFI/GPT systems
Intel Core i7-4770K, Mobo: ASUSTeK model: Z87-K, Nvidia GeForce GTX 980 Ti, 16GB RAM, 1TB Western Digital Blue SSD, 480GB OCZ VERTEX460 SSD

Spaceman Spiff
Forum Novice
Forum  Novice
Posts: 18
Joined: Sat Mar 17, 2018 12:01 am

Re: Change Grub2 background

#4

Post by Spaceman Spiff » Thu May 09, 2019 7:40 pm

Thanks guys :happy:

User avatar
asqwerth
Developer
Posts: 4976
Joined: Sun May 27, 2007 5:37 am

Re: Change Grub2 background

#5

Post by asqwerth » Thu May 09, 2019 11:55 pm

Summary of other posts:

MX Boot Options - the GUI way to do it.

Cavsfan's post - the CLI way.



Regardless of method used, there are picture limitations.

If you use jpg pics there is a limit on the number of the colours can exist in the pics. See -

https://www.unixmen.com/change-grub-bac ... inux-mint/
...If we want to change the Background of grub menu, the image should be PNG, JPG or TGA image. JPG/ JPEG images must be 8-bit (256 color). Else you will get errors, so the PNG images are preferable. Images should be non-indexed, RGB.
But note the limitation on png pics as well. I've encountered that before for some complex png pics.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Cavsfan
Forum Novice
Forum  Novice
Posts: 23
Joined: Tue Apr 02, 2019 3:07 pm

Re: Change Grub2 background

#6

Post by Cavsfan » Sat May 11, 2019 1:20 pm

My current custom Grub2 screen:
In /etc/default/grub:
export GRUB_MENU_PICTURE='/boot/grub/Matrix-1920x1200.png'

Image

Along with custom menuentries.
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki for Legacy/MBR and UEFI/GPT systems
Intel Core i7-4770K, Mobo: ASUSTeK model: Z87-K, Nvidia GeForce GTX 980 Ti, 16GB RAM, 1TB Western Digital Blue SSD, 480GB OCZ VERTEX460 SSD

Snaffle
Forum Novice
Forum  Novice
Posts: 9
Joined: Sun May 05, 2019 7:44 pm

Re: Change Grub2 background

#7

Post by Snaffle » Fri May 17, 2019 10:59 pm

Cavsfan wrote:
Sat May 11, 2019 1:20 pm
My current custom Grub2 screen:
In /etc/default/grub:
export GRUB_MENU_PICTURE='/boot/grub/Matrix-1920x1200.png'

Image

Along with custom menuentries.
That looks awesome! :cool:

User avatar
Cavsfan
Forum Novice
Forum  Novice
Posts: 23
Joined: Tue Apr 02, 2019 3:07 pm

Re: Change Grub2 background

#8

Post by Cavsfan » Tue Jun 11, 2019 11:11 am

Snaffle wrote:
Fri May 17, 2019 10:59 pm
Cavsfan wrote:
Sat May 11, 2019 1:20 pm
My current custom Grub2 screen:
In /etc/default/grub:
export GRUB_MENU_PICTURE='/boot/grub/Matrix-1920x1200.png'

Image

Along with custom menuentries.
That looks awesome! :cool:
Thanks!
I discovered that putting a png picture in /boot/grub/, that will override what is in /etc/default/grub.
If it finds a picture there, it uses the fonts listed in /etc/grub.d/05_debian_theme.

If you do not put the picture in /boot/grub/, your font colors at boot will be white as in my picture.
Mine are like this now:

Code: Select all

	echo " set color_normal=yellow/black"
	echo " set menu_color_normal=cyan/black"
	echo " set menu_color_highlight=red/black"
This is from 1.4.2 in the Wiki in my signature.
It works well on MX Linux.
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki for Legacy/MBR and UEFI/GPT systems
Intel Core i7-4770K, Mobo: ASUSTeK model: Z87-K, Nvidia GeForce GTX 980 Ti, 16GB RAM, 1TB Western Digital Blue SSD, 480GB OCZ VERTEX460 SSD

User avatar
Cavsfan
Forum Novice
Forum  Novice
Posts: 23
Joined: Tue Apr 02, 2019 3:07 pm

Re: Change Grub2 background

#9

Post by Cavsfan » Sat Jun 15, 2019 6:41 pm

Since "MX Linux is a cooperative venture between the antiX and former MEPIS communities..." I installed Antix 17.4.1 over the last couple of days.

I customized the grub screen on Antix with a picture of a narrow European street as the background and the colors the same as above.

If your system is Debian based and has a /etc/grub.d/05_debian_theme file, the colors go there. The picture goes in the /boot/grub folder and if it finds a picture, it uses the colors.
I commented out the background line in /etc/default/grub.

If it doesn't find a picture there, all of the font colors will be white.
Some other distros like Arch Linux, the colors and picture go in /etc/default/grub.

Image

The Wiki in my signature tells you how to do this on Debian based systems like MX. Currently, I've got 7 Linux systems installed UEFI and because every time one of them installs a new version of grub and it moves to that partition, I have all of them customized.
Grub is a good thing but, it does not always get everything right. Like on Arch Linux there are 2 .img files on the initrd line. Arch and openSUSE are the only 2 that put both of them. I opened a bug on openSUSE TW that solved that one problem.
But, the rest leave Arch Linux unbootable unless you edit the line and know to add /initramfs-linux.img to the initrd line.

That should say 18.3 not 18.2 but, easily fixed.
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki for Legacy/MBR and UEFI/GPT systems
Intel Core i7-4770K, Mobo: ASUSTeK model: Z87-K, Nvidia GeForce GTX 980 Ti, 16GB RAM, 1TB Western Digital Blue SSD, 480GB OCZ VERTEX460 SSD

Post Reply

Return to “General”