Monday, April 6, 2009

Centos 4.3 installation and Sata Module loading with Adaptech Host - Raid 8130 [ marvel Chipset ] for HP Proliant 150 ML G2

Download the corresponding Driver for Adaptech Host raid from the following link.ftp://ftp.hp.com/pub/softlib2/software1/linuxpubsw/p631274967/v30078/aar81xx.rhel4qu2.img.tar.gz/

You can use existing pc with Knoppix CD or other Linux PC

Extract the aar81xx.rhel4qu2.img.tar.gz file and mount the img file using the following command
# mount -o loop
Copy the modules.cgz file to other location eg : /tmp/module and extract the .cgz file using the zcat command
# zcat /tmp/module/modules.cgz | cpio -id
The modules are extracted to the current directory and find the module from //aar81xx.ko
Copy this module in a floppy/usb

Start the Installation using Linux Disk and type the command “ Linux dd askmethod “ when the installation shows the “No hard drive found error “ , go to Alt+Crtl+F2 for new terminal and mount the module floppy disk
# mkdir /mnt/module
# mount /dev/fd0 /mnt/module
Load the module using the modprobe command
# modprobe /mnt/module/aar81xx.ko
Type the command dmsg for checking the Hard drive is detected or not . If it is loaded the Hard drive details will display.
Switch to Alt+Ctrl+F1 to resume the Installation and at the time of reboot screen comes switch to Alt+Crtl+F2
and add the module “ aar81xx.ko “ to /lib/modules//kernel/drivers/scsi/

eg: cp /mnt/module/aar81xx.ko /lib/modules/2.6.9-34.EL/kernel/drivers/scsi (for centos 4.3)

# echo "alias scsi_hostadapter arr81xx" >> /etc/modprobe.conf

# depmod -ae -F /boot/System.map-


eg. depmod -ae -F /boot/System.map-2.6.9-34.EL 2.6.9-34.EL (for centos 4.3)


Create initrd corresponding to module loaded. Take a backup of old initrd and create new by the following command

# mkinitrd -v -f /boot/initrd-2.6.9-34.EL.img 2.6.9-34.EL

If you want to do the same for smp kernal use the same methods or other wise skip the smp kernel in grub.conf

Sunday, March 8, 2009

Export Proxy setting to your shell.

Some times you may need to connect your laptop Internet through proxy server. You can give proxy server settings to your browser but if you want use “wget” to download some files through command prompt it will be difficult. Just give the following command to you shell you can able to access Internet through command prompt

export http_proxy=http://smn:password@192.168.1.100:8080/

Where smn is the Username and password is the password for the user smn. You may have to change the server ipaddress/servername and the port number.

If your server don't have any username and password use as follows.

export http_proxy = myproxy:3128
export ftp_proxy = myproxy:3128


After this you may use application like yum to install/update any package.

Ofline Web browser

Most of you heard about offline web browsers or may used in Windows. For new people, ofline browser is an application used to mirror (make a copy) of your desired web sites so that you can access the sites when you are not able to access Internet. Normally i use this program to mirror sites that provide good and detail documentation but will not provide a download option in any format so that i can keep it for future. Using this type application you can save an url and it's sub-urls.

HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.

You can get the latest version from the httrack site http://www.httrack.com .You can download both windows and Linux Packages from the site.


If you are using yum then the installation is very simple just try

# yum install httrack

I am recommending to use the source Package. Just read the INSTALL file for installation procedure.


After installation try the “man httrack”

To download an url you have to use something as follows.

httrack abcd.com/url


The site will be mirrored on you current directory and try to open index.html in any web browser to access the data. You can use you proxy settings to download the sites the man page will give you more information.

reg

SMN