Friday, August 27, 2010

Install Tomcat 6 on CentOS 5

Tomcat 6 on CentOS 5

It is easy to install tomcat6 on CentOs without wasting the time.

Step 1 cd /etc/yum.repos.d
Step 2 wget 'http://www.jpackage.org/jpackage50.repo'
Step 3 yum update
Step 4 yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
Step 5 service tomcat6 start

Path to deploy the application /var/lib/tomcat6/webapps/

conf path: - /usr/share/tomcat6/webapps

Monday, August 2, 2010

SSH password less authentication

SSH use to login from one PC to another without supplying the passwords.

# ssh-keygen -t rsa (Press Enter)

Generating public/private rsa key pair.
Enter file in which to save the key (/home/skx/.ssh/id_rsa): (Enter)
Enter passphrase (empty for no passphrase): (empty)
Enter same passphrase again: (empty)
Your identification has been saved in /home/skx/.ssh/id_rsa.
Your public key has been saved in /home/skx/.ssh/id_rsa.pub.

# ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote_host - IP Address