Grub2 of ubuntu 11.04 and startup background images

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.