Friday, November 11, 2011

Teamviewer SourceCode C++

Team viewer is a remote desktop sharing program that allows you to view remote desktops. Its source is in C++ and is available at

Enjoy !!!

Thursday, November 3, 2011

Install Crontab on Cent OS 5

Crontab would not be installed by default on CentOS 5 custom installation, as happened with my new server. So to install cron you would do a yum search cron and you are not quiet sure what to install.

To install crontab on centos

yum install -y vixie-cron.x86_64

Vixie cron is the cron software on CentOS 5.

The Vixie cron daemon for executing specified programs at set times.

Now you should be able to do crontab -e to add your cron.

Starting crontab

sudo /etc/init.d/crond start

Now the cron tasks should be executed at the specified times.

Monday, October 17, 2011

Convert Amazon EC2 PEM files to PPK

So you just set up a keypair in Amazon EC2 and got a PEM file, Now how do you login to using Putty ?

How to login to Amazon EC2 using Putty

Open Puttygen, if you dont have puttygen, you can get it for download at

Amazon EC2 Import PEM using Putty

  • Now click Conversions > Import.

  • Choose your PEM file that was downloaded from the Amazon EC2 dashboard

  • Click on Save Private Key and name it something .ppk
    Convert Amazon PEM file to PPK file

  • Voila, use your ppk to login through Putty to your Amazon EC2 Instance

Saturday, October 15, 2011

Solve Failed to query Solr using '*:*': [Errno 13] Permission denied

This error is created mostly on a CentOs / similar linux operating systems with SELinux On.

By default SELinux does not allow you to listen on non standard http ports such as 8983 in which SOLR listens on. To fix this run the following command as root:

semanage port -a -t http_port_t -p tcp 8983

This adds the 8983 port to http list. This should solve the Permission denied message when querying SOLR.

Restart SOLR / Applications.

This should solve Failed to query Solr using '*:*': [Errno 13] Permission denied

Thursday, May 19, 2011

Installing g++ on Amazon EC2 Small Instance

To install you have to run the following command:

sudo yum groupinstall "Development Tools"