Dec 092010
 

After updating your Fedora Linux configuration or configuring multiple boot operating systems you will see several options to boot from in your Grub boot menu. To set one of the menu choices as the default you will have to edit /boot/grub/grub.conf.

My grub.conf file has three options in the boot menu (two for Fedora and one for Windows 7 Ultimate). If you look for the word “title” you will see what will actually display on the boot menu. The titles are numbered 0, 1, 2, etc (the first one in the list is 0, second is 1, third is 2 and so on) . If I want to set the first menu title to be the default when I boot my computer all I have to do is change the default line to say default=0. If I want Windows 7 Ultimate to be the default I would change it to say default=2. Mine looks like this:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_m1730xps-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.6-48.fc14.i686)
root (hd0,1)
kernel /vmlinuz-2.6.35.6-48.fc14.i686 ro root=/dev/mapper/vg_m1730xps-lv_root rd_LUKS_UUID=luks-8c135a3b-65ff-48d6-9c21-8e6881ac8c18 rd_LVM_LV=vg_m1730xps/lv_root rd_LVM_LV=vg_m1730xps/lv_swap rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.35.6-48.fc14.i686.img
title Fedora (2.6.35.6-45.fc14.i686)
root (hd0,1)
kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro root=/dev/mapper/vg_m1730xps-lv_root rd_LUKS_UUID=luks-8c135a3b-65ff-48d6-9c21-8e6881ac8c18 rd_LVM_LV=vg_m1730xps/lv_root rd_LVM_LV=vg_m1730xps/lv_swap rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.35.6-45.fc14.i686.img
title Windows 7 Ultimate
rootnoverify (hd0,0)
chainloader +1

As you can see, my default boot menu is set to Fedora (2.6.35.6-48.fc14.i686).

May 312010
 

This little program will open and close the start menu every 30 seconds for 24 hours. It basically sends the control and escape key to open the start menu then closes it by sending a final escape.

OpenAndCloseStartMenu

;Author: Robert Holland
;Date: 20100522
;Purpose: Send CTRL and ESC keys every 30 seconds for 24 hours to keep the screensaver from coming on.
;AutoIt Program

$count = 0
$loop_length = 2880
; Execute the loop “While” the counter is less than
While $count < $loop_length
; Increase the count by one
$count = $count + 1

Sleep(3000)
Send(“^{esc}”)
Sleep(1000)
Send(“{esc}”)
sleep(30000)
Wend
Exit