Modificar líneas de menú
- To prevent a file in /etc/grub.d from adding items to the menu, remove the executable bit or remove the applicable file.
- memtest86+: If you don’t want to have memtest86+ displayed in your menu, run sudo chmod -x /etc/grub.d/20_memtest86+. The file will remain but will not be acted upon by update-grub.
- Recovery mode: If you don’t want Recovery mode entries for your linux kernels, edit /etc/default/grub and add this line:
- GRUB_DISABLE_LINUX_RECOVERY=true
- If a custom script in the /etc/grub.d/ folder contains multiple menu entries, individual items may be removed and others retained.
- Tip: If the user wants his custom entries to appear at the top of the menu, the file can be named a value less than “10_linux”, such as “07_custom”. Check that the “DEFAULT” value in /etc/default/grub points to the correct menuentry after making this change.
- Changes will not take effect on the Grub 2 menu until “update-grub” is run to update grub.cfg
Cambiar la resolución
Grub2 uses a collection of files to set the various settings it uses. You can specify your desired resolution in the /etc/default/grub file. Edit it with this command:
gksudo gedit /etc/default/grub
Look for the line #GRUB_GFXMODE=640X480. Remove the # and set your desired resolution. Here’s what I did:
GRUB_GFXMODE=1280x1024
For whatever reason, one that I don’t totally understand, this is not all you have to do to change the resolution grub uses. As I discovered in this blog, there is one more change you need to make.
Edit this file: /etc/grub.d/00_header with the command:
gksudo gedit /etc/grub.d/00_header
You are looking for the line that consists of:
set gfxmode=${GRUB_GFXMODE}
After that line, add:
set gfxpayload=keep
your block of code will look like:
Cambiar los colores
Grub defaults to black text with magenta highlighting. To change this scroll down to the bottom of the file and look for the code:
if background_image `make_system_path_relative_to_its_root ${bg}` ; then
set color_normal=black/black
set color_highlight=magenta/black
else
You’ll want to keep the color after the slash, for both instances, set to black. It seems this makes the foreground transparent allowing your to see your handsome new background. You can see a list of available colors in the grub manual. This is what I used for my brown-heavy image.
if background_image `make_system_path_relative_to_its_root ${bg}` ; then
set color_normal=white/black
set color_highlight=brown/black
else