Archive for May, 2008

Download, install and configure perlbal to load balance web server

Perlbal is fast and efficient web server, reverse proxy(load balancer). Here are quick steps to get started with it. I have tested perlbal-1.60 on my CentOS 5 box. There are many other possible ways to do the same and the way which worked for me, may not work for you.

Step 1. Download perlbal OR install it via perl cpan, like this:
# perl -MCPAN -e shell
cpan-> install perlbal

Step 2. Find out its sample config (/root/.cpan/build/Perlbal-1.60/doc/config-guide.txt) or if you downloaded and compiled it, file will be there. Put this file in /etc/perlbal as perlbal.conf.
# mkdir /etc/perlbal
# cp /root/.cpan/build/Perlbal-1.60/doc/config-guide.txt /etc/perlbal/perlbal.conf

How to change Date, Time and Time Zone in Linux

In Redhat based distro, here’s a quick solution to change your time zone to PST/PDT:

# mv /etc/localtime /etc/localtime.Old && ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime

Other commands:

Change Time zone to IST:

# mv /etc/localtime /etc/localtime.Old && ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

Set the TZ environment variable for quick display time according to preferred Time Zone:

# export TZ=America/Los_Angeles
# date

If you have the utility rdate, update the current system time by executing

# rdate -s pool.ntp.org

You can execute ‘system-config-date’ for setting up date/time and time zone

# system-config-date

Install and configure Hindi fonts in Linux

It’s a short howto to install True Type Fonts in Linux. In this particular case, I want to install Hindi fonts in my CentOS 5.0 box.

Step 1. Download Hindi (.ttf) fonts from Internet. One location to find: http://tdil.mit.gov.in/download/openfonts.htm

Step 2. If you downloaded zip/tar, extract it in a directory where you want to store the fonts, for example: /usr/share/fonts/hindifonts
# mkdir -p /usr/share/fonts/hindifonts
# cd /usr/share/fonts/hindifonts

–> download the tar/zip file from net. here just the example
# unzip examplehindifonts.zip
# rm examplehindifonts.zip

Step 3. Make sure the all files (fonts) names are in lower case. If you found mixed case or not sure, run this command:
# for i in * ; do [ -f $i ] && mv -i $i `echo $i | tr ‘[A-Z]‘ ‘[a-z]‘`; done;

Get Adobe Flash playerPlugin by wpburn.com wordpress themes