Tuesday, June 16, 2009

Alternative for putty?

The tool that I use most on my windows box is putty. I've always looked for an alternative since it lacks some features like tabbed sessions, Edit display settings such as the indent colors etc..

Poderosa (funny name :)) is an alternative which is kind off good, and has the features which is similar to Terminator in linux, the important and nice features are
1. Tabbed sessions
2. Split windows horizontally and vertically.
3. Editing display colors etc..

This software requires Microsoft .NET Framework 2.0.

Monday, May 25, 2009

Bangalore Royal Challengers

Bangalore Royal Challengers, play for more...

Created using VideoDJ of my K790i phone :)



Banglore lost the final of IPL to Hyderbad, though Bangalore played well to reach the final of IPL under excellent captaincy of namma Anil Kumble

Tuesday, May 12, 2009

Create SSH tunnel in the background

Create SSH tunnel in the background
ssh -f -N -p <port> -L <local_port>:localhost:<destination_port> user@ip

Thursday, May 7, 2009

Public DNS I use

Public DNS I use

4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6

Saturday, May 2, 2009

My Favourite soccer team and players

Chelsea





















My Favorite players...


Wednesday, April 1, 2009

Compiling Asterisk 1.4.x with H323 channel driver




This is just a step by step procedure I followed to compile Asterisk 1.4 version with H323 channel driver

apt-get install flex bison

  • Here we download and compile Asterisk
Compile zaptel driver

cd /usr/src
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.10.1.tar.gz
cd zaptel-1.4.10
./install_prereq test
./configure
make
make install


Compile libpri

cd /usr/src
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.4.tar.gz
cd libpri-1.4.4
make
make install


Compile Asterisk

cd /usr/src
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.20.tar.gz
cd asterisk-1.4.20
./configure
make menuselect
make
make install
make samples


  • Compiling pwlib and openH323 for H323 channel driver
NOTE: openH323 v1.19.0.1 with corresponding pwlib v1.11.0. not pwlib_v1.11.1.

This is required since openh323 will look for compiler.h
touch /usr/include/linux/compiler.h

Compile pwlib

cd /usr/src
wget http://downloads.sourceforge.net/openh323/pwlib-v1_11_0-src-tar.gz?use_mirror=nchc
tar zxvf pwlib-v1_11_0-src-tar.gz
cd pwlib_v1_9_0
./configure
make
make install
make opt
export PWLIBDIR=/usr/src/
pwlib-v1_11_0

Compile openh323

cd /usr/src
wget http://downloads.sourceforge.net/openh323/openh323-v1_19_0_1-src-tar.gz?use_mirror=jaist
tar zxvf openh323-v1_19_0_1-src-tar.gz
cd openh323-v1_19_0_1
./configure
make
make install
make opt
export OPENH323DIR=/usr/src/openh323-v1_19_0_1


OpenH323 generates its libs in /usr/local/lib but my Linux uses /usr/lib for shared libraries, we'll need to copy the genberated libraries from /usr/local/lib to /usr/lib.

cp /usr/local/lib/* /usr/lib
Compile Asterisk

cd /usr/src/asterisk-1.4.20
./configure
make menuselect ## check if h323 is enabled under channels
cd channels/h323
make
make opt
cd ..
cd ..
make install



Now we make sure the channel driver exists and is loadable:

ldd /usr/lib/asterisk/modules/chan_h323.so

start asterisk

/etc/init.d/asterisk start


Thursday, October 2, 2008

Install PHP 5 on Windows Xp for IIS 5.1

Step by step guide to install IIS and PHP 5 on windows XP:

  1. First install IIS server:
      • Go to your control panel > add remove programs. Click on "Add/Remove Windows Components".
      • Make sure windows CD is inserted
      • Place a Select check for "Internet Information Services (IIS)”
      • Continue with the installation completely.
  1. Check whether IIS is installed properly by browsing the default iis site (http://localhost).
  1. Now you must get the correct files for php5. Head over to http://www.php.net/downloads.php and download the zip package under "Windows Binaries" Do not get the installer! In addition, while you are here you will need to get the "Collection of PECL modules" also under Windows Binaries
  2. Once Downloaded extract the first file you downloaded and place the files in "C:\php". Extract the PECL modules to "C:\php\ext".
  3. Rename C:\php\php.ini-recommended to C:\php\php.ini and then COPY it to C:\Windows
  4. Open both the php.ini file you have now and uncomment cgi.force_redirect in php.ini and set it to 0
  5. Change session.save_path as "session.save_path=C:\php\sessions" and make the directory C:\php\sessions
  6. Set the line "extension_dir" as "extension_dir = "C:\php\ext".
  7. Uncomment all of the following items.
    extension=php_mssql.dll
    extension=php_msql.dll
    extension=php_mysql.dll
    extension=php_mysqli.dll
    extension=php_java.dll
    extension=php_ldap.dll
    extension=php_iisfunc.dll
    extension=php_imap.dll
    extension=php_filepro.dll
    extension=php_gd2.dll
    extension=php_gettext.dll
    extension=php_dba.dll
    extension=php_dbase.dll
    extension=php_dbx.dll
    extension=php_mbstring.dll
    extension=php_pdf.dll
    extension=php_pgsql.dll
    extension=php_sockets.dll
    extension=php_xmlrpc.dll
    extension=php_xsl.dll
    extension=php_zip.dll
  8. Now copy all of those DLL files in C:\php\ext to C:\windows\system32 or add "C:\PHP;" to your Windows path:
      • Right Click on My Computer and choose properties > Advanced Tab > Click "Environment Variables".
      • Now add "C:\PHP;" to the very beginning.
      • Now go to start > run > type: regedit and click ok
      • Add HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\php to the registry. If you change your windows path instead of copying the dll files then you will need to restart your computer before php will work. Updating php is easier when you add it to your Windows path. So bookmark this page and go restart. Now is the best time since we are done with file placement.
  1. You might have to restart your system at this point
  2. Ok, you are back. Now it is time to let IIS know that you have php and you are going to tell IIS how to use it and when
  3. Open Internet Services Manager in your Administrative Tools in the start menu
  4. Right Click on Web Sites and click Properties, go to ISAPI filter tab choose Add, Filter Properties window pops up. Enter

    Filter Name: php

    Executables: Browse to C:\php\php5isapi.dll

  1. Right Click on websites and choose properties. Go to the Documents tab and add index.php as a start document.
  2. Go to C:\Inetpub\wwwroot and delete everything in there except for aspnet_client. Now make a new text file and name it phpinfo.php. Open it up with your text editor ant put this in it: .
  3. Open a web Browser and go to http://127.0.0.1/phpinfo.php
  4. Enjoy php on Windows XP and IIS