naquaada
Thu Nov 01, 2012 1:54:33 am
So, after some searching and frustrating hacking I found out how to add a bootpicture and other useful entries in GRUB.
First, get full read/write access for your system using
gksu nautilus /
A window will be opened, and you'll be asked for your password. Your root folder will open. Enter the /boot/grub folder. Make a backup from grub.cfg, best name it grub.cfg.txt. Open grub.cfg and search for the line
Set the resolution the size of your bootpicture, otherwise it will be scaled and look blurry. It could be located in any folder, but it is best to copy it directly to the /boot/grub folder. The resolution has to be VESA-compatible, of course.
Scroll down, then you find some lines
This is the old bootloader color scheme. To deactivate it, set ### in front of every line between the BEGIN...END part. Now to the color scheme and the bootpicture.
This entry creates a boot selector with light-gray text and a light-gray option selector and transparent background. There are some colors, black is always for transparent. See here for more infos:
https://help.ubuntu.com/community/Grub2 ... ont_Colors
Now save the file and check if it worked. If you bootloader won't work anymore, boot from the Live DVD, make your harddrive read/writeable and check every change. Alternatively you may restore to your original bootloader.
Something for Thinkpad users: If you're creating a Thinkpad-specific background picture, use this line for highlighting the options:
This line creates a selection line with light-red text on a dark-gray background. Fits very nice to the Thinkpad look.
First, get full read/write access for your system using
gksu nautilus /
A window will be opened, and you'll be asked for your password. Your root folder will open. Enter the /boot/grub folder. Make a backup from grub.cfg, best name it grub.cfg.txt. Open grub.cfg and search for the line
- Code:
set gfxmode=auto
Set the resolution the size of your bootpicture, otherwise it will be scaled and look blurry. It could be located in any folder, but it is best to copy it directly to the /boot/grub folder. The resolution has to be VESA-compatible, of course.
Scroll down, then you find some lines
- Code:
### BEGIN /etc/grub/.d/05_debian theme ###
.
.
.
### END /etc/grub/.d/05_debian theme ###
This is the old bootloader color scheme. To deactivate it, set ### in front of every line between the BEGIN...END part. Now to the color scheme and the bootpicture.
- Code:
### BEGIN bootpicture ###
color_normal=light-gray/black
menu_color_normal=light-gray/black
menu_color_highlight=black/light-gray
terminal_output gfxterm
insmod png
background_image /boot/grub/yourimage.png
### END bootpicture ###
This entry creates a boot selector with light-gray text and a light-gray option selector and transparent background. There are some colors, black is always for transparent. See here for more infos:
https://help.ubuntu.com/community/Grub2 ... ont_Colors
Now save the file and check if it worked. If you bootloader won't work anymore, boot from the Live DVD, make your harddrive read/writeable and check every change. Alternatively you may restore to your original bootloader.
Something for Thinkpad users: If you're creating a Thinkpad-specific background picture, use this line for highlighting the options:
- Code:
menu_color_highlight=light-red/dark-gray
This line creates a selection line with light-red text on a dark-gray background. Fits very nice to the Thinkpad look.