Go Back   openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read


Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-Jan-2009, 13:09
henkees's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: The Netherlands, Zeeland
Posts: 41
henkees hasn't been rated much yet
Default Howto modify grub splash

This is for the Grub 0.97 (standard Grub).

You want another splash in your Grub? It's quite easy.

First about the picture that you want to use:
You can only use a picture with format 800x600 maximum, 16 colors, one layer.
You need the convert tool for this, you can install this via Yast.

How to convert the image to the right format:
Open konqueror and browse to the folder which contains the picture that you want to use. Open a terminal (F4) and type:
Code:
convert name_of_your_picture.jpg -resize 800x600 -colors 16 -depth 16 -normalize -verbose background.xpm
The output of the command above, will create a file with the name background.xpm
After this it must be converted to jpg:
Code:
convert background.xpm back.jpg
The output of the last command will create a file with the name back.jpg
Later, you will see why...

I suggest you to open the file back.jpg and have a look if you still like it after the conversion!
When you are satisfied with it, then continue:


Second: "Insert" the picture in the "message" file.
In the folder /boot you can find a file "message" This file is a cpio archive, you can compare this a little bit with a packed archive like a tar file. To extract the "message" file, open a root terminal and type:

Code:
cd /boot
mkdir temp
cp message message.old    # backup you old message
mv message /boot/temp
cd /boot/temp
cpio -i < message
rm -rf message
rm -rf back.jpg
cp /home/YOUR_HOME_FOLDER_NAME/FOLDER_WITH_NEW_BACK.JPG_INSIDE/back.jpg back.jpg
ls .| cpio -o > message
mv message /boot/message
rm -rf /boot/temp
Short: (in human language) copy the /boot/message to a temporary empty folder and type in a console: cpio -i < message. Delete the old message in this folder. Copy the converted image to this folder with the name "back.jpg" After this type in the console: ls . | cpio -o > message.
Copy the "message" to /boot (you can only do this as root!). Don't forget to backup the old message!

For converting an image you can also use the Gimp, but on command line it goes faster.

Extra:
I have created in my home folder a folder splash, which contains message-files with the back.jpg that belongs to the message; like this way:

message_church back_church message_car back_car etc...

In this example is back_church an image of a church, and is message_church the message with this image inside. So when I want to change the grub-splash, I can easily see what is what; and I only have to copy the message_church to /boot (of course with the name "message") and I will see the image with the church on next boot.

**Edit** When you are ready with converting and copying, you may delete the files back.jpg and background.jpg that are still in the home folder where we started.
__________________
Slack & Suse User. Linux Counter: 471834 get counted! Love For You Too
Reply With Quote
  #2 (permalink)  
Old 22-Jan-2009, 14:02
Explorer Penguin
 
Join Date: Jan 2009
Posts: 112
NigmaToolin can hope their reputation improves
Default Re: Howto modify grub splash

Some useful material here, particularly about resizing graphics, thanks!

BUT rather than doing this all manually, it is possible to at least manage /boot/message with gfxboot Gfxboot - openSUSE

BUT it is possible to configure the GRUB boot screen to be any size supported by the framebuffer on your graphics card - use
Code:
hwinfo --framebuffer
to see possible supported graphics modes.
Reply With Quote
  #3 (permalink)  
Old 24-Jan-2009, 13:49
henkees's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: The Netherlands, Zeeland
Posts: 41
henkees hasn't been rated much yet
Default Re: Howto modify grub splash

Thanks for the extra information; I didn't even know that page from Suse...

Personally I still like more the real work on the command-line (one of the reasons I use also slackware...)
__________________
Slack & Suse User. Linux Counter: 471834 get counted! Love For You Too
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2