Setting default option in Grub select-system menu:
We edit /etc/default/grub
file and enter default option as GRUB_DEFAULT:
GRUB_DEFAULT=option_number - number starting from 0
.
We save the file and enter following command for changes take place:
update-grub
To install Grub as a bootmanager we steps through the following list of commands:
sudo fdisk -l
to see which partition is our Linux installed on.sudo mount /dev/sdaX /mnt
where X is the number of partition found above, to mount the partition in /mnt directory.sudo grub-install --root-directory=/mnt /dev/sda
to install Grub in the /dev/sda disk's boot-sector.sudo update-grub
to update the Grub's configuration.
sudo grub-install --root-directory=/ /dev/sda
sudo update-grub
To set background image for Grub's system menu, we edit following file:
/etc/grub.d/05_debian_theme
and in the line before last line (before line containing: set_default_theme) we enter following lines:
# If we haven't found a background image yet, use the default from desktop-base.
And next we issue command: update-grub.
if set_background_image "/boot/grub/_b1ocean.tga"; then
exit 0
fi
After each changing Grub settings we must enter following command for changes to take place:
update-grub
sudo grub-install --recheck --no-floppy --root-directory=/ /dev/sda
GRUB_HIDDEN_TIMEOUT=0
by inserting '#' character on the very first position in the line.
sudo update-grub