The version of grub after Ubuntu9.10 is grub2. The color of the pictures and text on the startup page is different from that on the original page. In addition, grub2 versions also differ in Ubuntu11.10 and Ubuntu12.04. There are a lot of online materials for the change methods under Ubuntu11.10. I have read a lot of related materials. There are two methods: 1. directly modify the grub. cfg file 2. Modify the 05_debian_theme file first, and then update "sudoupdate-g
The grub version after Ubuntu 9.10 is grub2, and the change of the startup page image and text color is different from the original version. In addition, for grub2, there are also differences in Ubuntu 11.10 and Ubuntu 12.04. There are a lot of online materials for the change methods under Ubuntu 11.10.
I have read a lot of related materials. There are two methods: 1. directly modify the grub. cfg file 2. First modify the 05_debian_theme file and then update "sudo update-grub ". Another method is to modify the 40_custom file, which is used on the user-defined interface. Here, the structure of the grub configuration file cannot be mentioned:/boot/grub. cfg;/etc/grub. d/(the directory contains shell files. The 05_debian_theme and 40_custom files to be used are all in the directory);/etc/default/grub.
1. directly modify the grub. cfg file
A. Enter the terminal and run: sudo gedit/boot/grub. cfg;
B. Find the sentence "### BEGIN/etc/grub. d/05_debian_theme ###". The following code is as follows:
If background_image/usr/share/images/desktop-base/desktop-grub.png; then
Set color_normal = green/black
Set color_highlight = red/yellow
Else
Set menu_color_normal = white/black
Set menu_color_highlight = white/light-gray
If the background image is/usr/share/images/desktop-base/desktop-grub.png, set the unselected background in the page to Black (that is, transparent), the foreground is green, set the selected text background to yellow and the foreground color to red. You can modify it here. For example, you can change the background to white or the font to blue. Note that the background image must exist. If it does not exist, the else script is executed.
2. Modify the 05_debian_theme file and execute the update.
A. Enter the terminal and run: sudo gedit/etc/grub. d/05_debian_theme;
B. Find
"# Next try to use the background image and colors specified by desktop-base.
If set_background_image "/usr/share/images/desktop-base/desktop-grub.png" "green/black" "red/yellow"; then
Exit 0
Change the set_background_image parameter. The first parameter is WALLPAPER, the second parameter is COLOR_NORMAL, and the third parameter is COLOR_HIGHLIGHT. Change to the desired parameter;
C. Save the changes to the above file, return to the terminal, and execute: sudo update-grub.
Note: Some materials may be changed elsewhere, as long as they are changed at the last position, you can complete the settings. Here I am not clear, specifically: In the 05_debian_theme change, if you change the settings in front of the shell file, at the same time, the setting is also performed after the shell file, so the final change will prevail.
3. Modify the 40_custom file and execute the update.
A. Enter the terminal and run: sudo gedit/etc/grub. d/40_custom;
B. Add at the end of the file:
Set color_normal = greeen/black
Set colot highlight = red/yellow
C. Save the settings and return to the terminal and run sudo update-grub.
If the above 2 and 3 changes are made at the same time, the 3 settings are retained.