Wednesday, November 11, 2009

How to change default Operating System on Ubuntu 9.10 Karmic Koala

Some people use Ubuntu in dual boot with Windows and they prefer to make Windows as default Operating System. Prior to Ubuntu 9.10 this was achieved by changing the default line in /boot/grub/menu.lst file.

Ubuntu 9.10 Karmic Koala has Grub2 which does not have menu.lst file. The configuration file is /boot/grub/grub.cfg which is not supposed to be edited even by root. The primary configuration file for changing menu display settings is /etc/default/grub. The procedure to change the default OS is as follows:

Count the line number in the Grub menu taking first line as 0.
$ gksudo gedit /etc/default/grub

Change 0 in this line to the desired number:

Save and close the file

$ sudo update-grub

After running update-grub the default will change in grub.cfg

Tuesday, November 03, 2009

Running Ubuntu Karmic on Intel 82845G/GL[Brookdale-G]/GE Chipset

My daughter's Desktop which I use while at Bhubaneswar has this chipset:

$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device [8086:2562] (rev 03)

I have installed Ubuntu 9.10 Karmic Koala on this machine and it is having random freezes. I have submitted a bug report but I don't think the bug is going to be resolved very soon. There is another bug resembling mine (my bug may be a duplicate) which has been submitted upstream on but I don't think that it may be resolved soon.

I decided to change to vesa driver but there was no xorg.conf. I used the following xorg.conf:

Section "Monitor"
Identifier "Configured Monitor"

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"

Section "Device"
Identifier "Configured Video Device"
Driver "vesa"

There is no freeze using vesa driver.

Update on Jan 1 2010
There is some activity on the bug report. The commit in the Kernel responsible for this bug has been identified and informed upstream. Meanwhile I have found that if I use IceWM instead of gnome there is no freeze with intel driver. If you are comfortable with IceWM you can also use it.