Sunday, December 27, 2009

Add Windows XP to the GRUB menu

  1. Back up GRUB configuration file.
    cp /boot/grub/menu.lst /root/backup/menu.lst.grub.bak
    cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
  2. Add Windows XP boot up option in the GRUB menu.
    Vi /boot/grub/menu.lst
    add following lines in the menu.lst:
    title Windows XP
    map (hd0) (hd1)
    map (hd1) (hd0)
    root (hd1,0)
    chainloader +1




    Note:
    map (hd0) (hd1)
    map (hd1) (hd0)
    This two lines are called "virtual swap" which can solve windows installed on second harddisk.
    root (hd1,0) (hd1,0)means on second harddisk's first partition.


Saturday, December 26, 2009

Enable Dlink DWA-110 USB Wireless Adapter on CentOs 5.4

Plug in the USB wireless adapter

Check the chipset of the USB wireless adapter by using following command.

[root@localhost sbin]# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 004: ID 07d1:3c07 D-Link System Wireless G DWA-110 Adapter

[root@localhost sbin]# lsmod | grep rt
rt73usb 60481 0
crc_itu_t 35265 1 rt73usb
rt2x00usb 47041 1 rt73usb
rt2x00lib 56641 2 rt73usb,rt2x00usb
mac80211 182985 2 rt2x00usb,rt2x00lib
cfg80211 63825 2 rt2x00lib,mac80211

Enable ELRepo
repository

To install ELRepo for RHEL5, CentOS-5 or SL5:

Import the public key:

Install firmware for Dlink DWA-110 wireless adapter:
yum --enablerepo=elrepo install rt73usb-firmware

Open NetworkManager serveice at the system start up:
chkconfig NetworkManager on

service NetworkManager start

Turn off network and wpa_supplicant services at boot time as NetworkManager will in charge the network connections.
chkconfig network off
chkconfig wpa_supplicant off


Reference:

Making Wireless work on your laptop(or desktop) http://wiki.centos.org/HowTos/Laptops/Wireless#head-a7388039af96da5400e599133447452d2ca61fb5