Implementation of Grub2 background settings

Source: Internet
Author: User

Grub2 is used in Ubuntu 9.10, and its settings are completely different from Grub1. Grub2 is more convenient and has more functions. The following describes how to implement Grub2 background settings.

To view Grub2 background settings, follow these steps:
$ Grub-install-v
Grub-install (gnu grub 1.97 ~ Beta4)
Install Grub2 Splashimages:
$ Sudo apt-get install grub2-splashimages

Note: These files are installed in the/usr/share/images/grub directory.

To configure Grub2, follow these steps:
Grub2 configuration does not directly edit/boot/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. 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.

Grub2 background example: Modify Grub2 background image
For example, use/usr/share/imagse/grub/Windbuchencom. tga as the background image:
[Step 1]
Modify/etc/grub. d/05_debian_theme and find this line:
For I in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub. {png, tga}; do
Changed:
For I in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/Windbuchencom. {png, tga}; do
In this way, Grub will:
/Boot/grub
/Usr/share/images/desktop-base
/Usr/share/images/grub
Find the Winbuchencom file with the suffix png or tga.
NOTE: If your image is in JPG format, you only need to add a jpg image after the suffix.
[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 1334x768, then modify/etc/default/grub: GRUB_GFXMODE = 1334x768

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.