<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-772990631184214690</id><updated>2011-04-21T11:48:28.365-07:00</updated><title type='text'>Java Happiness</title><subtitle type='html'>I am newbie on java language programming but very interest to learn it. We use java language to develope information system on my office. with java and framework like ZK and Spring i feel is esae to code. and i am use OS Linux platform with CentOS 5 and Tomcat 6 for web server. I am happy could learn it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://masdjavahappy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://masdjavahappy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>masd</name><uri>http://www.blogger.com/profile/15016730779096437058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-772990631184214690.post-2608890797732981209</id><published>2009-03-04T21:38:00.000-08:00</published><updated>2009-03-04T22:01:01.191-08:00</updated><title type='text'>Disabling SELINUX</title><content type='html'>sometimes  i try to connect to MySQL server in CentOS 5 machine, but i have problem can't connect MySQL, i don't understand why, i feel this is coused by not opened the port off MySQl, and i don't know how to open the port, i remember firewall in linux is SElinux and this is my target to disable, with this step;&lt;br /&gt;1. Open File  : /etc/selinux/config&lt;br /&gt;2. Change value &lt;code&gt;SELINUX=enforcing&lt;/code&gt; to &lt;code&gt;SELINUX=permissive or &lt;/code&gt;&lt;code&gt;SELINUX=&lt;/code&gt;&lt;code&gt;disable&lt;br /&gt;&lt;/code&gt;3. Reboot the machine&lt;br /&gt;&lt;br /&gt;and my server has connected.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;here to disabling SELinux on Ubuntu&lt;br /&gt;&lt;/code&gt;&lt;span class="mediumtext"&gt;&lt;br /&gt;&lt;span style="font-family:'Courier New',Courier,monospace;"&gt;1.cd /boot/grub&lt;/span&gt; &lt;enter&gt;&lt;br /&gt;&lt;span style="font-family:'Courier New',Courier,monospace;"&gt;2.vi grub.conf&lt;/span&gt; &lt;enter&gt;  This will edit the grub.conf file.&lt;br /&gt;3.  Look for the line starting with "kernel" and add "selinux=0" at the end.  The line will look similar to this:&lt;br /&gt;&lt;span style="font-family:'Courier New',Courier,monospace;"&gt;kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb &lt;strong&gt;selinux=0&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save the grub.conf file and reboot the server.  Once the server has been rebooted, SELinux is disabled.&lt;br /&gt;&lt;br /&gt;&lt;/enter&gt;&lt;/enter&gt;&lt;/span&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/772990631184214690-2608890797732981209?l=masdjavahappy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://masdjavahappy.blogspot.com/feeds/2608890797732981209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masdjavahappy.blogspot.com/2009/03/disabling-selinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/2608890797732981209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/2608890797732981209'/><link rel='alternate' type='text/html' href='http://masdjavahappy.blogspot.com/2009/03/disabling-selinux.html' title='Disabling SELINUX'/><author><name>masd</name><uri>http://www.blogger.com/profile/15016730779096437058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-772990631184214690.post-3382492335154896792</id><published>2009-01-28T16:26:00.000-08:00</published><updated>2009-01-28T20:21:57.721-08:00</updated><title type='text'>Automatic Tomcat Startup when system reboot on Linux</title><content type='html'>We was download the package apache-tomcat-6.0.18.tar.gz and uncompressed on /home directory. we want tomcat running automatic on startup system, with try make a script to running tomcat in init.d and make symlink on rcX.d  (when X is number 0 - 6) in directory rc.d, but unsuccessfully. So I am googling and found this solution.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open /etc/rc.d/rc.local and Type this Commands &lt;/li&gt;&lt;li&gt;export TOMCAT_HOME= /home/apache-tomcat-6.0.18/&lt;/li&gt;&lt;li&gt;export CATALINA_HOME=$TOMCAT_HOME&lt;/li&gt;&lt;li&gt;$CATALINA_HOME/bin/startup.sh&lt;br /&gt;&lt;/li&gt;&lt;li&gt;export CATALINA_OPTS="-Xms512m-Xmx512m"&lt;/li&gt;&lt;/ol&gt;Note : Command number 5 for setting memory on tomcat&lt;br /&gt;&lt;br /&gt;When we try restart system we are happy.... successfully...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/772990631184214690-3382492335154896792?l=masdjavahappy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://masdjavahappy.blogspot.com/feeds/3382492335154896792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masdjavahappy.blogspot.com/2009/01/when-i-am-install-tomcat-6-in-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/3382492335154896792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/3382492335154896792'/><link rel='alternate' type='text/html' href='http://masdjavahappy.blogspot.com/2009/01/when-i-am-install-tomcat-6-in-linux.html' title='Automatic Tomcat Startup when system reboot on Linux'/><author><name>masd</name><uri>http://www.blogger.com/profile/15016730779096437058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-772990631184214690.post-2469084790131401057</id><published>2009-01-27T20:19:00.000-08:00</published><updated>2009-01-30T00:01:49.922-08:00</updated><title type='text'>Installing Java on linux</title><content type='html'>Simplify installing java on linux; that is:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Download the new version of JDK (jdk-6u11-linux-i586-rpm.bin when i am posting this blog)  on Sun Microsystem site.&lt;/li&gt;&lt;li&gt;enter on terminal / console and type  su&lt;br /&gt;&lt;/li&gt;&lt;li&gt;login on your linuk OS as root&lt;/li&gt;&lt;li&gt;type sh ./jdk-6u11-linux-i586-rpm.bin&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_bFHUDTqP800/SYKpR2QsFfI/AAAAAAAAAAM/ZtSykU73_ys/s1600-h/p1.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 355px; height: 215px;" src="http://4.bp.blogspot.com/_bFHUDTqP800/SYKpR2QsFfI/AAAAAAAAAAM/ZtSykU73_ys/s320/p1.bmp" alt="" id="BLOGGER_PHOTO_ID_5296982235829507570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;press key (CTRL-C)&lt;/li&gt;&lt;li&gt;type yes for answer agreement&lt;/li&gt;&lt;li&gt;Wait while installation on progress&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_bFHUDTqP800/SYKqMKpePfI/AAAAAAAAAAU/gC1LZrcwYek/s1600-h/p2.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 146px;" src="http://3.bp.blogspot.com/_bFHUDTqP800/SYKqMKpePfI/AAAAAAAAAAU/gC1LZrcwYek/s320/p2.bmp" alt="" id="BLOGGER_PHOTO_ID_5296983237734579698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;and done&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;check java version&lt;br /&gt;$ java -version&lt;br /&gt;&lt;br /&gt;if java version different from instalaion change the version with&lt;br /&gt;export JAVA_HOME=/usr/java/jdk1.6.0_11&lt;br /&gt;export PATH=/usr/java/jdk1.6.0_11/bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and congrutulation ...!...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/772990631184214690-2469084790131401057?l=masdjavahappy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://masdjavahappy.blogspot.com/feeds/2469084790131401057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://masdjavahappy.blogspot.com/2009/01/installing-java-on-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/2469084790131401057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/772990631184214690/posts/default/2469084790131401057'/><link rel='alternate' type='text/html' href='http://masdjavahappy.blogspot.com/2009/01/installing-java-on-linux.html' title='Installing Java on linux'/><author><name>masd</name><uri>http://www.blogger.com/profile/15016730779096437058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_bFHUDTqP800/SYKpR2QsFfI/AAAAAAAAAAM/ZtSykU73_ys/s72-c/p1.bmp' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
