The Grub2 boot manager is the most popular and widely used boot manager in GNU/Linux distributions. However, it's also one of the least customizable programs in the GNU/Linux world, although this changed with the second version of Grub, which allowed for updating and customizing this boot manager.
To add our own personal touch, we can add colors to Grub2 and also a background image , but we can also change the name of the entries, the title, the font size, the resolution, the font type, etc…
Grub2 even allows us to change the inputs of the operating systems that we have
However, today's tip will only show you how to set a background image. These steps must be done gradually, as GRUB2 is a very important operating system program , perhaps the most important after the kernel, and if it fails, you'll be left without an operating system and without your data. So proceed with caution.
If we want to change the color of the background or the letters, we only have to open the Grub configuration file and add the lines of the grub color. We would do it like this, first we open a terminal and write the following:
sudo gedit /etc/default/grub
Then we look for the following lines or we add them if they are not with the relevant colors:
# Para los colores, agregar (Escribir el color deseado): GRUB_COLOR_NORMAL="light-gray/transparent" GRUB_COLOR_HIGHLIGHT="magenta/transparent" #GRUB_COLOR_NORMAL="light-gray/black" #GRUB_COLOR_HIGHLIGHT="green/black" #GRUB_COLOR_NORMAL="cyan/blue" #GRUB_COLOR_HIGHLIGHT="white/blue"
We save it and we already have the background and letter color. But some will want an image instead of a background. This can be done anyway. We just have to open the terminal and write the following:
sudo apt-get install grub2-splashimages
This will create a folder within GRUB containing different images that can be used . The folder path is: /usr/share/images/grub. If we want to change the image, we just need to select the one we want and modify the following line in the previous configuration file:
GRUB_BACKGROUND="/usr/share/images/grub/NOMBRE DE LA IMAGEN SELECCIONADA"
Now we save the document and for all the changes to be applied correctly we have to open a terminal (or in the same one as before) and execute the following change:
sudo update-grub
After this, everything will be updated, and we'll see the changes applied to our GRUB system when we restart the computer . It's a neat trick , don't you think?