<?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-2265244478095191349</id><updated>2011-12-19T17:33:28.237+07:00</updated><category term='Fedora'/><category term='FLV'/><category term='jQuery'/><category term='MySQL'/><category term='JAVA'/><category term='vmware'/><category term='ISO'/><category term='VMWare Server Performance Tuning'/><category term='How to'/><category term='Keytool'/><category term='noConflict'/><category term='RPM'/><category term='mount ISO images'/><category term='IBM Portlet'/><category term='log4j'/><category term='PHP'/><category term='Portlet'/><category term='Flash'/><category term='PUMA API'/><category term='WebSphere Portal'/><category term='Linux'/><category term='CD'/><category term='Profile'/><category term='DVD'/><category term='Apache'/><category term='JW FLV MEDIA PLAYER'/><category term='ulimit'/><category term='svn'/><category term='subversion'/><title type='text'>Leokit</title><subtitle type='html'>Blog นี้ทำขึ้นเพื่อรวบรวมประสบการณ์ของผมที่เจอมานะครับ
เก็บเอาไว้ จะได้แก้ไขปัญหาเดิมๆ ได้ทันที</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-5740463303782954648</id><published>2011-05-22T17:33:00.002+07:00</published><updated>2011-05-22T17:37:27.108+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='noConflict'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>jQuery มัน Confilct กัน แก้ยังไงดี</title><content type='html'>This technique is especially effective in conjunction with the .ready() method's ability to alias the jQuery object, as within callback passed to .ready() we can use $ if we wish without fear of conflicts later:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$.noConflict();&lt;br /&gt;jQuery(document).ready(function($) {&lt;br /&gt;// Code that uses&lt;br /&gt;jQuery's $ can follow here.&lt;br /&gt;});&lt;br /&gt;// Code that uses other library's $ can&lt;br /&gt;follow here.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Link : http://api.jquery.com/jQuery.noConflict/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-5740463303782954648?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/5740463303782954648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=5740463303782954648' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5740463303782954648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5740463303782954648'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2011/05/jquery-confilct.html' title='jQuery มัน Confilct กัน แก้ยังไงดี'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-8680098017697529698</id><published>2010-03-16T13:39:00.001+07:00</published><updated>2010-03-16T13:41:33.396+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How do I modify a service startup script so that chkconfig can manage in which runlevels it's active?</title><content type='html'>Problem&lt;br /&gt;&lt;br /&gt;Not all scripts with start/stop/status options are manageable by chkconfig, but you can add a self-defined script into system service which can be handled by chkconfig.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Environment&lt;br /&gt;Red Hat Enterprise Linux 3, 4, 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Resolution&lt;br /&gt;&lt;br /&gt;1. The script should adhere to the following requirements:&lt;br /&gt;&lt;br /&gt;1) Indicates what shell is used to run the script.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;2) Indicates which run level should the service be started by default as well as the start and stop priority levels. The start/stop priority levels are important for services that depend on other services.In the following example, the numbers 345 after the chkconfig directive represent the runlevels that the service will be enabled for by default. In this example the service will be enabled by default for runlevels 3, 4, and 5. The 99 is the start priority. The lower the number the higher the priority and the sooner a service will be started. The 01 is the stop priority. The lower the number the higher the priority and the sooner a service will be stopped when changing runlevels.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) A short description for the service. The description may extend up to several (commented) lines as necessary. Use the backslash character if the comment extends to several lines.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Below is an example of /etc/init.d/yourscript :&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;#!/bin/sh&lt;br /&gt;#&lt;br /&gt;# chkconfig: 345 99 01&lt;br /&gt;#&lt;br /&gt;# description: your script is a test service&lt;br /&gt;#&lt;br /&gt;case $1 in&lt;br /&gt;        start)&lt;br /&gt;            echo "your script starting"&lt;br /&gt;            # TODO: &lt;br /&gt;            ;;&lt;br /&gt;        restart)&lt;br /&gt;            echo "your script stopping"&lt;br /&gt;            echo "your script starting"&lt;br /&gt;            # TODO: &lt;br /&gt;            ;;&lt;br /&gt;        status)&lt;br /&gt;            echo "your script running"&lt;br /&gt;            # TODO: &lt;br /&gt;            ;;&lt;br /&gt;        stop)&lt;br /&gt;            echo "your script stopping"&lt;br /&gt;            # TODO: &lt;br /&gt;            ;;&lt;br /&gt;esac &lt;br /&gt;2. Make sure that the script is executable.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# chmod 0755 /etc/init.d/yourscript &lt;br /&gt;3. Create a soft link to /etc/init.d/yourscript&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;If you want to start the service in runlevel 5:&lt;br /&gt;&lt;br /&gt;# cd /etc/rc.d/rc5.d&lt;br /&gt;# ln -s ../init.d/yourscript S99yourscript&lt;br /&gt; &lt;br /&gt;If you want to start the service in runlevel 3:&lt;br /&gt;&lt;br /&gt;# cd /etc/rc.d/rc3.d&lt;br /&gt;# ln -s ../init.d/yourscript S99yourscript &lt;br /&gt;4. Add the script to service&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# chkconfig --add yourscript &lt;br /&gt;5. Now, you can test this self-defined service&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# service yourscript start&lt;br /&gt;# service yourscript status&lt;br /&gt;# service yourscript stop &lt;br /&gt;6. If you want to yourscript started when system boot up&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# chkconfig yourscript on&lt;br /&gt; &lt;br /&gt;Finally, if you do not want to put yourscript into service, you can just call it from /etc/rc.d/rc.local.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;# echo /etc/init.d/yourscript &gt;&gt; /etc/rc.d/rc.local&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;link--&gt; http://kbase.redhat.com/faq/docs/DOC-7239&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-8680098017697529698?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/8680098017697529698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=8680098017697529698' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8680098017697529698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8680098017697529698'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2010/03/startup-script-for-linux.html' title='How do I modify a service startup script so that chkconfig can manage in which runlevels it&apos;s active?'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-6790215231049339203</id><published>2010-03-08T16:26:00.002+07:00</published><updated>2010-03-08T16:29:08.048+07:00</updated><title type='text'></title><content type='html'>Start and stop applications with wsadmin&lt;br /&gt;You can use wsadmin to start and stop applications in your application server.&lt;br /&gt;&lt;br /&gt;Start applications with wsadmin &lt;br /&gt;Stop applications with wsadmin &lt;br /&gt;Start applications with wsadmin&lt;br /&gt;&lt;br /&gt;To start an application with wsadmin, follow these steps:&lt;br /&gt;&lt;br /&gt;On the OS/400 command line, run the STRQSH (Start Qshell) command.&lt;br /&gt;&lt;br /&gt;Run the cd command to change to the directory that contains the wsadmin tool:&lt;br /&gt;&lt;br /&gt;cd /QIBM/ProdData/WebASE/ASE5/bin&lt;br /&gt;Start wsadmin.&lt;br /&gt;&lt;br /&gt;At the wsadmin prompt, run this command to identify the application manager MBean for the server where the application resides and assign it the appManager variable:&lt;br /&gt;&lt;br /&gt;set appManager [$AdminControl queryNames type=ApplicationManager,*]&lt;br /&gt;This command returns the application manager MBean.&lt;br /&gt;&lt;br /&gt;Run this command to start the application:&lt;br /&gt;&lt;br /&gt;$AdminControl invoke $appManager startApplication myApp&lt;br /&gt;where myApp is the name of the application that you want to start.&lt;br /&gt;&lt;br /&gt;Stop applications with wsadmin&lt;br /&gt;&lt;br /&gt;To stop applications with wsadmin, follow these steps:&lt;br /&gt;&lt;br /&gt;On the OS/400 command line, run the STRQSH (Start Qshell) command.&lt;br /&gt;&lt;br /&gt;Run the cd command to change to the directory that contains the wsadmin tool:&lt;br /&gt;&lt;br /&gt;cd /QIBM/ProdData/WebASE/ASE5/bin&lt;br /&gt;Start wsadmin.&lt;br /&gt;&lt;br /&gt;At the wsadmin prompt, run this command to identify the application manager MBean for the server where the application resides, and assign it to the appManager variable:&lt;br /&gt;&lt;br /&gt;set appManager [$AdminControl queryNames type=ApplicationManager,*]&lt;br /&gt;This command returns the application manager MBean.&lt;br /&gt;&lt;br /&gt;You can stop a single application or stop all of the applications that are running in your application server.&lt;br /&gt;&lt;br /&gt;To stop a single application, run this command:&lt;br /&gt;&lt;br /&gt;$AdminControl invoke $appManager stopApplication myApp&lt;br /&gt;where myApp is the name of the application that you want to stop.&lt;br /&gt;&lt;br /&gt;To stop all of the running applications in your application server, follow these steps:&lt;br /&gt;&lt;br /&gt;Run this command to query the running applications in the application server and assign the result to the apps variable:&lt;br /&gt;&lt;br /&gt;set apps [$AdminControl queryNames type=Application,*]&lt;br /&gt;This command returns a list of application MBeans.&lt;br /&gt;&lt;br /&gt;Run this command to stop all of the running applications:&lt;br /&gt;&lt;br /&gt;foreach app $apps {set appName [$AdminControl getAttribute $app name];&lt;br /&gt; $AdminControl invoke $appManager stopApplication $appName}&lt;br /&gt;Note: This command has been wrapped for display purposes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-6790215231049339203?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/6790215231049339203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=6790215231049339203' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/6790215231049339203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/6790215231049339203'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2010/03/stop-and-uninstall-application-using.html' title=''/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-5074177968154849662</id><published>2009-07-23T14:38:00.000+07:00</published><updated>2009-07-23T14:39:35.960+07:00</updated><title type='text'>Init script for Websphere Portal/DB2 on linux</title><content type='html'>Copy the following script to /etc/init.d/webpshere_portal or some name. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Websphere_portal # Startup script for IBM WebSphere Portal Server&lt;br /&gt;#&lt;br /&gt;# chkconfig: - 99 15&lt;br /&gt;# description: Websphere Portal server startup&lt;br /&gt;# processname: websphere_portal&lt;br /&gt;# pidfile: /var/run/websphere_portal.pid&lt;br /&gt;# author: Nabeel Moidu nabeelmoidu.at.gmail dot com&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;portal=/opt/IBM/PE/AppServer/profiles/wp_profile/bin&lt;br /&gt;args=WebSphere_Portal&lt;br /&gt;prog="WebSphere Portal Server"&lt;br /&gt;proc=/opt/IBM/WebSphere/AppServer/java/bin/java&lt;br /&gt;RETVAL=0&lt;br /&gt;username=portaluser&lt;br /&gt;password=password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# verify installation&lt;br /&gt;if [ ! -x $portal ]; then&lt;br /&gt;echo "$prog is not installed"&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# source function library&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;start)&lt;br /&gt;&lt;br /&gt;# Websphere should come up only if DB2 is up.&lt;br /&gt;for (( ; ; ))&lt;br /&gt;do&lt;br /&gt;&lt;br /&gt;# Check status of DB2&lt;br /&gt;su - wpdb2ins -c 'db2gcf -s' | grep Available;&lt;br /&gt;PRC_EXT_STAT=$?;&lt;br /&gt;&lt;br /&gt;# If DB2 is available, then startup the portal&lt;br /&gt;&lt;br /&gt;if [ $PRC_EXT_STAT = "0" ]; then&lt;br /&gt;echo -n "Starting $prog: "&lt;br /&gt;&lt;br /&gt;# Set ulimit&lt;br /&gt;ulimit -n 1000000&lt;br /&gt;&lt;br /&gt;# setup environment variables&lt;br /&gt;. /home/wpdb2ins/sqllib/db2profile&lt;br /&gt;&lt;br /&gt;# Bring up the portal&lt;br /&gt;$portal/startServer.sh $args &lt;br /&gt;RETVAL=$?&lt;br /&gt;if [ $RETVAL = 0 ]; then&lt;br /&gt;touch /var/lock/subsys/websphere_portal&lt;br /&gt;echo_success&lt;br /&gt;else&lt;br /&gt;echo_failure&lt;br /&gt;fi&lt;br /&gt;break;&lt;br /&gt;# If DB2 is not up, then start DB2&lt;br /&gt;else&lt;br /&gt;su - wpdb2ins -c 'db2start'&lt;br /&gt;fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;;;&lt;br /&gt;stop)&lt;br /&gt;echo -n "Shutting down $prog: "&lt;br /&gt;$portal/stopServer.sh $args -username $username -password $password &lt;br /&gt;RETVAL=$?&lt;br /&gt;if [ $RETVAL = 0 ]; then&lt;br /&gt;rm -f /var/lock/subsys/websphere_portal&lt;br /&gt;# Shut down DB2&lt;br /&gt;su - wpdb2ins -c 'db2stop';&lt;br /&gt;echo_success&lt;br /&gt;else&lt;br /&gt;echo_failure&lt;br /&gt;fi&lt;br /&gt;echo&lt;br /&gt;;;&lt;br /&gt;restart)&lt;br /&gt;$0 stop&lt;br /&gt;$0 start&lt;br /&gt;;;&lt;br /&gt;status)&lt;br /&gt;status $proc&lt;br /&gt;;;&lt;br /&gt;*)&lt;br /&gt;echo "Usage: websphered {start|stop|restart|status}"&lt;br /&gt;exit 1&lt;br /&gt;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then execute the following commands&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;chmod +x /etc/init.d/websphere_portal&lt;br /&gt;chkconfig --add /etc/init.d/websphere_portal&lt;br /&gt;chkconfig --level 345 websphere_portal on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LINK ---&gt; http://nmkuttiady.blogspot.com/2009/07/init-script-for-websphere-portaldb2-on.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-5074177968154849662?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5074177968154849662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5074177968154849662'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/07/init-script-for-websphere-portaldb2-on.html' title='Init script for Websphere Portal/DB2 on linux'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-996128398488643850</id><published>2009-07-23T14:37:00.000+07:00</published><updated>2009-07-23T14:38:47.330+07:00</updated><title type='text'>Websphere startup script for linux</title><content type='html'>Startup script for Websphere Application server on linux. Its got an added check for Oracle connectivity before the service is brought up.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Websphered # Startup script for IBM WebSphere Application Server&lt;br /&gt;#&lt;br /&gt;# chkconfig: - 99 15&lt;br /&gt;# description: IBM's J2EE application server&lt;br /&gt;# processname: websphered&lt;br /&gt;# pidfile: /var/run/websphered.pid&lt;br /&gt;&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;websphered=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin&lt;br /&gt;args=server1&lt;br /&gt;prog="WebSphere Application Server"&lt;br /&gt;proc=/opt/IBM/WebSphere/AppServer/java/bin/java&lt;br /&gt;RETVAL=0&lt;br /&gt;username=user&lt;br /&gt;password=password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# verify installation&lt;br /&gt;if [ ! -x $websphered ]; then&lt;br /&gt;echo "$prog is not installed"&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# source function library&lt;br /&gt;. /etc/rc.d/init.d/functions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;start)&lt;br /&gt;&lt;br /&gt;# Continous loop to check Oracle connectivity. Websphere should come up only if Oracle is up.&lt;br /&gt;for (( ; ; ))&lt;br /&gt;do&lt;br /&gt;&lt;br /&gt;# Check for Oracle connectivity&lt;br /&gt;&lt;br /&gt;su - oracle -c '/opt/Oracle/product/10.2.0/client_1/bin/tnsping database_name ' | grep OK;&lt;br /&gt;PRC_EXT_STAT=$?;&lt;br /&gt;&lt;br /&gt;# If Oracle is pingable, then startup WAS and break out of loop&lt;br /&gt;&lt;br /&gt;if [ $PRC_EXT_STAT = "0" ]; then&lt;br /&gt;echo -n "Starting Websphere Application Server: "&lt;br /&gt;$websphered/startServer.sh $args &lt;br /&gt;RETVAL=$?&lt;br /&gt;if [ $RETVAL = 0 ]; then&lt;br /&gt;touch /var/lock/subsys/websphered&lt;br /&gt;echo_success&lt;br /&gt;else&lt;br /&gt;echo_failure&lt;br /&gt;fi&lt;br /&gt;#Break out of loop&lt;br /&gt;break;&lt;br /&gt;echo&lt;br /&gt;fi&lt;br /&gt;# Wait 30 seconds before checking again &lt;br /&gt;echo " Waiting for Oracle connectivity: "&lt;br /&gt;sleep 30&lt;br /&gt;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;;;&lt;br /&gt;stop)&lt;br /&gt;echo -n "Shutting down websphered: "&lt;br /&gt;$websphered/stopServer.sh $args -username $username -password $password &lt;br /&gt;RETVAL=$?&lt;br /&gt;if [ $RETVAL = 0 ]; then&lt;br /&gt;rm -f /var/lock/subsys/websphered&lt;br /&gt;echo_success&lt;br /&gt;else&lt;br /&gt;echo_failure&lt;br /&gt;fi&lt;br /&gt;echo&lt;br /&gt;;;&lt;br /&gt;restart)&lt;br /&gt;$0 stop&lt;br /&gt;$0 start&lt;br /&gt;;;&lt;br /&gt;status)&lt;br /&gt;status $proc&lt;br /&gt;;;&lt;br /&gt;*)&lt;br /&gt;echo "Usage: websphered {start|stop|restart|status}"&lt;br /&gt;exit 1&lt;br /&gt;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit 0 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LINK --&gt;&gt; http://nmkuttiady.blogspot.com/2009/01/websphere-startup-script-for-linux.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-996128398488643850?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/996128398488643850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/996128398488643850'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/07/websphere-startup-script-for-linux.html' title='Websphere startup script for linux'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-4495776372339712700</id><published>2009-07-10T14:45:00.000+07:00</published><updated>2009-07-10T14:46:35.001+07:00</updated><title type='text'>How to kill multiple java processes</title><content type='html'>&lt;blockquote&gt;ps -ef | grep java | grep -v grep | awk '{print $2}' | xargs kill -9&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-4495776372339712700?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/4495776372339712700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=4495776372339712700' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4495776372339712700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4495776372339712700'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/07/how-to-kill-multiple-java-processes.html' title='How to kill multiple java processes'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-1985963560198057624</id><published>2009-06-25T12:48:00.001+07:00</published><updated>2009-06-25T12:51:09.836+07:00</updated><title type='text'>SSL Certificates expiration monitoring for WebSphere or any java based application server using java keystore</title><content type='html'>If you are a WebSphere Administrator or any Application Server (WebLogic, Tomcat) administrator you might already know that managing the ssl certificates in a large complex environments becomes hectic and troublesome because of the different expiration dates of the certificates that websphere uses and also the ssl certificates of the external systems (like SAP , Siebel) that websphere applicaton server might connect to using a secure connection, multiple administrators in an organization renewing it and not keeping&lt;span style="color:#000000;"&gt; tracking&lt;/span&gt; of the expiration dates. The problem is , SSL certificate might expire resulting in servers will not initialize and your running servers will stop operating, becomes unresposive if not properly renewed on time. Hence this article will explain how you can monitor the expiration of the ssl certificates using a simple command and proactively monitor the expiration dates, setup your calendar and renew it on time to prevent any downtimes.&lt;br /&gt;&lt;br /&gt;If you are using the latest version (as on Dec 2007) of &lt;a href="http://www-306.ibm.com/software/webservers/appserv/was/features/"&gt;WebSphere Application Server 6.1&lt;/a&gt; and using default self signed there are provisions in the application server itself to effectively monitor the &lt;a href="http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/csec_sslcertmonitoring.html"&gt;certificate expiration&lt;/a&gt;, notifying you and renewing it automatically. If you are using a perosnal self signed certificate or a personal certificate signed by a certificate authority (CA) like &lt;a href="http://www.verisign.com/"&gt;VeriSign&lt;/a&gt; or &lt;a href="http://www.thawte.com/"&gt;Thawte &lt;/a&gt;, which is most likely in all of your production environments then you might want to use the below command to find the expiration date and &lt;a href="http://www.verisign.com/ssl/ssl-information-center/faq/ssl-renewal.html"&gt;renew&lt;/a&gt; it.&lt;br /&gt;&lt;br /&gt;If you are using a java keystore ( DummyServerKeyFile.jks , DummyServerTrustFile.jks , jssecerts , cacerts) use the below find command along with &lt;a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html"&gt;keytool&lt;/a&gt; or websphere's &lt;a href="http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.web20fep.multiplatform.doc/info/ae/ae/csec_sslikeymancertman.html?resultof=%22%69%6b%65%79%6d%61%6e%22%20"&gt;ikeyman&lt;/a&gt; command line option to find the expiration of the keys.&lt;br /&gt;&lt;br /&gt;LINUX:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using Ikeyman cmdline utility (ikeyman.sh):&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;find PATH -name *.jks | xargs -i bash -c '$WAS_HOME/java/bin/java -classpath $WAS_HOME/java/jre/lib/ext/ibmjceprovider.jar:$WAS_HOME/AppServer/java/jre/lib/ext/ibmjcefw.jar:$WAS_HOME/AppServer/java/jre/lib/ext/US_export_policy.jar:$WAS_HOME/AppServer/java/jre/lib/ext/local_policy.jar:$WAS_HOME/AppServer/java/jre/lib/ext/ibmpkcs.jar:$WAS_HOME/AppServer/java/jre/lib/ext com.ibm.gsk.ikeyman.ikeycmd -cert -list all -expiry  -db {} -type jks -pw &amp;lt;password&amp;gt; &amp;#124; grep "Not After:.*yyy[y,y]" -B 3 &amp;&amp; echo {}'&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;(e.g) &lt;br /&gt;&lt;strong&gt;&lt;em&gt;find /usr/IBM/WebSphere/AppServer/profiles/ -name *.jks | xargs -i bash -c '/usr/IBM/WebSphere/AppServer/java/bin/java -classpath /usr/IBM/WebSphere/AppServer/java/jre/lib/ext/ibmjceprovider.jar:/usr/IBM/WebSphere/AppServer/java/jre/lib/ext/ibmjcefw.jar:/usr/IBM/WebSphere/AppServer/java/jre/lib/ext/US_export_policy.jar:/usr/IBM/WebSphere/AppServer//java/jre/lib/ext/local_policy.jar:/usr/IBM/WebSphere/AppServer/java/jre/lib/ext/ibmpkcs.jar:/usr/IBM/WebSphere/AppServer/java/jre/lib/ext com.ibm.gsk.ikeyman.ikeycmd -cert -list all -expiry  -db {} -type jks -pw WebAS &amp;#124; grep "Not After:.*200[7,8]" -B 3 &amp;&amp; echo {}'&lt;/em&gt;&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;Using Java Keytool utility:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;find $WAS_HOME -name '*.jks' &amp;#124; xargs -i bash -c "echo {}; $WAS_HOME/java/jre/bin/keytool -list -v -keystore {} -storepass password  &amp;#124; &lt;password&gt;grep 'until: .*/.*/Y[Y,Y]' -A 3 -B 7" &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;(e.g)&lt;br /&gt;&lt;em&gt;&lt;strong&gt;find /usr/IBM/WebSphere/AppServer -name '*.jks' &amp;#124; xargs -i bash -c "echo {};/usr/IBM/WebSphere/AppServer/java/jre/bin/keytool -list -v -keystore {} -storepass WebAS &amp;#124; grep 'until: .*/.*/0[7,8]' -A 3 -B 7" &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;em&gt;&lt;span style="color:#009900;"&gt;/usr/IBM/WebSphere/AppServer/profiles/etc//WWWStageClientKey.jks&lt;/span&gt;&lt;br /&gt;Alias name:&lt;span style="color:#993399;"&gt; verisign class 1 ca individual subscriber-persona not validated&lt;/span&gt;&lt;br /&gt;Creation date: Dec 18, 2006&lt;br /&gt;Entry type: &lt;span style="color:#ff0000;"&gt;trustedCertEntry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Owner: CN=VeriSign Class 1 CA Individual Subscriber-Persona Not Validated, OU="www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)98", OU=VeriSign Trust Network, O="VeriSign, Inc."&lt;br /&gt;Issuer: OU=Class 1 Public Primary Certification Authority, O="VeriSign, Inc.", C=US&lt;br /&gt;Serial number: d8b4feeaad218df5bf4756a9d29e17ffb&lt;br /&gt;Valid from: 5/12/98 12:00 AM &lt;span style="color:#3333ff;"&gt;until: 5/12/08 11:59 PM&lt;/span&gt;&lt;br /&gt;Certificate fingerprints:&lt;br /&gt;         MD5:  CA:66:3C:FC:71:2B:BA:41:92:71:DD:72:AD:E5:65:65&lt;br /&gt;         SHA1: 12:51:9A:E9:CD:77:7A:56:01:84:F1:FB:D5:42:15:22:2E:95:E7:1F&lt;br /&gt;--&lt;br /&gt;Creation date: Dec 18, 2006&lt;br /&gt;Entry type: keyEntry&lt;br /&gt;Certificate chain length: 1&lt;br /&gt;Certificate[1]:&lt;br /&gt;Owner: CN=wadm.stage.WWW.com, OU=IT, O=WWW, L=Fremont, ST=CA, POSTALCODE=94089, C=US&lt;br /&gt;Issuer: CN=wadm.stage.WWW.com, OU=IT, O=WWW, L=Fremont, ST=CA, POSTALCODE=94089, C=US&lt;br /&gt;Serial number: 458709ef&lt;br /&gt;Valid from: 12/18/06 9:36 PM until: 12/18/07 9:36 PM&lt;br /&gt;Certificate fingerprints:&lt;br /&gt;         MD5:  C2:4F:CC:SS:19:DC:E4:88:B0:2A:78:76:69:4D:DC:EF:47&lt;br /&gt;         SHA1: 53:AB:D0:13:45:45:12:59:64:F6:C9:38:41:F2:C8:E3:37:05:73:95:F3:83&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;/usr/IBM/WebSphere/AppServer/profiles/etc/wwwStageServerKey.jks&lt;/span&gt;&lt;/em&gt;&lt;/pre&gt;&lt;pre&gt;&lt;em&gt;Alias name:&lt;span style="color:#993399;"&gt; www stage websphere server ca&lt;/span&gt;&lt;br /&gt;Creation date: Dec 8, 2006&lt;br /&gt;Entry type: &lt;span style="color:#ff0000;"&gt;keyEntry&lt;/span&gt;&lt;br /&gt;Certificate chain length: 1&lt;br /&gt;Certificate[1]:&lt;br /&gt;Owner: CN=wadm.stage.www.com, OU=IT, O="www, Inc.", L=Fremont , ST=California, C=US&lt;br /&gt;Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, Inc.", C=US&lt;br /&gt;Serial number: 1ea5f21b33ca65e551440d662399dffdfga382&lt;br /&gt;Valid from: &lt;span style="color:#3333ff;"&gt;12/5/06 12:00 AM until: 12/15/07 11:59 PM&lt;/span&gt;&lt;br /&gt;Certificate fingerprints:&lt;br /&gt;         MD5:  C2:22:E4:12:12:6D:3F:22:67:4E:37:48:12:3F:F3:1B:FE:26&lt;br /&gt;         SHA1: CA:81:37:A7:E9:12:22:19:27:D9:3F:C5:79:E9:25:C8:1A:3C:1E:5C:17:02&lt;/em&gt;&lt;/pre&gt;&lt;br /&gt;As you can see in the above output the command will list the file name &lt;span style="color:#009900;"&gt;(/usr/IBM/WebSphere/AppServer/profiles/etc/wwwStageServerKey.jks&lt;/span&gt;) , certificate label (&lt;span style="color:#663366;"&gt;www stage websphere server ca&lt;/span&gt;) , Entry Type (&lt;span style="color:#ff0000;"&gt;keyEntry&lt;/span&gt; - personal cert or &lt;span style="color:#ff0000;"&gt;trustedCertEntry&lt;/span&gt; - Signer Cert), and the expiration date (&lt;span style="color:#3333ff;"&gt;12/5/06 12:00 AM until: 12/15/07 11:59 PM&lt;/span&gt;) of&lt;br /&gt;all the java keystore (*.jks) in the given directory that expired in 2007 (07) or 2008 (08). By which you shoule be able to indentify the certs, setup your calendat atleast 10 days before the expiration and &lt;a href="http://www-1.ibm.com/support/docview.wss?uid=swg21045925"&gt;renew&lt;/a&gt; it to proactively to preveny any problems.&lt;br /&gt;&lt;br /&gt;Note you can also change the above command by passing differnt filename like cacerts and jssecerts and also pass different year infomration to find expirations during those years.&lt;br /&gt;&lt;br /&gt;Sometimes you might get no output which means either there are no expiring ceritificates for the years that you passed or if you are expecting any expiring certificate to show and if not then the password for the keystore might be wrong, so run without the grep portion in the above command which will list all the certificates irrespective of the expiration date or it will complain if the password is wrong as below.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;find /usr/IBM/WebSphere/AppServer -name '*.jks' &amp;#124; xargs -i bash -c "echo {};/usr/IBM/WebSphere/AppServer/java/jre/bin/keytool -list -v -keystore {} -storepass WebAS&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;/usr/IBM/WebSphere/AppServer/profiles/etc/wwwStageServerKey.jks&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#ff0000;"&gt;java.io.IOException: Keystore was tampered with, or password was incorrect&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Also you can use the same command by modifying the -type parameter to "-type cms"   for the webserver such as IBM HttpServer where it's using cms database ( kdb file).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;find /usr/IBM/HttpServer -name *.kdb | xargs -i bash -c '/usr/IBM/WebSphere/Plugins/java/bin/java -classpath /usr/IBM/WebSphere/Plugins/java/jre/lib/ext/ibmjceprovider.jar:/usr/IBM/WebSphere/Plugins/java/jre/lib/ext/ibmjcefw.jar:/usr/IBM/WebSphere/Plugins/java/jre/lib/ext/US_export_policy.jar:/usr/IBM/WebSphere/Plugins//java/jre/lib/ext/local_policy.jar:/usr/IBM/WebSphere/Plugins/java/jre/lib/ext/ibmpkcs.jar:/usr/IBM/WebSphere/Plugins/java/jre/lib/ext com.ibm.gsk.ikeyman.ikeycmd -cert -list all -expiry  -db {} -type cms -pw WebAS &amp;#124; grep "Not After:.*200[7,8]" -B 3 &amp;&amp; echo {}'&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-1985963560198057624?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/1985963560198057624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=1985963560198057624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1985963560198057624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1985963560198057624'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/06/ssl-certificates-expiration-monitoring.html' title='SSL Certificates expiration monitoring for WebSphere or any java based application server using java keystore'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-4976728166422853822</id><published>2009-05-27T15:28:00.001+07:00</published><updated>2009-05-27T15:30:32.328+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux route add command</title><content type='html'>Linux route add using route command:&lt;br /&gt;&lt;br /&gt;route add -net &lt;destination IP xxx.xxx.xxx.0&gt; netmask 255.255.255.0 gw &lt;source IP xxx.xxx.xxx.254&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-4976728166422853822?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/4976728166422853822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=4976728166422853822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4976728166422853822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4976728166422853822'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/05/linux-route-add-command.html' title='Linux route add command'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-3297461988174180620</id><published>2009-02-20T12:56:00.001+07:00</published><updated>2009-02-20T12:58:54.608+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebSphere Portal'/><title type='text'>How to display user attributes in WebSphere Portal?</title><content type='html'>If you want to display some attributes of current user, you can use &lt;portal-fmt:user/&gt; tag in your theme pages, e.g. in banner_toolbar.jspf&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;portal-logic:if loggedIn="yes"&gt;&lt;br /&gt;&lt;br /&gt;Hello &lt; portal-fmt:user attribute="sn"/&gt;, &lt; portal-fmt:user attribute="givenName"/&gt;&lt;br /&gt;&lt;br /&gt;&lt;/portal-logic:if&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;this tag supports following attributes : &lt;br /&gt;&lt;br /&gt;Default attributes are:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;* jobTitle&lt;br /&gt;* roomNumber&lt;br /&gt;* telephoneNumber&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Member Manager attributes valid for including in person link contact information are:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;* businessCategory&lt;br /&gt;* carLicense&lt;br /&gt;* cn&lt;br /&gt;* countryName&lt;br /&gt;* departmentNumber&lt;br /&gt;* description&lt;br /&gt;* displayName&lt;br /&gt;* employeeNumber&lt;br /&gt;* employeeType&lt;br /&gt;* facsimileTelephoneNumber&lt;br /&gt;* givenName&lt;br /&gt;* homePostalAddress&lt;br /&gt;* ibm-gender&lt;br /&gt;* ibm-generationQualifier&lt;br /&gt;* ibm-hobby&lt;br /&gt;* ibm-middleName&lt;br /&gt;* ibm-otherEmail&lt;br /&gt;* ibm-personalTitle&lt;br /&gt;* ibm-primaryEmail&lt;br /&gt;* ibm-regionalLocale&lt;br /&gt;* ibm-timeZone&lt;br /&gt;* Initials&lt;br /&gt;* jobTitle&lt;br /&gt;* localityName&lt;br /&gt;* manager&lt;br /&gt;* mobile&lt;br /&gt;* o&lt;br /&gt;* ou&lt;br /&gt;* pager&lt;br /&gt;* postalAddress&lt;br /&gt;* postalCode&lt;br /&gt;* preferredLanguage&lt;br /&gt;* roomNumber&lt;br /&gt;* secretary&lt;br /&gt;* seeAlso&lt;br /&gt;* sn&lt;br /&gt;* stateOrProvinceName&lt;br /&gt;* street&lt;br /&gt;* telephoneNumber&lt;br /&gt;* uid&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-3297461988174180620?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/3297461988174180620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=3297461988174180620' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3297461988174180620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3297461988174180620'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/02/how-to-display-user-attributes-in.html' title='How to display user attributes in WebSphere Portal?'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-1866249449371503054</id><published>2009-02-18T22:06:00.001+07:00</published><updated>2009-02-18T22:08:38.286+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>How to Set JAVA_HOME / PATH variables Under Linux Bash Profile</title><content type='html'>~/.bash_profile is a startup script which generally runs once. This particular file is used for commands which run when the normal user logs in. Common uses for .bash_profile are to set environment variables such as PATH, JAVA_HOME, to create aliases for shell commands, and to set the default permissions for newly created files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Set JAVA_HOME / PATH for single user&lt;/strong&gt;&lt;br /&gt;Login to your account and open .bash_profile file&lt;br /&gt;&lt;blockquote&gt;$ vi ~/.bash_profile&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Set JAVA_HOME as follows using syntax export JAVA_HOME=&lt;path-to-java&gt;. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:&lt;br /&gt;&lt;blockquote&gt;export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java&lt;/blockquote&gt;&lt;br /&gt;Set PATH as follows:&lt;br /&gt;&lt;blockquote&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;/blockquote&gt;&lt;br /&gt;Save and close the file. Just logout and login back to see new changes:&lt;br /&gt;&lt;blockquote&gt;$ echo $JAVA_HOME&lt;br /&gt;$ echo $PATH&lt;/blockquote&gt;&lt;br /&gt;Tip: Use the following command to find out exact path to which java executable under UNIX / Linux:&lt;br /&gt;&lt;blockquote&gt;$ which java&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Please note that the file ~/.bashrc is similar, with the exception that ~/.bash_profile runs only for Bash login shells and .bashrc runs for every new Bash shell. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Set JAVA_HOME / PATH for all user&lt;/strong&gt;&lt;br /&gt;You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:&lt;br /&gt;&lt;blockquote&gt;# vi /etc/profile&lt;/blockquote&gt;&lt;br /&gt;Next setup PATH / JAVA_PATH variables as follows:&lt;br /&gt;&lt;blockquote&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;link-&gt; http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-1866249449371503054?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/1866249449371503054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=1866249449371503054' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1866249449371503054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1866249449371503054'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/02/how-to-set-javahome-path-variables.html' title='How to Set JAVA_HOME / PATH variables Under Linux Bash Profile'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-8793625997896812365</id><published>2009-02-18T21:57:00.000+07:00</published><updated>2009-02-18T22:00:09.779+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes</title><content type='html'>Fedora Core developers make it rather hard to install and properly configure Sun's JVM. All said and done Sun's JVM (comes with JDK) is the best JVM implementation out there; not to mention that it is the reference implementation. Here is how you can easily install JDK 6 / Java SE 6 in 5 minutes or less. Here are the steps:&lt;br /&gt;&lt;br /&gt;1. Login as root&lt;br /&gt;&lt;br /&gt;2. First you need to download it from here. This works fine from GUI browsers like Firefox, Internet Explorer or Safari. However Sun makes it very hard (from java.sun.com) to download it for Linux console users (like those trying to install on their dedicated web server). You cannot access the download link from text based lynx browser. Fortunately there is a way. I found a secret location for you to easily download JDK 6 using wget or curl (console apps). This is also very useful if you are planning to use any download accelerators. The current binary (32 bit version) is here. This link will surely change with time so it is better to browse to the link above and then access this link from that page.&lt;br /&gt;&lt;br /&gt;Download it using wget or curl. The command, for example, today will be:&lt;br /&gt;wget http://www.java.net/…/jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin &lt;br /&gt;&lt;br /&gt;Note: The link has been truncated for brevity, however it is hyperlinked to the actual link.&lt;br /&gt;&lt;br /&gt;3. Now change the permission of the downloaded file to 755 like this:&lt;br /&gt;chmod 755 jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin&lt;br /&gt;&lt;br /&gt;4. Then run it:&lt;br /&gt;./jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin&lt;br /&gt;&lt;br /&gt;You will need to type yes to indicate your acceptance to their agreement and the installation will complete on its own. Unfortunately you are not yet done. Type java -version on the command line and you will see that it still points to the crappy old JVM from gcj.&lt;br /&gt;&lt;br /&gt;5. Now you need to find the actual location of your JDK installation and indicate to Fedora to accept your choice.&lt;br /&gt;&lt;br /&gt;Type the following:&lt;br /&gt;updatedb;locate javac |grep bin&lt;br /&gt;&lt;br /&gt;You will see an entry like this:&lt;br /&gt;/usr/java/jdk1.6.0_02/bin/javac&lt;br /&gt;&lt;br /&gt;Here /usr/java/jdk1.6.0_02 is the actual JAVA_HOME for your machine. Note this as you will need it to run the future commands.&lt;br /&gt;&lt;br /&gt;Now you need to run the alternatives command to instruct Fedora to recognize Sun's JVM.&lt;br /&gt;alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/java 100&lt;br /&gt;alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/jar 100&lt;br /&gt;alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/javac 100&lt;br /&gt;&lt;br /&gt;You can do this for other Java executables too, should you need them, following the same pattern.&lt;br /&gt;&lt;br /&gt;Note: If alternatives is not in your path then use locate alternatives to locate it.&lt;br /&gt;&lt;br /&gt;Finally you should configure alternative to use Sun's JVM as the default JVM. To do this type:&lt;br /&gt;/usr/sbin/alternatives --config java&lt;br /&gt;&lt;br /&gt;This will present you with at least 2 options. Choose the one for Sun's JVM. Similarly repeat the process for other commands.&lt;br /&gt;&lt;br /&gt;Now you are done configuring Fedora for the most part. Type java -version and you should see something like this:&lt;br /&gt;&lt;br /&gt;java version "1.6.0_02-ea"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02)&lt;br /&gt;Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: This works for most part, except Tomcat. The default installation of Tomcat has been hardwired to use GCJ. I changed the configuration file and it didn't help. My solution for Tomcat is to ditch Fedora's version and install directly from site. It works like a charm. Set JAVA_HOME to the value we found above and you are done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;copy from -&gt; this link  http://blog.taragana.com/index.php/archive/how-to-install-jdk-6-java-se-6-tomcat-in-fedora-core-6-fedora-7-in-5-minutes/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-8793625997896812365?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/8793625997896812365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=8793625997896812365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8793625997896812365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8793625997896812365'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/02/how-to-install-jdk-6-java-se-6-tomcat.html' title='How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-7691245834529711422</id><published>2009-02-16T16:10:00.000+07:00</published><updated>2009-02-16T16:11:49.731+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Keytool'/><title type='text'>keytool - Key and Certificate Management Tool</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How do I delete a cert from the default .keystore&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -delete -alias xxxxx (where xxxxx is the alias name)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do I delete a cert from the cacerts file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -delete -alias xxxxx -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts (where xxxxx is the alias name)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;How do I list all .keystore certs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -list -v | more&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do I list all .keystore certs in a specific keystore&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\zzzzz | more (where zzzzz is the keystore name)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do I list just one .keystore cert&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -list -v -alias xxxxx | more (where xxxxx is the alias name)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do I list all cacerts certificates&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts | more&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;How do I list just one cacerts certificate&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;keytool -list -keystore F:\j2sdk1.4.2_04\jre\lib\security\cacerts -alias xxxxx | more (where xxxxx is the alias name)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-7691245834529711422?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/7691245834529711422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=7691245834529711422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/7691245834529711422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/7691245834529711422'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/02/keytool-key-and-certificate-management.html' title='keytool - Key and Certificate Management Tool'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-8465045722500955418</id><published>2009-01-30T16:41:00.002+07:00</published><updated>2009-01-30T16:45:12.866+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM Portlet'/><category scheme='http://www.blogger.com/atom/ns#' term='WebSphere Portal'/><title type='text'>"This portlet is temporarily disabled." while rendering in parallel</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Problem(Abstract)&lt;/span&gt;&lt;br /&gt;After you enabled parallel portlet rendering, the error message "This portlet is temporarily disabled." is displayed for a portlet that is rendered in parallel. In this case the portal log file shows an exception with the message "PEEX0110E: The underlying pipe timed out while reading."&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Cause&lt;/span&gt;&lt;br /&gt;The portlet is rendered in a parallel thread and takes longer than the defined timeout to complete rendering. In this case WebSphere Portal displays an error message for the portlet and continues to render the rest of the page. Any output that the portlet might generate later will be discarded. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolving the problem&lt;/span&gt;&lt;br /&gt;To resolve the problem, change the parameters on the consumer side of the WebSphere Portal server as follows:&lt;br /&gt;Modify &lt;wps_root&gt;\shared\app\config\services\PortletContainerService.properties, and specify the following parameters:&lt;br /&gt;&lt;br /&gt;      std.useParallelRendering = true&lt;br /&gt;      parallelRenderingTimeOut = 10000 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After modifying the parameters and restarting the WebSphere Portal server, you should no longer see the message "The portlet is temporarily disabled." &lt;br /&gt;&lt;br /&gt;Ref -&gt; http://www-01.ibm.com/support/docview.wss?uid=swg21197532&lt;br /&gt;and http://www-01.ibm.com/support/docview.wss?uid=swg21177538&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-8465045722500955418?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/8465045722500955418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=8465045722500955418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8465045722500955418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8465045722500955418'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2009/01/this-portlet-is-temporarily-disabled.html' title='&quot;This portlet is temporarily disabled.&quot; while rendering in parallel'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-5055815780596772634</id><published>2008-11-03T15:14:00.001+07:00</published><updated>2008-11-03T15:14:59.937+07:00</updated><title type='text'>[Xlib: connection to ":0.0" refused by server]</title><content type='html'>&lt;strong&gt;[Xlib: connection to ":0.0" refused by server]&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you get error messages like this ---&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Xlib: connection to ":0.0" refused by server&lt;br /&gt;Xlib: No protocol specified&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;xhost:  unable to open display ":0.0"&lt;br /&gt;&lt;br /&gt;when running a program, you probably need to add the user to the X server access list. &lt;br /&gt;&lt;br /&gt;You can add a user to the X server access list with &lt;br /&gt;&lt;blockquote&gt;# xhost +local:username&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This allows "username" to connect to the local running X server. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;link: http://www.captain.at/howto-xlib-connection-refused-by-server.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-5055815780596772634?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/5055815780596772634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=5055815780596772634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5055815780596772634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5055815780596772634'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/11/xlib-connection-to-00-refused-by-server.html' title='[Xlib: connection to &quot;:0.0&quot; refused by server]'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-3871900300067331711</id><published>2008-10-20T09:16:00.002+07:00</published><updated>2008-10-20T09:19:49.545+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Profile'/><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>How to Set JAVA_HOME / PATH variables Under Linux Bash Profile</title><content type='html'>&lt;h2&gt;Set JAVA_HOME / PATH for single user&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;Login to your account and open .bash_profile file&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ vi ~/.bash_profile&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Set JAVA_HOME as follows using syntax &lt;span style='color: rgb(153, 102, 51);'&gt;export JAVA_HOME=&amp;lt;path-to-java&amp;gt;&lt;/span&gt;. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Set PATH as follows:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Save and close the file. Just logout and login back to see new changes:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ echo $JAVA_HOME&lt;br /&gt;&lt;br /&gt;$ echo $PATH&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Tip: Use the following command to find out exact path to which java executable under UNIX / Linux:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ which java&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Please note that the file ~/.bashrc is similar, with the exception that ~/.bash_profile runs only for Bash login shells and .bashrc runs for every new Bash shell. &lt;/p&gt;&lt;br /&gt;&lt;h2&gt;Set JAVA_HOME / PATH for all user&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;You need to setup global config in &lt;span style='color: rgb(153, 102, 51);'&gt;/etc/profile&lt;/span&gt; OR &lt;span style='color: rgb(153, 51, 153);'&gt;/etc/bash.bashrc&lt;/span&gt; file for all users:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# vi /etc/profile&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Next setup PATH / JAVA_PATH variables as follows:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Save and close the file.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Link http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-3871900300067331711?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/3871900300067331711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=3871900300067331711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3871900300067331711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3871900300067331711'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/10/how-to-set-javahome-path-variables.html' title='How to Set JAVA_HOME / PATH variables Under Linux Bash Profile'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-6098774159946716645</id><published>2008-10-09T12:02:00.005+07:00</published><updated>2008-10-10T09:29:59.215+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Installation Instructions (Apache 2.2.xx Shared Module Version)</title><content type='html'>Download the most recent version of » Apache 2.2 and a fitting PHP version from the above mentioned places. This quick guide covers only the basics to get started with Apache 2.2 and PHP. For more information read the » Apache Documentation. The version numbers have been omitted here, to ensure the instructions are not incorrect. You will need to replace the 'NN' here with the correct values from your files. &lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Installation Instructions (Apache 2.2.xx Shared Module Version) &lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;1.  gzip -d httpd-2_2_NN.tar.gz&lt;br /&gt;2.  tar xvf httpd-2_2_NN.tar&lt;br /&gt;3.  gunzip php-NN.tar.gz&lt;br /&gt;4.  tar -xvf php-NN.tar&lt;br /&gt;5.  cd httpd-2_2_NN&lt;br /&gt;6.  ./configure --prefix=/usr/local/apache2  --enable-so --enable-rewrite=shared  --enable-speling=shared&lt;br /&gt;7.  make&lt;br /&gt;8.  make install&lt;br /&gt;&lt;br /&gt;    Now you have Apache 2.2.NN available under /usr/local/apache2,&lt;br /&gt;    configured with loadable module support and the standard MPM prefork.&lt;br /&gt;    To test the installation use your normal procedure for starting&lt;br /&gt;    the Apache server, e.g.:&lt;br /&gt;    /usr/local/apache2/bin/apachectl start&lt;br /&gt;    and stop the server to go on with the configuration for PHP:&lt;br /&gt;    /usr/local/apache2/bin/apachectl stop.&lt;br /&gt;&lt;br /&gt;9.  cd ../php-NN&lt;br /&gt;&lt;br /&gt;10. Now, configure your PHP.  This is where you customize your PHP&lt;br /&gt;    with various options, like which extensions will be enabled.  Do a&lt;br /&gt;    ./configure --help for a list of available options.  In our example&lt;br /&gt;    we'll do a simple configure with Apache 2 and MySQL support.  Your&lt;br /&gt;    path to apxs may differ, in fact, the binary may even be named apxs2 on&lt;br /&gt;    your system. &lt;br /&gt;    &lt;br /&gt;      ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-mbstring=shared&lt;br /&gt;&lt;br /&gt;11. make&lt;br /&gt;12. make install&lt;br /&gt;&lt;br /&gt;    If you decide to change your configure options after installation,&lt;br /&gt;    you only need to repeat the last three steps. You only need to&lt;br /&gt;    restart apache for the new module to take effect. A recompile of&lt;br /&gt;    Apache is not needed.&lt;br /&gt;                &lt;br /&gt;    Note that unless told otherwise, 'make install' will also install PEAR,&lt;br /&gt;    various PHP tools such as phpize, install the PHP CLI, and more.&lt;br /&gt;    &lt;br /&gt;13. Setup your php.ini &lt;br /&gt;    &lt;br /&gt;    cp php.ini-dist /usr/local/lib/php.ini&lt;br /&gt;          &lt;br /&gt;    You may edit your .ini file to set PHP options.  If you prefer having&lt;br /&gt;    php.ini in another location, use --with-config-file-path=/some/path in&lt;br /&gt;    step 10.&lt;br /&gt;    &lt;br /&gt;    If you instead choose php.ini-recommended, be certain to read the list&lt;br /&gt;    of changes within, as they affect how PHP behaves.&lt;br /&gt;&lt;br /&gt;14. Edit your httpd.conf to load the PHP module.  The path on the right hand&lt;br /&gt;    side of the LoadModule statement must point to the path of the PHP&lt;br /&gt;    module on your system.  The make install from above may have already&lt;br /&gt;    added this for you, but be sure to check.&lt;br /&gt;&lt;br /&gt;    For PHP 4:&lt;br /&gt;  &lt;br /&gt;      LoadModule php4_module modules/libphp4.so&lt;br /&gt;      &lt;br /&gt;    For PHP 5:&lt;br /&gt;    &lt;br /&gt;      LoadModule php5_module modules/libphp5.so&lt;br /&gt; &lt;br /&gt;15. Tell Apache to parse certain extensions as PHP.  For example, let's have&lt;br /&gt;    Apache parse .php files as PHP.  Instead of only using the Apache AddType&lt;br /&gt;    directive, we want to avoid potentially dangerous uploads and created&lt;br /&gt;    files such as exploit.php.jpg from being executed as PHP.  Using this&lt;br /&gt;    example, you could have any extension(s) parse as PHP by simply adding&lt;br /&gt;    them.  We'll add .phtml to demonstrate.&lt;br /&gt;            &lt;br /&gt;      &lt;blockquote&gt;&lt; FilesMatch \.php$&gt;&lt;br /&gt;          SetHandler application/x-httpd-php&lt;br /&gt;      &lt; /FilesMatch&gt;&lt;/blockquote&gt;&lt;br /&gt;    Or, if we wanted to allow .php, .php2, .php3, .php4, .php5, .php6, and&lt;br /&gt;    .phtml files to be executed as PHP, but nothing else, we'd use this:&lt;br /&gt;&lt;br /&gt;      &lt;blockquote&gt;&lt; FilesMatch "\.ph(p[2-6]?|tml)$"&gt;&lt;br /&gt;          SetHandler application/x-httpd-php&lt;br /&gt;      &lt; /FilesMatch&gt;&lt;/blockquote&gt;&lt;br /&gt;    &lt;br /&gt;    And to allow .phps files to be executed as PHP source files, add this:&lt;br /&gt;&lt;br /&gt;      &lt;blockquote&gt;&lt; FilesMatch "\.phps$"&gt;&lt;br /&gt;          SetHandler application/x-httpd-php-source&lt;br /&gt;      &lt; /FilesMatch&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;16. Use your normal procedure for starting the Apache server, e.g.:&lt;br /&gt;   &lt;br /&gt;      /usr/local/apache2/bin/apachectl start&lt;br /&gt;&lt;br /&gt;          - OR -&lt;br /&gt;&lt;br /&gt;      service httpd restart&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;Following the steps above you will have a running Apache2.2 web server with support for PHP as a SAPI module. Of course there are many more configuration options available Apache and PHP. For more information type ./configure --help in the corresponding source tree. If you wish to build a multithreaded version of Apache2.2, you must overwrite the standard MPM-Module prefork either with worker or perchild. To do so append to your configure line in step 6 above either the option --with-mpm=worker or --with-mpm=perchild. Before doing so, please beware the consequences and have at least a fair understand of what the implications. For more information, read the Apache documentation regarding&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-6098774159946716645?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/6098774159946716645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=6098774159946716645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/6098774159946716645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/6098774159946716645'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/10/installation-instructions-apache-22xx.html' title='Installation Instructions (Apache 2.2.xx Shared Module Version)'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-4261893530242693288</id><published>2008-10-09T09:06:00.002+07:00</published><updated>2008-10-09T14:28:17.782+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='RPM'/><title type='text'>Failed dependencies: libmysqlclient.so.14 when install MySQL 5.0 on Linux</title><content type='html'>Failed dependencies: &lt;br /&gt;libmysqlclient.so.14 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386&lt;br /&gt;when install MySQL 5.0 on Linux&lt;br /&gt;&lt;br /&gt;First remove old  RPM s:&lt;br /&gt;# rpm -i mysql&lt;br /&gt;# rpm -e --nodeps mysql&lt;br /&gt;&lt;br /&gt;then install rpm of Mysql ^_^&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-4261893530242693288?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/4261893530242693288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=4261893530242693288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4261893530242693288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4261893530242693288'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/10/failed-dependencies-libmysqlclientso14.html' title='Failed dependencies: libmysqlclient.so.14 when install MySQL 5.0 on Linux'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-3197689632075914458</id><published>2008-09-18T14:18:00.002+07:00</published><updated>2008-09-18T14:30:26.913+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>10 ways to Increase Performance on a VMware System</title><content type='html'>&lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;10. Use VMware Tools&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p class="MsoNormal"&gt;&lt;br /&gt;        &lt;span style="font-size: 10.0pt; font-family: Verdana"&gt;&lt;br /&gt;        When you load the VMware tools for Windows or Linux, you get a number of benefits. First off, you can now have SVGA resolution instead of just standard VGA. This also increases graphics performance on the virtual machine. Next, the mouse between the host and guest are now synchronized. No longer do you have to press Ctrl-Alt to ext the guest operating system. Mouse performance is also increased. Finally, you can cut and paste between operating systems. These tools are easy to install. Inside the VMware management interface, once the virtual machine is booted, go to &lt;br /&gt;        &lt;b&gt;VM -&amp;gt; Install VMware Tools&lt;/b&gt;, like this:&lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;        &lt;br /&gt;        &lt;span style="font-size: 10.0pt; font-family: Verdana"&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;9. Defrag Your Virtual Disks&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30" align="left"&gt;&lt;br /&gt;        &lt;font size="2"&gt;Just like any other operating system, over time, a disk will become fragmented. Virtual machines are no different. The time that it takes for a disk to become fragmented depends on what data is being added to and removed from the virtual machine hard drive. Periodically, you should use a program like Diskkeeper, PerfectDisk, or Windows Disk Defragmenter. You can access Window Disk Defragmenter by going to &lt;br /&gt;        &lt;b&gt;My Computer&lt;/b&gt;, right-clicking on &lt;b&gt;C:&lt;/b&gt;, click on &lt;br /&gt;        &lt;b&gt;Properties&lt;/b&gt;, click on the &lt;b&gt;Tools tab&lt;/b&gt;, and click&lt;br /&gt;        &lt;b&gt;Defragment now&lt;/b&gt;.&lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;/font&gt;&lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;Remember, just about any maintenance that a real computer needs, a virtual computer also needs (hey, did you put Anti-virus protection on that virtual machine?).&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;8. Disable Windows Visual Effects&lt;/font&gt;&lt;/h3&gt;        &lt;p class="MsoNormal"&gt;In Windows, there are common visual effects that make it look “cooler”. However, these visual effects just cause a virtual machine to appear to run slower. This is because the visual effects take CPU/graphics resources to process. I recommend disabling these visual effects to get a slight performance increase. These visual effects settings can be found by right-clicking on in &lt;br /&gt;        &lt;b&gt;Control Panel -&amp;gt; System -&amp;gt; Advanced Tab -&amp;gt; Performance Settings&lt;/b&gt;.  Once there, click on &lt;br /&gt;        &lt;b&gt;Adjust for best performance&lt;/b&gt; and click &lt;b&gt;OK&lt;/b&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;        I also recommend disabling the screensaver in your virtual machine as you don’t have a real monitor that is going to get burnt in. By disabling the screensaver, you won’t have to wait for it to update when you come back to use it.&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;7. Run VMware in Full Screen &lt;br /&gt;        Mode&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        When you use your virtual machines, most people use them inside the VMware Management Interface window. This works fine but the performance would be better if you used that virtual machine in full screen mode. To change to full-screen mode (while you are in the virtual machine), press &lt;br /&gt;        &lt;b&gt;Ctrl-Alt-Enter&lt;/b&gt;. You will notice a significant performance difference when using full-screen mode. To exit full-screen mode, press &lt;br /&gt;        &lt;b&gt;Ctrl-Alt&lt;/b&gt;.&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;6. Disable the CDROM in VMware&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        Hopefully you chose to disable autorun on your CDROM drive when installing VMware. This is because, when a CDROM with an autorun file on it is inserted, the host machine and all guest operating systems would try to take control of it and read it. &lt;br /&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;                To further prevent your virtual machines from wasting their time with CDROMs being inserted, you should disable the CDROM for each virtual machine. To do this, after selecting the proper tab for that virtual machine, go to &lt;br /&gt;        &lt;b&gt;VM -&amp;gt; Settings&lt;/b&gt; (or press &lt;b&gt;Ctrl-D&lt;/b&gt;). Inside the settings window, click on the CDROM drive. On the right-hand side, uncheck &lt;br /&gt;        &lt;b&gt;Connected&lt;/b&gt; and &lt;b&gt;Connect at Power-On&lt;/b&gt;, like this:&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;When done, click &lt;b&gt;OK&lt;/b&gt; to save changes.&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;5. Separate Out Virtual Swap &lt;br /&gt;        Files Onto Separate Virtual Disks&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        Another way to increase performance on virtual machines is separate the swap files onto a separate host virtual and physical disks. In other words, currently, your swap file goes to the same virtual disk as all your other disk files. To increase performance, you would create a new virtual disk on a different host physical disk. You would then relocate your swap file to that new virtual disk. It won’t really be beneficial if you don’t relocate the new virtual disk to a new physical disk.&lt;br /&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        This is a more advanced topic and complex process so I won’t go into all the details in this article. However, to change the location of your swap file, you go to &lt;br /&gt;        &lt;b&gt;Control Panel -&amp;gt; System -&amp;gt; Advanced Tab -&amp;gt; Performance Settings &lt;br /&gt;        -&amp;gt; Advanced Tab -&amp;gt; Virtual Memory Change&lt;/b&gt;.&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        Of course, you hope that you don’t have to do much swapping. To prevent swapping, you should increase the size of the memory allocated to the virtual machine (within the size of your physical RAM). Note, see “Upgrade your RAM”, below.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;      &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;4. Split Virtual Disks Among &lt;br /&gt;        Multiple Hard Disks&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        Anytime you can distribute data that is being utilized onto multiple disks, you will get greater performance. With VMware, this also applies. Say that you are running Microsoft SQL server or Exchange server. These applications have server programs, log files, and databases. Those three types of data could be split onto three separate virtual disks and those virtual disks could be placed on three separate physical disks. &lt;br /&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        Another way to distribute data across multiple disk spindles is to use a form of RAID. You could keep a single virtual disk a place it on a 5 disk RAID 5 stripe, for example. That would spread the data across multiple disk spindles, increasing performance for the virtual machine.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;3. Upgrade Your Hard Disk&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        Upgrading your hard disk with a faster disk will always be a way to increase virtual machine performance. When you do this, your physical host disk is automatically defragmented because you had to backup and restore that data. Besides going with just a faster disk, you may be better going with multiple faster disks, if you can arrange that. Those disks could be put in a RAID array to provide redundancy and performance (depending on the type of RAID you select).&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;2. Upgrade Your CPU&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        The power of your CPU to process all the data from the host operating system, as well as these multiple virtual operating systems will be seriously stressed. As with any application, a faster CPU speed will always provide faster processing.&lt;/p&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;1. Upgrade Your RAM&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30"&gt;&lt;br /&gt;        In my opinion, you will get the most “bang for your buck” by upgrading your host system’s RAM. RAM is inexpensive these days (compared to CPU or disk) and these virtual machines are hungry for it. By upgrading your RAM, you can allocate more RAM to each virtual machine. This will prevent swapping on your host operating system and guest operating systems. &lt;br /&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;        &lt;br&gt;&lt;br /&gt;                If you can’t afford additional RAM, another option is to reallocate RAM from one virtual machine to another. See how much RAM each machine is using. If one machine is doing more swapping and needs more RAM, perhaps it can be taken from another machine that isn’t doing much of anything. That is the beauty of virtual computing- sharing resources.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;br /&gt;        &lt;h&gt;&lt;br /&gt;&lt;br /&gt;        &lt;h3 style="margin-right: 30"&gt;&lt;br /&gt;        &lt;font face="Verdana"&gt;Summary&lt;/font&gt;&lt;/h3&gt;&lt;br /&gt;        &lt;p style="margin-right: 30" align="left"&gt;&lt;br /&gt;        &lt;font size="2"&gt;You have learned 10 different ways to increase the performances of your VMware workstation or server machines. There are software changes that can be made as well as hardware upgrades. Remember that your machine isn’t invincible and that running multiple computers inside one computer will quickly push your system, no matter how fast, to its limits. Use these 10 ways to increase performance to make your life (and your users’ lives) easier.&lt;/font&gt;&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Link : http://www.petri.co.il/virtual_increase_vmware_performance.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-3197689632075914458?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/3197689632075914458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=3197689632075914458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3197689632075914458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3197689632075914458'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/09/10-ways-to-increase-performance-on.html' title='10 ways to Increase Performance on a VMware System'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-4368339984717397596</id><published>2008-09-18T14:18:00.001+07:00</published><updated>2008-09-18T14:21:24.737+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare Server Performance Tuning'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>Improving VMWare Server performance on Windows XP</title><content type='html'>&lt;p&gt;Over the last year, we have made a big push to move our development/test environments to a virtualized environment using VMWare Server. While we have not really encountered serious performance issues with our test servers, my team was reporting very poor performance with running the development virtual machines on their laptops. Now, keep in mind that these are pretty powerful laptops with 3 or 4GB of RAM, a T9300 dual-core processor, and a 7200RPM SATA hard drive. So there was more than enough horsepower to run WebSphere Portal in a virtual machine. However, the facts did not bear it out and in fact my team was reporting that running the virtual machine was in fact slowing their laptops down to a crawl with the constant hard disk access - a build that ought to take 5-10 seconds was taking several minutes. Obviously an unacceptable situation and people had reverted to just using a local WebSphere Portal install on their native OS - the issue with the local installs was that these local installs were not configured with LDAP or all the customizations/configurations that our test VMs have. When I found out about the issue and workaround and the fact that my pet initiative had fallen by the wayside, I felt challenged to resolve this issue. I tried it out on my own laptop and was able to reproduce this issue, and 2-3 hours later, I had the issue resolved. &lt;span id="more-111"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To reiterate, the root cause of our performance woes was the excessive disk I/O being done by VMWare. Even though, we had plenty of RAM on our laptops and had more than enough RAM allocated to the Virtual Machine, what I noticed was that while VMWare would start by using significant amount of host RAM, over time it would release that RAM back to the host O/S. Once I realized what was going on, I did some Google searches and looked up the VMWare settings help, and had a resolution to my issue.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Here are the changes that I made to my laptop and to the VMWare settings to improve performance -&lt;/p&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;h3 class="Heading2"&gt;Disable Memory Page Trimming&lt;/h3&gt;&lt;br /&gt;&lt;p class="Body"&gt;VMware Server uses a memory trimming technique to return unused virtual machine memory to the host machine for other uses. Although trimming usually has little impact on performance and might be needed in low memory situations, the I/O caused by memory trimming can sometimes interfere with disk-oriented workload performance in a guest. To disable memory page trimming, check the&lt;strong&gt; Disable memory page trimming&lt;/strong&gt; check box (Select: VM &amp;gt; Settings &amp;gt; Options &amp;gt; Advanced), and click OK.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Given that I have enough RAM on my laptop, my first step to improve performance was to disable memory trimming for guest VMs.&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;h3 class="Heading2"&gt;Disable real-time anti-virus protection&lt;/h3&gt;&lt;br /&gt;&lt;p class="Body"&gt;Given the size of the VMWare virtual disk files and given that they are continuously being written to, I figured that my real-time anti-virus protection (Symantec AV) was probably not helping any with my disk I/O performance. So, I went ahead and excluded the VMEM (Virtual Memory - .vmem extension) and VMDK (VMWare Virtual Disk - .vmdk extension) files from the real-time scan.&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;h3 class="Heading2"&gt;Disable memory sharing&lt;/h3&gt;&lt;br /&gt;&lt;p class="Body"&gt;When the first two steps did not yield the results I wanted, I did some more searching and stumbled upon this default VMWare feature of page sharing that enables VMWare to save on memory usage if multiple virtual machines are running the same operating system or the same applications. I am not sure how this works in my scenario where I only have 1 virtual machine running at a time, but it certainly appeared to me that VMWare was scaling back its memory usage resulting in unnecessary disk I/O and this seemed like a possible culprit. I disabled memory sharing by adding a setting &lt;em&gt;sched.mem.pshare.enable &lt;/em&gt;in my virtual machine configuration (.vmx) file like this:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;sched.mem.pshare.enable = “FALSE”&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;Well, these 3 settings did the trick for me! No more VMWare performance woes - the guest VM performs adequately without affecting performance of other applications on my host OS! Keep in mind, that you should also look into defragmenting your host disks and also shrinking your virtual disks for the best performance. I had already done these steps before I spent the time to track down the performance issues. Now, my team can go back to adopting the VMWare development virtual machines! &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Link: http://vivekagarwal.wordpress.com/2008/07/08/improving-vmware-server-performance-on-windows-xp/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-4368339984717397596?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/4368339984717397596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=4368339984717397596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4368339984717397596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4368339984717397596'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/09/improving-vmware-server-performance-on.html' title='Improving VMWare Server performance on Windows XP'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-1805929022310465476</id><published>2008-07-30T12:58:00.002+07:00</published><updated>2008-07-30T13:01:03.610+07:00</updated><title type='text'>จะ Remove Package RPM บน Linux ทำอย่างไร</title><content type='html'>หากว่า ต้องการที่จะ Remove Package RPM บน Linux  นั้นให้ทำโดย&lt;br /&gt;1. เข้าไปหน้า Console จากนั้น Run command นี้&lt;br /&gt;# rpm -e &lt;ชื่อของ Package ที่ต้องการ remove&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-1805929022310465476?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/1805929022310465476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=1805929022310465476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1805929022310465476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1805929022310465476'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/07/remove-package-rpm-linux.html' title='จะ Remove Package RPM บน Linux ทำอย่างไร'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-5776145330528365055</id><published>2008-07-28T13:36:00.000+07:00</published><updated>2008-07-28T13:52:48.589+07:00</updated><title type='text'>"com.ibm.db2.jcc.c.SqlException: Invalid operation: result set closed"</title><content type='html'>&lt;p&gt;solution: add this attribute  to datasource&lt;/p&gt;&lt;p&gt;&lt;br /&gt;-&gt; resultSetHoldability      1 &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-5776145330528365055?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/5776145330528365055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=5776145330528365055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5776145330528365055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5776145330528365055'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/07/comibmdb2jcccsqlexception-invalid.html' title='&quot;com.ibm.db2.jcc.c.SqlException: Invalid operation: result set closed&quot;'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-8387817479021153091</id><published>2008-02-20T08:38:00.006+07:00</published><updated>2008-02-20T09:27:42.406+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IBM Portlet'/><category scheme='http://www.blogger.com/atom/ns#' term='log4j'/><category scheme='http://www.blogger.com/atom/ns#' term='WebSphere Portal'/><category scheme='http://www.blogger.com/atom/ns#' term='Portlet'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>จะใช้ Log4j ในพอท์เล็ตยังไง (Adding Logging to a Portlet?)</title><content type='html'>เคยใช้ System.out อยู่พักหนึ่ง รู้สึกว่า Performance มันตกๆ ไงไม่รู้&lt;br /&gt;เลยลองเปลี่ยนมาใช้กับ Log4j ดู อาจจะช่วยได้ (รึป่าว) ^_^!&lt;br /&gt;&lt;br /&gt;มาดูวิธี Set กันนะครับ&lt;br /&gt;&lt;br /&gt;1. ก่อนอื่นก็ต้องไปดาวน์โหลด log4j มาก่อนสิ ไปที่นี่นะ &lt;a href="http://logging.apache.org/log4j/1.2/download.html"&gt;http://logging.apache.org/log4j/1.2/download.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. เมื่อเราโหลดได้แล้ว แตกไฟล์มา จะมีเยอะมากมาย ให้หาไฟล์ นามสกุล .jar&lt;br /&gt;มันจะอยู่นอกสุดอะครับ&lt;br /&gt;เช่น&lt;br /&gt;แตก zip มาจะได้ directory ชื่อ &lt;span style="color:#666600;"&gt;apache-log4j-1.2.15&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666600;"&gt;c:/apache-log4j-1.2.15/&lt;/span&gt;&lt;span style="color:#000099;"&gt;log4j-1.2.15.jar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. นำไฟล์ &lt;span style="color:#000099;"&gt;log4j-1.2.15.jar&lt;/span&gt; ที่ได้ไปวางไว้ใน path /WEB-INF/lib ของ Portlet นะ&lt;br /&gt;&lt;br /&gt;4. จากนั้นสร้างไฟล์ log4j.properties โดยสร้างไฟล์นี้ไว้ ภายใต้ directory นี้&lt;br /&gt;JavaResources/JavaSource&lt;br /&gt;&lt;br /&gt;5. จากนั้นแก้ไขค่าในไฟล์ log4j.properties ตัวอย่างเช่น&lt;br /&gt;&lt;br /&gt;# An example log4j configuration file.&lt;br /&gt;log4j.rootLogger=DEBUG, FILE&lt;br /&gt;log4j.appender.FILE=org.apache.log4j.FileAppender&lt;br /&gt;log4j.appender.FILE.File=C:/log/SSOApplicationPortlet.log&lt;br /&gt;log4j.appender.FILE.Append=true&lt;br /&gt;log4j.appender.FILE.layout=org.apache.log4j.PatternLayout&lt;br /&gt;log4j.appender.FILE.layout.ConversionPattern=[%-d{yyyy-MM-dd HH:mm:ss}] [%37c] %3x - %m%n&lt;br /&gt;&lt;br /&gt;อยากได้รายละเอียดการใช้เพิ่มเติม ไปที่นี่นะครับ&lt;br /&gt;&lt;a href="http://logging.apache.org/log4j/1.2/manual.html"&gt;http://logging.apache.org/log4j/1.2/manual.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6. มาดู Portlet ของเราต่อ เมื่อเราเตรียมการใช้งาน Log4j เสร็จแล้ว เราจะมาดูการเรียกใช้ต่อนะ&lt;br /&gt;&lt;br /&gt;7. ใน Class ที่เราต้องการ Debug หรือ จะเก็บ Log ให้เรา Import อันนี้เข้าไป&lt;br /&gt;&lt;span style="color:#660000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;import&lt;/span&gt; org.apache.log4j.Logger;&lt;br /&gt;&lt;br /&gt;จากนั้น ประกาศตัวแปร Global เพื่อเรียกใช้งาน log ดังนี้&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;private static&lt;/span&gt; Logger &lt;em&gt;&lt;span style="color:#000099;"&gt;logger &lt;/span&gt;&lt;/em&gt;= Logger.getLogger(&lt;span style="color:#006600;"&gt;ชื่อClassPortlet&lt;/span&gt;.class);&lt;br /&gt;&lt;br /&gt;และก็มาถึงการ out out outttttt log กัน อยาก เก็บดู Log ตรงไหน ให้ใช้แบบนี้&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#999999;"&gt;System.out.println("Start doView()");&lt;/span&gt; // ไม่ใช้ละนะ&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;logger.debug("Start doView()"); // &lt;span style="font-family:arial;"&gt;ใช้แบบนี้เอา&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;8. เสร็จแล้วการใช้งาน Log4j ถ้าจะไปดู output ก็ไปดูที่ path ที่เรา Set ไว้ใน log4j.properties นะครับ&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ใช้งานแล้วเป็นยังไงกันมั่ง บอกกันด้วยนะ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-8387817479021153091?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/8387817479021153091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=8387817479021153091' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8387817479021153091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8387817479021153091'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/log4j-how-to-use-log4j-in-portlet.html' title='จะใช้ Log4j ในพอท์เล็ตยังไง (Adding Logging to a Portlet?)'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-5295231090172372862</id><published>2008-02-15T11:41:00.002+07:00</published><updated>2008-02-15T12:12:13.338+07:00</updated><title type='text'>How to set the Linux Host Name?</title><content type='html'>นานๆเปลี่ยนที เลยลืม command อ่ะ -*-&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1 :&lt;/strong&gt; ตรวจสอบ host name ก่อน&lt;br /&gt;using the following commands:  หลายแบบ&lt;br /&gt;#uname -n&lt;br /&gt;#hostname -a&lt;br /&gt;#hostname -s&lt;br /&gt;#hostname -d&lt;br /&gt;#hostname -f&lt;br /&gt;#hostname&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2 :&lt;/strong&gt; กำหนด hosts ใน /etc/hosts&lt;br /&gt;    ถ้าใช้ IP address ที่แจกให้โดย  DHCP server,  ใน/etc/hosts ให้ใส่ค่าตามนี้:&lt;br /&gt;&lt;br /&gt; &lt;span style="color:#cc6600;"&gt;   127.0.0.1 leokit.blogspot.com localhost.localdomain localhost leokit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   ถ้าใช้ static IP address , ใน/etc/hosts ให้ใส่ค่าตามนี้:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc6600;"&gt;    127.0.0.1 localhost.localdomain localhost&lt;br /&gt;    192.168.0.1 leokit.blogspot.com leokit&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc6600;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Step 3 :&lt;/strong&gt; Setting the Host Name using "hostname"&lt;br /&gt;   หลังจากแก้ไขใน hosts ไฟล์แล้ว ให้เรา run คำสั่งนี้&lt;br /&gt;&lt;span style="color:#993300;"&gt;   #hostname leokit.blogspot.com&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Step 4 :&lt;/strong&gt; ตรวจสอบ ใน /etc/HOSTNAME&lt;br /&gt; &lt;span style="color:#993300;"&gt;  leokit.blogspot.com&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Step 5 :&lt;/strong&gt; ตรวจสอบ ใน /etc/sysconfig/network&lt;br /&gt; ถ้าใช้ static IP address , ใน/etc/sysconfig/network ให้ใส่ค่าตามนี้:&lt;br /&gt;&lt;span style="color:#993300;"&gt;  NETWORKING=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;  HOSTNAME="leokit.blogspot.com"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 6 :&lt;/strong&gt; ตรวจสอบ ใน /proc/sys/kernael/hostname&lt;br /&gt;   ตรวจสอบโดยใช้ command&lt;br /&gt;&lt;span style="color:#993300;"&gt;   #cat /proc/sys/kernel/hostname&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;&lt;/span&gt;&lt;br /&gt;   หลังจาก Set แล้วให้ทำการ reboot หรือจะ run คำสั่งนี้ก็ได้นะ&lt;br /&gt;&lt;span style="color:#993300;"&gt;   echo leokit.blogspot.com &gt;  /proc/sys/kernel/hostname&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-5295231090172372862?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/5295231090172372862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=5295231090172372862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5295231090172372862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/5295231090172372862'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/how-to-set-linux-host-name.html' title='How to set the Linux Host Name?'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-1172381839463551078</id><published>2008-02-14T15:32:00.010+07:00</published><updated>2008-10-07T15:53:51.685+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='CD'/><category scheme='http://www.blogger.com/atom/ns#' term='ISO'/><category scheme='http://www.blogger.com/atom/ns#' term='mount ISO images'/><category scheme='http://www.blogger.com/atom/ns#' term='DVD'/><title type='text'>วิธีการทำ RedHat 8.0 CD iso เป็น DVD iso</title><content type='html'>มาเริ่มกันเลยนะ&lt;br /&gt;ทำเป็น CD ใช้ตั้ง 5 แผ่น เลยหาวิธีแปลงเป็น DVD เอาดีกว่า&lt;br /&gt;&lt;br /&gt;&lt;u&gt;ขั้นตอนทำ&lt;/u&gt;&lt;br /&gt;1. เตรียมพื้นที่สำหรับวาง Image ทั้ง CD และที่จะทำเป็น DVD iso ไว้สัก 5-6 GB แล้วกัน (เหลือดีกว่า ขาด)&lt;br /&gt;&lt;br /&gt;2. สร้าง Directories เพื่อที่จะได้ใช้ไว้ mount iso CD linux ทั้ง 5 แผ่น&lt;br /&gt;จะสร้างทีก็ใช้ command นี้ละกัน (หมายเหตุ เพื่อไม่ให้งง ก็ไม่ต้องย้าย path ไปไหน)&lt;br /&gt;#mkdir psyche-i386-disc{&lt;span style="color:#6600cc;"&gt;1,2,3,4,5&lt;/span&gt;} psyche-docs&lt;br /&gt;เราก็จะได้ directories psyche-i386-disc1 ถึง psyche-i386-disc5 เพียงแค่กด Enter ครั้งเดียว ^0^&lt;br /&gt;&lt;br /&gt;3. ทำการ mount ISO images ซะ&lt;br /&gt;#mount -o ro,loop LinuxISO/psyche-i386-disc1.iso psyche-i386-disc1&lt;br /&gt;#mount -o ro,loop LinuxISO/psyche-i386-disc2.iso psyche-i386-disc2&lt;br /&gt;#mount -o ro,loop LinuxISO/psyche-i386-disc3.iso psyche-i386-disc3&lt;br /&gt;#mount -o ro,loop LinuxISO/psyche-i386-disc4.iso psyche-i386-disc4&lt;br /&gt;#mount -o ro,loop LinuxISO/psyche-i386-disc5.iso psyche-i386-disc5&lt;br /&gt;&lt;br /&gt;4. copy &lt;span style="color:#cc0000;"&gt;isolinux&lt;/span&gt; กับไฟล์ &lt;span style="color:#cc0000;"&gt;.discinfo&lt;/span&gt; ที่อยู่ใน psyche-i386-disc1 ออกมาไว้ข้างนอก เพราะแก้ใน directory ที่เรา mount ไว้ไม่ได้อะ&lt;br /&gt;#cp -a psyche-i386-disc1/&lt;span style="color:#cc0000;"&gt;isolinux&lt;/span&gt; psyche-i386-disc1/&lt;span style="color:#cc0000;"&gt;.discinfo&lt;/span&gt;&lt;span style="color:#ff0000;"&gt; &lt;strong&gt;.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;**&lt;/strong&gt;อย่าลืม จุด ด้านหลังสุดนะ ให้มัน copy ไว้ path ที่เราอยู่เลย&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;5. ได้ละ ไปแก้ไฟล์ที่ชื่อว่า &lt;span style="color:#cc0000;"&gt;.discinfo&lt;/span&gt; ก่อนประมาณบรรทัดที่ 4 &lt;/span&gt;&lt;br /&gt;ค่าปกติมันจะมีแต่ 1&lt;br /&gt;ให้ทำการเติม 1,2,3,4,5 ตามแผ่นที่เราอยากจะสร้าง จะเอา 1,2,3 ก็ได้&lt;br /&gt;save แล้วปิดซะ&lt;br /&gt;&lt;br /&gt;6. ถึงนั้นตอนการสร้าง ISO ไฟล์ แล้ว command ยาวมาก ให้ใช้เครื่องหมาย \ เป็นตัวต่อด้านหลังนะ&lt;br /&gt;&lt;br /&gt;# &lt;span style="color:#006600;"&gt;mkisofs -o psyche-i386-dvd.iso \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;-b isolinux/isolinux.bin -c isolinux/boot.cat \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;-no-emul-boot -boot-load-size 4 -boot-info-table \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;-R -m TRANS.TBL \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;-x psyche-i386-disc1/.discinfo -x psyche-i386-disc1/isolinux \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;-graft -points psyche-i386-disc1 .discinfo=.discinfo isolinux/=isolinux \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;RedHat/=psyche-i386-disc2/RedHat RedHat/=psyche-i386-disc3/RedHat \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;SRPMS/=psyche-i386-disc3/SRPMS SRPMS/=psyche-i386-disc4/SRPMS \ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;SRPMS/=psyche-i386-disc5/SRPMS docs/=psyche-docs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------- ถ้าเป็น AS4 ใช้แบบนี้นะ&lt;br /&gt;# &lt;span style="color:#990000;"&gt;mkisofs -o rh4up3-i386-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -x rh4-i386-disc1/.discinfo -x rh4-i386-disc1/isolinux -graft -points rh4-i386-disc1 .discinfo=.discinfo isolinux/=isolinux RedHat/=rh4-i386-disc2/RedHat RedHat/=rh4-i386-disc3/RedHat SRPMS/=rh4-i386-disc3/RedHat/RPMS SRPMS/=rh4-i386-disc4/RedHat/RPMS docs/=rh4-docs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7.จากนั้นก็ทำการ ไรท์ DVD ตามปกติเลย&lt;br /&gt;&lt;br /&gt;*** จะ un-mount ใช้ คำสั่งนี้&lt;br /&gt;&lt;br /&gt;#umount &lt;span style="color:#990000;"&gt;/media/iso&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-1172381839463551078?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/1172381839463551078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=1172381839463551078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1172381839463551078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/1172381839463551078'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/redhat-80-cd-iso-dvd-iso.html' title='วิธีการทำ RedHat 8.0 CD iso เป็น DVD iso'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-2626882575290817179</id><published>2008-02-08T09:17:00.000+07:00</published><updated>2008-02-08T10:45:35.543+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><category scheme='http://www.blogger.com/atom/ns#' term='How to'/><title type='text'>Step by Step Installation FFMpeg</title><content type='html'>&lt;strong&gt;Step by Step Installation&lt;/strong&gt; ffmpeg&lt;br /&gt;&lt;br /&gt;# wget &lt;a href="http://ffmpeg.mplayerhq.hu/ffmpeg-ex...pshot.tar.bz2"&gt;http://ffmpeg.mplayerhq.hu/ffmpeg-ex...pshot.tar.bz2&lt;/a&gt;&lt;br /&gt;# tar -xjvf ffmpeg-export-snapshot.tar.bz2&lt;br /&gt;# cd ffmpeg-export-XXXXXXX&lt;br /&gt;# ./configure --prefix=/usr/local&lt;br /&gt;# make clean &amp;amp;&amp;amp; make&lt;br /&gt;# make install&lt;br /&gt;# cd ..&lt;br /&gt;# rm -rf ffmpeg*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-2626882575290817179?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/2626882575290817179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=2626882575290817179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2626882575290817179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2626882575290817179'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/step-by-step-installation-of-subversion.html' title='Step by Step Installation FFMpeg'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-8463626876446322740</id><published>2008-02-04T15:30:00.000+07:00</published><updated>2008-02-04T15:36:09.459+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebSphere Portal'/><category scheme='http://www.blogger.com/atom/ns#' term='PUMA API'/><title type='text'>Get 'uid'  by Puma API</title><content type='html'>PUMA API :&lt;br /&gt;&lt;br /&gt;เอาไว้ใช้ จัดการเกี่ยวกับ user หน่ะ&lt;br /&gt;&lt;br /&gt;วันนี้เอาวิธีที่จะดึงข้อมูลของ 'uid' มาฝากนะ มั่วตั้งนาน หาก็ยาก ^0^&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;javax.naming.Context context = new javax.naming.InitialContext();&lt;br /&gt;PortletServiceHome portletServiceHome = (PortletServiceHome) context.lookup("portletservice/com.ibm.portal.um.portletservice.PumaHome");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;if (portletServiceHome != null) {&lt;br /&gt;PumaHome service = (PumaHome) portletServiceHome.getPortletService(PumaHome.class);&lt;br /&gt;PumaController pumaController = service.getController(request);&lt;br /&gt;com.ibm.portal.puma.User user = (com.ibm.portal.puma.User) pumaController.getCurrentUser();&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;userId = user.get("uid").toString();&lt;br /&gt;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;เห็นมะ ได้และ uid&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-8463626876446322740?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/8463626876446322740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=8463626876446322740' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8463626876446322740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/8463626876446322740'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/get-uid-by-puma-api.html' title='Get &apos;uid&apos;  by Puma API'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-2395004293421414491</id><published>2008-02-01T13:04:00.000+07:00</published><updated>2008-02-01T13:28:23.909+07:00</updated><title type='text'>ย้ายข้อมูลไปมาระหว่าง Using DB2 utilities to clone databases across different platforms</title><content type='html'>&lt;p&gt;&lt;span style="font-family:arial;"&gt;จะดึงข้อมูลมา Test บนเครื่องเราซะหน่อย แต่ดันข้าม platform&lt;br /&gt;อ่ะๆ วิธีนี้ใช้ได้ทั้ง Windows&lt;-&gt;Unix นะ&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Linux -&gt; Windows&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;ฝั่ง Linux นะ&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. db2look -d &lt;span style="color:#ff0000;"&gt;dbname &lt;/span&gt;-a -e -l -x -c -o &lt;span style="color:#3366ff;"&gt;dbname.log&lt;/span&gt;&lt;br /&gt;หรือถ้าจะเอาเฉพาะ Table ก็ได้&lt;br /&gt;db2look -d &lt;span style="color:#ff0000;"&gt;dbname&lt;/span&gt; -t &lt;span style="color:#ff0000;"&gt;tablename&lt;/span&gt; -a -e -l -x -c -o dbname.log&lt;br /&gt;&lt;br /&gt;1.1 edit this file *.log change DB name in Script&lt;br /&gt;2. db2move &lt;span style="color:#ff0000;"&gt;dbname&lt;/span&gt; export -aw&lt;br /&gt;หรือระบุ Schema หรือ Table&lt;br /&gt;db2move &lt;span style="color:#ff0000;"&gt;dbname&lt;/span&gt; export -aw -tn &lt;span style="color:#ff0000;"&gt;ชื่อtable&lt;/span&gt; -sn &lt;span style="color:#ff0000;"&gt;ชื่อschema&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;ฝั่ง Windows นะ&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;3. db2 -tvf &lt;span style="color:#3366ff;"&gt;path of file in 1. &lt;/span&gt;&lt;br /&gt;4. db2move &lt;span style="color:#009900;"&gt;newdbname&lt;/span&gt; load &gt; &lt;span style="color:#993399;"&gt;dbname.log&lt;/span&gt; &lt;/p&gt;&lt;strong&gt;*Remark&lt;/strong&gt;&lt;br /&gt;When you transfer file FTP use ASCIIafter import Set Integrity TOO!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-2395004293421414491?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/2395004293421414491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=2395004293421414491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2395004293421414491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2395004293421414491'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/using-db2-utilities-to-clone-databases.html' title='ย้ายข้อมูลไปมาระหว่าง Using DB2 utilities to clone databases across different platforms'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-3210553261494321272</id><published>2008-02-01T12:52:00.000+07:00</published><updated>2008-02-01T12:59:48.982+07:00</updated><title type='text'>มาบอกอะไรตอนนี้ - ADD new Column to Table created.</title><content type='html'>สร้าง Table เสร็จไปละ&lt;br /&gt;แต่อยากจะขอเก็บฟิลด์ข้อมูลเพิ่ม&lt;br /&gt;&lt;br /&gt;ข้อมูลก็ใส่หมดละ ทำไงดีละนี่&lt;br /&gt;&lt;br /&gt;หุหุ -*-&lt;br /&gt;&lt;br /&gt;ทำตามนี่นะ&lt;br /&gt;เช่น จะเพิ่ม ฟิลด์ SEX เข้าไปงี้&lt;br /&gt;&lt;br /&gt;ALTER TABLE &lt;span style="color:#993399;"&gt;&lt;ชื่อ table&gt;&lt;/span&gt;&lt;br /&gt;  ADD &lt;span style="color:#ff0000;"&gt;SEX&lt;/span&gt; &lt;span style="color:#3333ff;"&gt;INTEGER &lt;/span&gt;&lt;br /&gt;  ADD &lt;span style="color:#ff0000;"&gt;ชื่อฟิลด์ใหม่&lt;/span&gt; &lt;span style="color:#3333ff;"&gt;&lt;ชนิดข้อมูล&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;แค่นี้เอง&lt;br /&gt;ลองๆดูนะจ๊ะ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-3210553261494321272?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/3210553261494321272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=3210553261494321272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3210553261494321272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/3210553261494321272'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/02/add-new-column-to-table-created.html' title='มาบอกอะไรตอนนี้ - ADD new Column to Table created.'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-119782494564965458</id><published>2008-01-30T10:33:00.000+07:00</published><updated>2008-01-30T10:39:34.296+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FLV'/><category scheme='http://www.blogger.com/atom/ns#' term='JW FLV MEDIA PLAYER'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>การใส่ FLV ไว้บนเว็บแบบ ง่ายๆ</title><content type='html'>แหม๋มๆ หาวิธีตั้งนาน จะทำแบบ Advance ก็ยังไม่เสร็จ&lt;br /&gt;เลยไปเจอวิธีแบบง่ายๆมา ของฟรีซะด้วยอ่ะ&lt;br /&gt;&lt;br /&gt;ใช้เจ้านี่เอา JW FLV MEDIA PLAYER  &lt;a href="http://www.jeroenwijering.com/upload/mediaplayer-3-14.zip"&gt;กดโหลดได้ที่นี่&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;วิธีใช้ก็ง่ายๆ&lt;br /&gt;1. เตรียมไฟล์ .flv ซะก่อนนะ ถ้าเป็นไฟล์อื่นก็หาโปรแกรมแปลงซะเน่อ&lt;br /&gt;2. ก็ สร้าง HTML มา 1 หน้า แล้วดูตัวอย่างการใช้งานจากไฟล์ที่โหลด&lt;br /&gt;3. upload แค่นั้นเอง ^0^ ง่ายเนอะ&lt;br /&gt;&lt;br /&gt;แต่มันเป็น Streaming ไหมหว่า -*-&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-119782494564965458?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/119782494564965458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=119782494564965458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/119782494564965458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/119782494564965458'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/01/flv.html' title='การใส่ FLV ไว้บนเว็บแบบ ง่ายๆ'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-4013970176748171819</id><published>2008-01-29T07:59:00.006+07:00</published><updated>2008-10-07T09:55:28.563+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ulimit'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>วิธีการ Set ULIMIT ใน UNIX</title><content type='html'>แก้ Config ของ OS แก้ไขใน&lt;br /&gt;1. /etc/pam.d/login เพิ่ม&lt;br /&gt;session required /lib/security/pam_limits.so&lt;br /&gt;&lt;br /&gt;2. /etc/pam.d/sshd เพิ่ม&lt;br /&gt;session required /lib/security/pam_limits.so&lt;br /&gt;&lt;br /&gt;3. /etc/security/limits.conf เพิ่ม&lt;br /&gt;* - nofile 10240&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Restart server&lt;br /&gt;*หมายเหตุ* ก่อนหน้าที่ทำการแก้ไข open file = 1024&lt;br /&gt;&lt;br /&gt;-----------------------------------------&lt;br /&gt;ดูค่า Config ทั้งหมด&lt;br /&gt;# ulimit -a&lt;br /&gt;&lt;br /&gt;กำหนดค่า Open file&lt;br /&gt;#ulimit -n 2048&lt;br /&gt;&lt;br /&gt;ดูว่าตอนนี้มีไฟล์เปิดอยู่เท่าไหร่กัน&lt;br /&gt;# lsof grep REG wc -l&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-4013970176748171819?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/4013970176748171819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=4013970176748171819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4013970176748171819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/4013970176748171819'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/01/set-ulimit-unix.html' title='วิธีการ Set ULIMIT ใน UNIX'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2265244478095191349.post-2328059933122929619</id><published>2008-01-28T23:17:00.000+07:00</published><updated>2008-01-30T10:40:49.052+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ulimit'/><category scheme='http://www.blogger.com/atom/ns#' term='WebSphere Portal'/><title type='text'>'Unable to compile class for JSP' error message occurs at runtime</title><content type='html'>ปัญหาที่เจอใน WebSphere Portal Server อะครับ&lt;br /&gt;Search มาใส่ไว้ จะได้หาง่ายๆ ^_^&lt;br /&gt;อ่อ แก้ ulimit ใน profile root เลยง่ายกว่านะ&lt;br /&gt;&lt;br /&gt;ทางที่ดีนะ Up Fix work สุดๆ&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;br /&gt;An "Unable to compile class for JSP" error is thrown at runtime. See the complete error message below.&lt;br /&gt;org.apache.jasper.JasperException: Unable to compile class for JSP/usr/&lt;path&gt;/temp/&lt;node_name&gt;/WebSphere_Portal/&lt;wpf_application_ear&gt;/&lt;wpf_application.war&gt;/genjsp/&lt;any_java_&gt;.java:&lt;line_number&gt;: error while writing &lt;path&gt;: /usr/&lt;path&gt; /temp/&lt;node_name&gt;/WebSphere_Portal/&lt;wpf_application_ear&gt;/&lt;wpf_application.war&gt;/genjsp/&lt;any_class_&gt;.class (Too many open files)(source unavailable)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cause&lt;/strong&gt;&lt;br /&gt;The exception above is thrown when the operating system (OS) and JVM run out of file descriptors. File descriptors are unique to processes to identify open files of different types, including sockets or pipes. Exceptions indicating too many open files are thrown when the OS runs short of file descriptors.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br /&gt;There is a ulimit parameter in Linux that controls the number of files/connections that can be opened. You can find the current ulimit setting by entering the following command (ulimit -n). Ensure that this is set to at least 8192. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2265244478095191349-2328059933122929619?l=leokit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leokit.blogspot.com/feeds/2328059933122929619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2265244478095191349&amp;postID=2328059933122929619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2328059933122929619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2265244478095191349/posts/default/2328059933122929619'/><link rel='alternate' type='text/html' href='http://leokit.blogspot.com/2008/01/unable-to-compile-class-for-jsp-error.html' title='&apos;Unable to compile class for JSP&apos; error message occurs at runtime'/><author><name>Leokit</name><uri>http://www.blogger.com/profile/08680516677897584642</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-mcI4hZ_Kfsc/TkGdg4Vv8uI/AAAAAAAAAkk/kqRVtUSUHd8/s220/003.JPG'/></author><thr:total>0</thr:total></entry></feed>
