You are not logged in.

#1 2017-07-31 03:23:07

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

[SOLVED]Help with changing grub 2 background

Hello, I need to change the grub2 background and I can't seem to find the place where I can change it.

Thanks.

Last edited by DeepDayze (2017-08-01 11:07:07)


Real Men Use Linux

Offline

#2 2017-07-31 03:33:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: [SOLVED]Help with changing grub 2 background

Menu>System>Edit Debian Alternatives>desktop-grub smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#3 2017-07-31 11:15:58

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED]Help with changing grub 2 background

johnraff wrote:

Menu>System>Edit Debian Alternatives>desktop-grub smile

Ahh thanks and didn't see that one obviously.


Real Men Use Linux

Offline

#4 2017-07-31 11:47:19

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED]Help with changing grub 2 background

OK can I add an alternative which has a different path than the default?


Real Men Use Linux

Offline

#5 2017-07-31 13:03:09

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]Help with changing grub 2 background

DeepDayze wrote:

OK can I add an alternative which has a different path than the default?

Just click on the "Add" button, and choose the path. Or use 'update-alternatives' directly, in a terminal.

Or edit '/etc/default/grub' and add

GRUB_BACKGROUND=/path_to_image/filename

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2017-07-31 16:54:25

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,706

Re: [SOLVED]Help with changing grub 2 background

However, the rule is that the image at boot time must be accessible to Grub.  wink

Offline

#7 2017-07-31 20:50:40

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED]Help with changing grub 2 background

I just copied the image I wanted to /usr/share/images/bunsen/grub and renamed it to default.png. I first renamed the image already in that directory to default.bak. And that worked.


Real Men Use Linux

Offline

#8 2017-08-01 05:10:17

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Help with changing grub 2 background

please edit the title of your original post and add "[SOLVED]" to it.
thanks.

Offline

#9 2017-08-03 02:03:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: [SOLVED]Help with changing grub 2 background

DeepDayze wrote:

I just copied the image I wanted to /usr/share/images/bunsen/grub and renamed it to default.png. I first renamed the image already in that directory to default.bak. And that worked.

The problem with this solution is that the next upgrade of bunsen-images will overwrite your default.png with the BL file. If you add a personal custom file (eg grub-bg.png), and select it with the Debian alternatives system, it will stay selected. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#10 2017-08-03 03:02:38

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED]Help with changing grub 2 background

johnraff wrote:
DeepDayze wrote:

I just copied the image I wanted to /usr/share/images/bunsen/grub and renamed it to default.png. I first renamed the image already in that directory to default.bak. And that worked.

The problem with this solution is that the next upgrade of bunsen-images will overwrite your default.png with the BL file. If you add a personal custom file (eg grub-bg.png), and select it with the Debian alternatives system, it will stay selected. smile

OK thanks for that tip...will do that


Real Men Use Linux

Offline

#11 2017-08-03 06:22:14

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Help with changing grub 2 background

question:
is update-alternatives really needed here? especially since it's a custom image, not part of any debian package?
in this particular case, is there any reason why update-alternatives would be better than adding the path to the image in question to /etc/default/grub (GRUB_BACKGROUND="/root/readable/path/to/image")?

Offline

#12 2017-08-03 06:28:05

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED]Help with changing grub 2 background

ohnonot wrote:

is there any reason why update-alternatives would be better than adding the path to the image in question to /etc/default/grub (GRUB_BACKGROUND="/root/readable/path/to/image")?

The image can be changed with one command rather than two.

Offline

#13 2017-08-03 06:33:23

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Help with changing grub 2 background

^ isn't a "sudo update-grub" necessary regardless of the method used?

Offline

#14 2017-08-03 06:34:10

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED]Help with changing grub 2 background

I don't know actually  big_smile

If so then I withdraw my support  8)

Offline

#15 2017-08-03 08:19:03

Naik
Member
From: the edge of insanity
Registered: 2015-10-03
Posts: 328

Re: [SOLVED]Help with changing grub 2 background

^^ Nope. Update-grub is not needed, when altering the /usr/share/images/bunsen/grub/default.png or creating another sym-/hard-link to it. You can stay with us H_o_a_S!

naik --greetz


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen Codeberg

Offline

#16 2017-08-04 03:11:59

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: [SOLVED]Help with changing grub 2 background

ohnonot wrote:

question:
is update-alternatives really needed here? especially since it's a custom image, not part of any debian package?
in this particular case, is there any reason why update-alternatives would be better than adding the path to the image in question to /etc/default/grub (GRUB_BACKGROUND="/root/readable/path/to/image")?

Debian is already using the alternatives system to set "desktop-grub". We just set it to our own image. If that mechanism wasn't already in place we might have thought longer before choosing to use it, though it does allow more flexibility.

Without checking right now, I don't think update-grub is needed when switching the desktop-grub alternative because grub continues to see the same image path, via symlinks. Editing /etc/default/grub would require that though.
EDIT: My statement here is wrong. If the real image path changes then update-grub is always needed, even if the symlink path stays the same.

Last edited by johnraff (2017-09-15 09:21:39)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#17 2017-08-04 09:03:16

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Help with changing grub 2 background

^ 'k, thanks for bearing with me debian-illiterate ...

Offline

Board footer

Powered by FluxBB