Http://hi.baidu.com/huazhai800/blog/item/e0281fda1ed280ceb7fd487f.html/cmtid/5ecb2cd08434a880a1ec9c57
Configure grub2:
Grub2 configuration does not directly edit/boot/GRUB/grub. cfg,
(1) files in the/etc/grub. d directory
(2)/etc/default/GRUB
After these files are modified, run Update-grub to automatically generate/boot/GRUB/grub. cfg.
Files under/etc/grub. D are named similarly to files under/etc/rcX. D.
/Etc/default/GRUB stores some global parameters, such as grub_default and grub_timeout.
Example: Modify the grub2 background image
I made a 1024*768 PNG Image myself.
[Step 1]
Sudo gedit/etc/grub. d/05_debian_theme, find this line:
Fwallpaper = "/usr/share/images/desktop-base/moreblue-orbit-grub.png"
Color_normal = "Black/Black"
Color_highlight = "Magenta/Black"
Available menu colors include:
Black (transparent when the background color is used), blue, green, cyan, Red, magenta, brown, light-gray, dark-gray, light-blue, light-green,
Light-cyan, light-red, light-magenta, yellow, white
Find an image in PNG format (JPG, TGA), for example,/home/forever/1.png.
Sudo CP/home/forever/1.png/usr/share/images/desktop-base/moreblue-orbit-grub.png
In this way, grub will:
/Usr/share/images/desktop-Base
Find the moreblue-orbit-grub.png file with the suffix PNG or TGA under the directory.
[Step 2]
$Sudo Update-grub
In this way, you can see it after the restart.
If you want to modify the image resolution, the ratio is 1024x768, then modify/etc/default/GRUB:
Sudo gedit/etc/default/GRUB
Grub_gfxmode = 1024x768
(Removed from the previous)
PS: Ubuntu 11.04, to do this:
Sudo gedit/etc/grub. d/05_debian_theme
Find this line:
If set_background_image "/usr/share/images/desktop-base/desktop-grub.png ";
Then, place a PNG image in your home directory,
Copy to:/usr/share/images/desktop-base/
CP/home/forever/1.png/usr/share/images/desktop-base/desktop-grub.png
Sudo update-grub2
Note: This method is not available for Ubuntu 9.10. The content of/etc/grub. d/05_debian_theme is different.