GRUB_DEFAULT=0Once you made your changes issue the following command:
update-grubOnce you reboot the default selected item will be changed per your changes above.
Simplicity and elegance are unpopular because they require hard work and discipline to achieve and education to be appreciated. — Edsger W. Dijkstra
GRUB_DEFAULT=0Once you made your changes issue the following command:
update-grubOnce you reboot the default selected item will be changed per your changes above.
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet panic=0
# Set a timeout, in seconds, before automatically booting # the default entry (normally the first entry defined). timeout 2 # Pretty colours color light-blue/black light-cyan/black
# Uncomment to disable graphical terminal (grub-pc only) GRUB_TERMINAL=consoleEdit the settings in /etc/grub.d/05_debian_theme:
...
set_default_theme(){
# Set the traditional Debian blue theme.
#echo "${1}set menu_color_normal=cyan/blue"
#echo "${1}set menu_color_highlight=white/blue"
echo "${1}set menu_color_normal=light-gray/black"
echo "${1}set menu_color_highlight=white/black"
}
Once finished issue the command to regenerate grub config files:
update-grub
deby:~# grub-md5-crypt Password: Retype password: $1$97T9Y/$0y1o5CCyci7TPM5SX.2rG0You will need to replace/ add the following to /boot/grub/menu.lst:
password -md5 $1$97T9Y/$0y1o5CCyci7TPM5SX.2rG0This way you have locked down interactive editing in GRUB (in this case you would have to press ‘p’ key and enter the correct password to access advanced options).
title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode) lock root (hd0,0) kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro single initrd /boot/initrd.img-2.6.26-2-686
deby:~# ls -l /boot/grub/menu.lst -rw-r--r-- 1 root root 3967 2010-04-25 22:57 /boot/grub/menu.lstLet fix that:
deby:~# chmod o-o /boot/grub/menu.lst ... user1@deby:~$ cat /boot/grub/menu.lst cat: /boot/grub/menu.lst: Permission deniedRead more how to harden GNU/Linux against local intrusions here.