<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kurinchi Blogger Scribbles ...</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 18 Mar 2013 01:13:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to fix Hibernate MySql connection timeout issue (solved)?</title>
		<link>http://kurinchilamp.kurinchilion.com/2013/03/how-to-fix-hibernate-mysql-connection-timeout-issue-solved.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2013/03/how-to-fix-hibernate-mysql-connection-timeout-issue-solved.html#comments</comments>
		<pubDate>Mon, 18 Mar 2013 01:09:30 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[hibernate connection timeout]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[my.ini]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1069</guid>
		<description><![CDATA[When we began creating an application using Struts2 framework with Hibernate and MySQL, we ran into a problem which was related to MySQL timing out its connection after a span of 8 hours when left unused. It conceived a lot of time at our end but we were able to nail down the issue at [...]]]></description>
				<content:encoded><![CDATA[<p>When we began creating an application using <strong>Struts2</strong> framework with <strong>Hibernate and MySQL</strong>, we ran into a problem which was related to MySQL timing out its connection after a span of 8 hours when left unused. It conceived a lot of time at our end but we were able to nail down the issue at the end.</p>
<p><em>Steps that we had taken to correct the issue related to Hibernate MySql connection timeout problem are listed below </em></p>
<p>- Download Hibernate C3P0 and copy .jar files<br />
- Set c3p0.properties<br />
- Make changes to hibernate.cfg.xml<br />
- Test MySQL connection timeout<br />
- Hibernate, MySQL connection timeout related error messages<br />
<span id="more-1069"></span><br />
Download Hibernate <a title="Hibernate C3P0" href="http://sourceforge.net/projects/c3p0/" target="_blank">C3P0</a> (JDBC Data sources/Resource pools)</p>
<p>Copy the following .jar files into <strong>WEB-INF/lib </strong>folder</p>
<p>- c3p0-0.9.2.jar<br />
- mchange-commons-java-0.2.3.3.jar</p>
<p>Add <em>c3p0.properties</em> file under the folder identifiable by java CLASSPATH (WEB-INF/classes) and add the below line</p>
<p>c3p0.testConnectionOnCheckout=true</p>
<p>Open <strong>hibernate.cfg.xml</strong> and add the below set of lines</p>
<p>&lt;property name=&#8221;c3p0.min_size&#8221;&gt;5&lt;/property&gt;<br />
&lt;property name=&#8221;c3p0.max_size&#8221;&gt;20&lt;/property&gt;<br />
&lt;property name=&#8221;c3p0.timeout&#8221;&gt;1800&lt;/property&gt;<br />
&lt;property name=&#8221;c3p0.max_statements&#8221;&gt;50&lt;/property&gt;<br />
&lt;property name=&#8221;connection.provider_class&#8221;&gt;org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt;</p>
<p>Restart <strong>tomcat</strong> instance.</p>
<p>To test MySQL connection timeout, open <em>/etc/mysql/my.cnf </em>(or my.ini file in windows) and under [mysqld] set (or modify) the wait_timeout value to say 120 seconds (2 minutes) to check how the application behaves after the above setting changes are made. You can reset it back once the testing is over.  Default timeout setting in MySQL is 8 hours.</p>
<p><strong>[mysqld]<br />
wait_timeout = 120</strong></p>
<p>Some of the e<em>rror messages associated with the hibernate mysql</em> reconnect timeout issue are &#8220;org.hibernate.connection.C3P0ConnectionProvider cannot be found&#8221;, &#8220;org.hibernate.util.JDBCExceptionReporter: The last packet successfully received from the server was 73998 seconds ago&#8221;, &#8220;com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception&#8221;</p>
<p>br /</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2013/03/how-to-fix-hibernate-mysql-connection-timeout-issue-solved.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PEAR setup in WAMP in simple steps</title>
		<link>http://kurinchilamp.kurinchilion.com/2013/02/pear-setup-in-wamp-in-simple-steps.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2013/02/pear-setup-in-wamp-in-simple-steps.html#comments</comments>
		<pubDate>Thu, 28 Feb 2013 04:38:40 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[pear install]]></category>
		<category><![CDATA[pear path]]></category>
		<category><![CDATA[pear_env]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1062</guid>
		<description><![CDATA[* After WAMP is installed go to the folder where the web server related PHP bin directory is present. Search for the batch file pear.bat in it. Double click the file to start the PEAR installation. Go with the defaults and complete the installation * Search for PEAR_ENV.reg. Double click that file to register the [...]]]></description>
				<content:encoded><![CDATA[<p>* After WAMP is installed go to the folder where the web server related PHP bin directory is present. Search for the batch file pear.bat in it. Double click the file to start the PEAR installation. Go with the defaults and complete the installation</p>
<p>* Search for PEAR_ENV.reg. Double click that file to register the PEAR settings as environment variable</p>
<p>* Go to the command prompt and type &#8220;pear list&#8221; to see what packages are installed and if PEAR is correctly installed. If PEAR cannot be accessed via the command line, it means the PATH setting is not set correctly. Environment PATH variable should include the path to where pear.bat is present</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2013/02/pear-setup-in-wamp-in-simple-steps.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install PHPSECLIB on a WAMP environment with PEAR setup?</title>
		<link>http://kurinchilamp.kurinchilion.com/2013/02/how-to-install-phpseclib-on-a-wamp-environment-with-pear-setup.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2013/02/how-to-install-phpseclib-on-a-wamp-environment-with-pear-setup.html#comments</comments>
		<pubDate>Fri, 01 Feb 2013 19:54:31 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[pear phpseclib]]></category>
		<category><![CDATA[phpseclib]]></category>
		<category><![CDATA[phpseclib php.5.2.11]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1064</guid>
		<description><![CDATA[PEAR should be already installed in the system before configuring the phpseclib channel. PHPSecLib installation is very simple. PHPSecLib is a library of optional PHP extensions which comes in handy if the application were to be packaged as a solution for deployment to the end user. Step 1: Register the channel c:\&#62; pear channel-discover phpseclib.sourceforge.net [...]]]></description>
				<content:encoded><![CDATA[<p><strong>PEAR </strong>should be already installed in the system before configuring the phpseclib channel.</p>
<p><strong>PHPSecLib </strong>installation is very simple.</p>
<p>PHPSecLib is a library of optional PHP extensions which comes in handy if the application were to be packaged as a solution for deployment to the end user.</p>
<p><strong>Step 1:</strong> Register the channel</p>
<p>c:\&gt; pear channel-discover phpseclib.sourceforge.net<br />
<span id="more-1064"></span><br />
<strong>Step 2:</strong> List the packages available</p>
<p>c:\&gt; pear remote-list -c phpseclib</p>
<p>CHANNEL PHPSECLIB AVAILABLE PACKAGES:<br />
=====================================<br />
PACKAGE         VERSION<br />
Crypt_AES       0.3.1<br />
Crypt_DES       0.3.1<br />
Crypt_Hash      0.3.1<br />
Crypt_RC4       0.3.1<br />
Crypt_RSA       0.3.1<br />
Crypt_Random    0.3.1<br />
Crypt_Rijndael  0.3.1<br />
Crypt_TripleDES 0.3.1<br />
File_ANSI       0.3.1<br />
File_ASN1       0.3.1<br />
File_X509       0.3.1<br />
Math_BigInteger 0.3.1<br />
Net_SFTP        0.3.1<br />
Net_SSH1        0.3.1<br />
Net_SSH2        0.3.1</p>
<p><strong>Step 3:</strong> Install the needed packages. For e.g. if you want Net_SFTP package</p>
<p>c:\&gt; pear install phpseclib/Net_SFTP</p>
<p>For further instructions and notes go to <a href="http://phpseclib.sourceforge.net/pear.htm" title="PHP Secure Communications Library PEAR channel" target="_blank">PHP Secure Communications Library PEAR channel</a>   </p>
<p>If you have Php version 5.2.11, you may encounter issues installing phpseclib on it. For an easy install try a different version of php when you experiment with phseclib.</p>
<p>Sample program to test the functionality</p>
<p>&lt;?php</p>
<p>set_include_path(get_include_path() . PATH_SEPARATOR . &#8216;/phpseclib&#8217;);</p>
<p>include(&#8216;Net/SSH2.php&#8217;);<br />
include(&#8216;Net/SFTP.php&#8217;);</p>
<p>echo get_include_path();</p>
<p>$sftp = new Net_SFTP(&#8216;greenland:22&#8242;);<br />
if (!$sftp->login(&#8216;root&#8217;, &#8216;evylouss&#8217;)) {<br />
    exit(&#8216;Login Failed&#8217;);<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2013/02/how-to-install-phpseclib-on-a-wamp-environment-with-pear-setup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove ^M characters at the end of lines in Vi from files in Linux?</title>
		<link>http://kurinchilamp.kurinchilion.com/2013/01/how-to-remove-m-characters-at-the-end-of-lines-in-vi-from-files-in-linux.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2013/01/how-to-remove-m-characters-at-the-end-of-lines-in-vi-from-files-in-linux.html#comments</comments>
		<pubDate>Thu, 10 Jan 2013 19:47:37 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[remove ^M]]></category>
		<category><![CDATA[vi editor]]></category>
		<category><![CDATA[^M character]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1055</guid>
		<description><![CDATA[Files created in windows when moved to linux will have ^M character at the end of lines when you open the files in Vi editor. To remove the strange characters open the file in Vi editor and type :%s/.$// This will search for the ^M pattern on the entire file and will remove all occurences. [...]]]></description>
				<content:encoded><![CDATA[<p>Files created in windows when moved to linux will have ^M character at the end of lines when you open the files in Vi editor. </p>
<p>To remove the strange characters open the file in Vi editor and type</p>
<pre>
:%s/.$// 
</pre>
<p><span id="more-1055"></span><br />
This will search for the ^M pattern on the entire file and will remove all occurences.</p>
<p>Other option is to open the file with the strange characters and use the following search and replace pattern</p>
<pre>
:%s/^V^M//g
</pre>
<p>In the above command you need to press ctrl+v and ctrl+m in order for you to get the character ^M in the vi editor</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2013/01/how-to-remove-m-characters-at-the-end-of-lines-in-vi-from-files-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to determine the file system type in Linux?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/12/how-to-determine-the-file-system-type-in-linux.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/12/how-to-determine-the-file-system-type-in-linux.html#comments</comments>
		<pubDate>Thu, 06 Dec 2012 20:21:56 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[fat16]]></category>
		<category><![CDATA[file system in linux]]></category>
		<category><![CDATA[linux file system]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[ntfs]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1058</guid>
		<description><![CDATA[Linux supports many file system types like Ext2, Ext3, Ext4, NFS, FAT16, FAT32, NTFS etc. To find out what type of file systems are mounted in your system, issue the command $ df -T Output from the command Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 94088076 9090252 80218356 11% / udev devtmpfs [...]]]></description>
				<content:encoded><![CDATA[<p>Linux supports many file system types like Ext2, Ext3, Ext4, NFS, FAT16, FAT32, NTFS etc. To find out what type of file systems are mounted in your system, issue the command</p>
<p><strong>$ df -T</strong></p>
<p>Output from the command</p>
<pre>
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sda1     ext4    94088076   9090252  80218356  11% /
udev      devtmpfs     1023536         4   1023532   1% /dev
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/12/how-to-determine-the-file-system-type-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the port used by mysql?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/11/how-to-find-the-port-used-by-mysql.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/11/how-to-find-the-port-used-by-mysql.html#comments</comments>
		<pubDate>Sat, 24 Nov 2012 15:39:52 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[mysql open port]]></category>
		<category><![CDATA[port used by mysql]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1052</guid>
		<description><![CDATA[List the listening ports and check if mysql is listed on it. $ netstat -tln &#124; grep mysql If you cannot find the port number for mysql view my.cnf file to see if you can find the port number. If you see a line &#8220;skip-networking&#8221; try commenting out the line and then restart mysql daemon. [...]]]></description>
				<content:encoded><![CDATA[<p>List the listening ports and check if mysql is listed on it.</p>
<p><strong>$ netstat -tln | grep mysql</strong></p>
<p>If you cannot find the port number for mysql view my.cnf file to see if you can find the port number. If you see a line &#8220;skip-networking&#8221; try commenting out the line and then restart mysql daemon.</p>
<p><strong>$ vi /etc/my.cnf</strong></p>
<p>[mysqld]<br />
set-variable=local-infile=0<br />
datadir=/var/lib/mysql<br />
socket=/var/lib/mysql/mysql.sock<br />
# Default to using old password format for compatibility with mysql 3.x<br />
# clients (those using the mysqlclient10 compatibility package).<br />
old_passwords=1<br />
<em>skip-networking</em></p>
<p>[mysql.server]<br />
user=mysql<br />
basedir=/var/lib</p>
<p>[mysqld_safe]<br />
log-error=/var/log/mysqld.log<br />
pid-file=/var/run/mysqld/mysqld.pid</p>
<p><strong>$ service mysqld restart</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/11/how-to-find-the-port-used-by-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup Apache Tomcat, Java on CentOS?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/11/how-to-setup-apache-tomcat-java-on-centos.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/11/how-to-setup-apache-tomcat-java-on-centos.html#comments</comments>
		<pubDate>Thu, 15 Nov 2012 06:14:15 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[apache tomcat]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java tomcat]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[tomcat restart]]></category>
		<category><![CDATA[tomcat service]]></category>
		<category><![CDATA[tomcat start]]></category>
		<category><![CDATA[tomcat stop]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1047</guid>
		<description><![CDATA[Below set of steps involve setting up Tomcat 6 on CentOS 5 with Java 1.6 Download Apache Tomcat $ wget http://apache.parentingamerica.com/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz Go to opt/ folder and extract Tomcat $ cd /opt $ tar -xzf apache-tomcat-6.0.36.tar.gz Create a tomcat user $ useradd -d /opt/apache-tomcat-6.0.36/ tomcatuser Change user permission on tomcat folder $ chown -R tomcatuser:tomcatuser apache-tomcat-6.0.36 [...]]]></description>
				<content:encoded><![CDATA[<p>Below set of steps involve setting up Tomcat 6 on CentOS 5 with Java 1.6</p>
<p><em><strong>Download Apache Tomcat</strong></em></p>
<p><strong>$ wget http://apache.parentingamerica.com/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz</strong></p>
<p>Go to opt/ folder and extract Tomcat</p>
<p><strong>$ cd /opt</strong></p>
<p><strong>$ tar -xzf apache-tomcat-6.0.36.tar.gz</strong></p>
<p>Create a tomcat user</p>
<p><strong>$ useradd -d /opt/apache-tomcat-6.0.36/ tomcatuser</strong></p>
<p>Change user permission on tomcat folder</p>
<p><strong>$ chown -R tomcatuser:tomcatuser apache-tomcat-6.0.36</strong><br />
<span id="more-1047"></span></p>
<p><strong>$ vi /etc/init.d/tomcat</strong></p>
<pre>
#!/bin/bash
#
# tomcat       Starts Tomcat Java server.
#
#
# chkconfig: 345 88 12
# description: Tomcat is the server for 
# Java servlet applications.
### BEGIN INIT INFO
# Provides: $tomcat
### END INIT INFO
 

JAVA_HOME=/usr/java/jdk1.6.0_37
export JAVA_HOME  
PATH=$JAVA_HOME/bin:$PATH  
export PATH  

TOMCAT_HOME=/opt/apache-tomcat-6.0.36/bin
START_TOMCAT=/opt/apache-tomcat-6.0.36/bin/startup.sh
STOP_TOMCAT=/opt/apache-tomcat-6.0.36/bin/shutdown.sh
 
# Source function library.
. /etc/init.d/functions
 
[ -f $START_TOMCAT ] || exit 0
[ -f $STOP_TOMCAT ] || exit 0
 
RETVAL=0
 
umask 077
 
start() {
        echo -n $"Starting Tomcat Java server: "
        daemon su -c $START_TOMCAT tomcatuser
        echo
        return $RETVAL
}
stop() {
        echo -n $"Shutting down Tomcat Java server: "
        daemon su -c $STOP_TOMCAT tomcatuser
        echo
        return $RETVAL
}
restart() {
        stop
        start
}
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac
 
exit $?
</pre>
<p>Now save the file</p>
<p>Give executable rights for that script</p>
<p><strong>$ chmod 755 /etc/init.d/tomcat</strong></p>
<p>Add the script to CentOS services</p>
<p><strong>$ chkconfig &#8211;add tomcat</strong></p>
<p>Check the changes</p>
<p><strong>$ chkconfig &#8211;level 234 tomcat on</strong></p>
<p><strong>$ chkconfig &#8211;list tomcat</strong></p>
<p>tomcat 0:off 1:off 2:on 3:on 4:on 5:on 6:off</p>
<p>Test that the script is working and it gives no errors</p>
<p><strong>$ service tomcat start<br />
$ service tomcat restart<br />
$ service tomcat stop</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/11/how-to-setup-apache-tomcat-java-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install java 6 on CentOS 5 and remove other JDK, JRE version?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-java-6-on-centos-5-and-remove-other-jdk-jre-version.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-java-6-on-centos-5-and-remove-other-jdk-jre-version.html#comments</comments>
		<pubDate>Wed, 14 Nov 2012 06:01:27 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java version]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[openjdk]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1044</guid>
		<description><![CDATA[At the time of writing this article Java 6 (update 37) was available at http://www.java.com/en/download/manual_v6.jsp First set up a folder where you want to install java $ cd /opt $ wget http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-x64-rpm.bin $ chmod +x jdk-6u37-linux-x64-rpm.bin $ ./jdk-6u37-linux-x64-rpm.bin Check the current installation of java $ rpm -qa &#124; grep jre $ rpm -qa &#124; grep [...]]]></description>
				<content:encoded><![CDATA[<p>At the time of writing this article <strong>Java 6 (update 37)</strong> was available at http://www.java.com/en/download/manual_v6.jsp</p>
<p>First set up a folder where you want to install java</p>
<p><strong>$ cd /opt</strong></p>
<p><strong>$ wget http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-x64-rpm.bin</strong></p>
<p><strong>$ chmod +x jdk-6u37-linux-x64-rpm.bin</strong></p>
<p><strong>$ ./jdk-6u37-linux-x64-rpm.bin</strong><br />
<span id="more-1044"></span><br />
Check the current installation of java</p>
<p><strong>$ rpm -qa | grep jre</strong></p>
<p><strong>$ rpm -qa | grep jdk</strong></p>
<p><strong>$ rpm -qa | grep openjdk</strong></p>
<p>There may be scenarios where your OS might have multiple copies of java jre&#8217;s or jdk&#8217;s. To find which one is being used you can issue the following command in CentOs</p>
<p><strong>$ alternatives &#8211;display java</strong></p>
<p>To configure one of the distribution you can use</p>
<p><strong>$ alternatives &#8211;config java</strong></p>
<p>Following commands need to go in order to complete the proper setup of java (which is often forgotten)</p>
<p><strong>$ alternatives &#8211;install /usr/bin/java java /usr/java/jdk1.6.0_37/jre/bin/java 20000<br />
$ alternatives &#8211;install /usr/bin/javaws javaws /usr/java/jdk1.6.0_37/jre/bin/javaws 20000<br />
$ alternatives &#8211;install /usr/bin/javac javac /usr/java/jdk1.6.0_37/bin/javac 20000<br />
$ alternatives &#8211;install /usr/bin/jar jar /usr/java/jdk1.6.0_37/bin/jar 20000<br />
$ alternatives &#8211;set java /usr/java/jdk1.6.0_37/jre/bin/java<br />
$ alternatives &#8211;set javaws /usr/java/jdk1.6.0_37/jre/bin/javaws<br />
$ alternatives &#8211;set javac /usr/java/jdk1.6.0_37/bin/javac<br />
$ alternatives &#8211;set jar /usr/java/jdk1.6.0_37/bin/jar</strong></p>
<p>To check the java version</p>
<p><strong>$ java -version</strong></p>
<p><em>java version &#8220;1.6.0_37&#8243;<br />
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)<br />
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-java-6-on-centos-5-and-remove-other-jdk-jre-version.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check, remove JRE, JDK, OPENJDK installation?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/11/how-to-check-jre-jdk-openjdk-installation-and-remove-them.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/11/how-to-check-jre-jdk-openjdk-installation-and-remove-them.html#comments</comments>
		<pubDate>Tue, 13 Nov 2012 09:12:08 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[open jdk]]></category>
		<category><![CDATA[openjdk]]></category>
		<category><![CDATA[remove java]]></category>
		<category><![CDATA[yum erase]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1038</guid>
		<description><![CDATA[To check the current installation of java $ rpm -qa &#124; grep jre $ rpm -qa &#124; grep jdk $ rpm -qa &#124; grep openjdk To remove the java installs $ yum erase jre jdk openjdk]]></description>
				<content:encoded><![CDATA[<p><em>To check the current installation of java</em></p>
<p><strong>$ rpm -qa | grep jre</strong></p>
<p><strong>$ rpm -qa | grep jdk</strong></p>
<p><strong>$ rpm -qa | grep openjdk</strong></p>
<p><em>To remove the java installs</em></p>
<p><strong>$ yum erase jre jdk openjdk</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/11/how-to-check-jre-jdk-openjdk-installation-and-remove-them.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and setup Fail2ban on CentOS?</title>
		<link>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-and-setup-fail2ban-on-centos.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-and-setup-fail2ban-on-centos.html#comments</comments>
		<pubDate>Mon, 12 Nov 2012 11:45:00 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fail 2 ban]]></category>
		<category><![CDATA[fail2ban]]></category>
		<category><![CDATA[fail2ban service]]></category>
		<category><![CDATA[jail.conf]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=1033</guid>
		<description><![CDATA[Fail2ban is a software used to ban IP&#8217;s which shows strange behavior. It can be configured to reject IP&#8217;s for a certain amount of time. To install Fail2ban we need to download the application from the source. Login as the root user and go to /opt $ cd /opt $ wget http://downloads.sourceforge.net/project/fail2ban/fail2ban-stable/fail2ban-0.8.4/fail2ban-0.8.4.tar.bz2?use_mirror=transact Next unzip the [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Fail2ban </strong>is a software used to ban IP&#8217;s which shows strange behavior. It can be configured to reject IP&#8217;s for a certain amount of time.</p>
<p>To <em>install </em><strong>Fail2ban </strong>we need to download the application from the source. Login as the root user and go to /opt</p>
<p><strong>$ cd /opt</p>
<p>$ wget http://downloads.sourceforge.net/project/fail2ban/fail2ban-stable/fail2ban-0.8.4/fail2ban-0.8.4.tar.bz2?use_mirror=transact</strong></p>
<p>Next unzip the downloaded file</p>
<p><strong>$ tar -xf fail2ban-0.8.4.tar.bz2</p>
<p>$ cd fail2ban-0.8.4</strong><br />
<span id="more-1033"></span><br />
To install</p>
<p><strong>$ python setup.py install</p>
<p>$ cp files/redhat-initd /etc/init.d/fail2ban</strong></p>
<p>To add fail2ban to the service</p>
<p><strong>$ chkconfig &#8211;add fail2ban</p>
<p>$ chkconfig fail2ban on</strong></p>
<p>Next is to configure the jail.conf where the settings are given by default for the local host </p>
<p><strong>$ vi /etc/fail2ban/jail.conf</strong></p>
<p>Go to the line where &#8220;ignoreip&#8221; keyword is mentioned and add the list of IP&#8217;s or IP subnet from which you want to gain access to the service </p>
<p>Finally, start fail2ban application</p>
<p><strong>$ service fail2ban start<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2012/11/how-to-install-and-setup-fail2ban-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
