LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Splashimage for Grub2 in Lenny (https://www.linuxquestions.org/questions/debian-26/splashimage-for-grub2-in-lenny-677180/)

megaprog 10-17-2008 02:48 PM

Splashimage for Grub2 in Lenny
 
Well, I have my Lenny/KDE3.5 Debian and I just installed Grub2 from the package "grub-pc" and I also installed "grub2-splashimages".

But I just can't find the way to make it happen, the grub works perfect! But I have readed so much and I still can't find the way to set a splashimage in my new grub2.

Have anyone achieved this?

JackieBrown 10-18-2008 02:20 AM

This is from memory but I think it was
set background_image /path of theme

megaprog 10-18-2008 08:51 AM

Here is the code I added trying to get a background image, according to this page, I have a PNG image of 8 bpp and 680x480, and nothing happens, my Grub2 menu don't enter the "if", wich means the image is not being loaded, and it goes to the else, and set the colors red/black and red/green.

Anyone have any clue?

Code:

## BEGIN /etc/grub.d/05_debian_theme ###
#set menu_color_normal=cyan/blue
#set menu_color_highlight=white/blue

insmod png
if background_image /boot/grub/splashimages/splash1.png ; then
 set menu_color_normal=white/black
 set menu_color_highlight=white/green
else
 set menu_color_normal=red/black
 set menu_color_highlight=red/green
fi


wificraig 10-26-2008 03:07 AM

menu.lst
 
Did you place a line in your grub/menu.lst?

splashimage=(hd0,0)/boot/grub/splashimages/splash1.png

megaprog 10-28-2008 07:59 AM

Quote:

Originally Posted by wificraig (Post 3322131)
Did you place a line in your grub/menu.lst?

splashimage=(hd0,0)/boot/grub/splashimages/splash1.png

This is different now, It's Grub2, now the file to edit is /boot/grub/grub.cfg

But I can't find to make it work =,(

wificraig 10-30-2008 04:07 PM

Grub 2
 
I have a Grub2 that I use with a custom boot CD. I have the grub splash image as an xpm.gz file.
The menu.lst line to call the splash image is:
splashimage=/boot/grub/penguin.xpm.gz

kushalkoolwal 12-16-2008 04:52 AM

I was able to install the splash image with GRUB2 and GRUB-PC as per here:

megaprog 03-07-2009 05:05 AM

Quote:

Originally Posted by kushalkoolwal (Post 3377158)
I was able to install the splash image with GRUB2 and GRUB-PC as per here:

I finally got my background image for Grub2

agalgo 09-22-2009 11:13 PM

two splashimages
 
Thanks to kushalkoolwal for the useful link. It was really carifying. I have installed grub2 with good results.

The thing is, I know have two splashimages comming onscreen. One, for grub, and the other sits there while the system boots.

I'm running debian lenny (stable).

It's just odd. I thought that by changing the grub image the other would change too... Surprise, it doesn't.

I found the directory for the image the system is calling. I overwrited the image with another one, using the same name... Still getting the same background... A DebianEdu image with a tux...

If anyone knows what pointers I should follow to change the image or, simply get rid of it, I'd pretty much appreciate it.

aus9 09-29-2009 07:34 AM

if interested my signature has a grub2 ....customised background howto.

rambutan 10-21-2009 08:37 AM

aus9 or others,
I'm having trouble getting the image. (Ubuntu 9.10 Beta with Grub 1.97 beta3)
I edited /etc/grub.d/05_debian_theme for the tga I want.
Then I ran update-grub and saw my image.tga listed but it doesn't show on reboot. Looking in /boot/grub/grub.cfg I see
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

I expected things like insmod tga and the image listed somehow.

Please post the theme section (05) from a working grub.cfg to help me trouble shoot.

rambutan 10-21-2009 10:10 AM

I found an example here:
http://ubuntuforums.org/showthread.php?t=1182436&page=4
Post 66 showed the section I wanted. Then I edited /boot/grub/grub.cfg and now I have the splash image working.
Here is what I have now:
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set c20d5e70-a842-4fbb-914c-5ec096e1754d
insmod tga
if background_image /usr/share/images/grub/Winter.tga ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/white
fi
### END /etc/grub.d/05_debian_theme ###

cola 10-21-2009 12:16 PM

Quote:

Originally Posted by megaprog (Post 3467655)
I finally got my background image for Grub2

You can also use startupmanager to set grub background.
Code:

sudo aptitude search startupmanager
sudo aptitude install startupmanager



All times are GMT -5. The time now is 02:51 AM.