<?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-7251807501075871845</id><updated>2011-12-29T23:19:51.541-08:00</updated><category term='PHP'/><category term='Cisco'/><category term='Apache'/><category term='MySQL'/><category term='Windows'/><category term='Netscaler'/><category term='Suse'/><category term='Linux'/><title type='text'>Knowledge Addict</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-3756270548716929235</id><published>2011-12-29T20:27:00.000-08:00</published><updated>2011-12-29T23:15:32.783-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Netscaler'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Transfer file via tftp for Cisco, Netscaler and Linux box</title><content type='html'>Once the TFTP server installed. We have to start do some test to perform the backup..&lt;br /&gt;&lt;div&gt;Here I do face some error or failure when transfering.. &lt;/div&gt;&lt;div&gt;Do some twit and tune around and here the some way to do it..&lt;/div&gt;&lt;div&gt;Do advise most of the information do plug from some other blog.. &lt;/div&gt;&lt;div&gt;Appreciate for their solution and option..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml"&gt;Cisco Backup&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.netscalerkb.com/netscaler-tricks-and-guides/netscaler-automated-backup/"&gt;Netscaler Backup&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now... let's get back to business..&lt;/div&gt;&lt;div&gt;Do notes, my tftp server IP is 192.168.1.250&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;1. Backup for Cisco devices...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Cisco#write net&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;This command has been replaced by the command:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;         'copy system:/running-config &lt;url&gt;'&lt;/url&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Address or name of remote host []? 192.168.1.250&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Destination filename [ cisco-config ]? cisco-config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Write file tftp://192.168.1.250/cisco-config? [confirm]y!! [OK]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Cisco#&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;2. Backup for Netscaler devices..&lt;/span&gt;&lt;/div&gt;&lt;div&gt;For the netscaler devices, if do not have any function for tftp, then required to login to shell mode of the devices. From there, we required to write 2 script for the backup. &lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;i. Create a folder to store backup script.&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="font-style: italic; white-space: pre;"&gt; &lt;/span&gt;mkdir /var/backup&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;ii. create Script backup.sh - backup all the configuration, license and ssl certificate&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="font-style: italic; white-space: pre;"&gt; &lt;/span&gt;#!/bin/sh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;cd /nsconfig&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;tar -zcf /tmp/ns-backup.tar ns.conf license/ ssl/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;cd /tmp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;tftp &amp;lt; /var/backup/tftp.cmd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;rm ns-backup.tar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;iii. Create Script tftp.cmd - for run the tftp command&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;connect 192.168.1.250&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;binary&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;put ns-backup.tar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;quit&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;iv. If intent to perform the backup daily, can consider to add a crontab for the script run base on your preference time.&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;3. Backup for Linux Box..&lt;/span&gt;&lt;/div&gt;&lt;div&gt;For this option, I do face some error such as Transfer timed out or nothing transfer. Therefore if face some of the issue, might try to perform some tuning on the client machine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;i. At the client machine add the ip_conntrack_tftp&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;span style="color: red;"&gt;modprobe ip_conntrack_tftp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ii. Then run tftp to put the file into the server.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;root@ client[~]# tftp 192.168.1.250&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;tftp&amp;gt; put my.cnf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;tftp&amp;gt; quit&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If intent to do some auto backup, do advise use the same solution as suggest on Netscaler Backup solution.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-3756270548716929235?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/3756270548716929235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=3756270548716929235&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/3756270548716929235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/3756270548716929235'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2011/12/transfer-file-via-tftp-for-cisco.html' title='Transfer file via tftp for Cisco, Netscaler and Linux box'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-5346857935605164139</id><published>2011-12-29T19:46:00.000-08:00</published><updated>2011-12-29T23:17:16.265-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Install TFTP Server on CentOS</title><content type='html'>Recently did some new installation on CentOS 5.6 machine with TFTP server..&lt;br /&gt;&lt;div&gt;For more information regarding TFTP, kindly refer to the following link..&lt;/div&gt;&lt;div&gt;&lt;a href="http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol"&gt;TFTP??&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My main reason to build a tftp server due to perform some backup server for my Cisco and Netscaler devices..&lt;/div&gt;&lt;div&gt;Been google all day long and at last found few nice written and well explain site that able complete my task..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here are the steps... *sorry if my English is written in bad way..@@&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. do install tftp server, it will run together with xinetd services. &lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;yum install tftp-server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. move the tftpboot directory for your own easy maintain purpose. I used to located all my datafile at /var/lib. So will run the command as..&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;mv /tftpboot/ /var/lib/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Change the ownership and folder permission for tftpboot. It will run as nobody user with permission 777..&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;chown -R nobody:nobody /var/lib/tftpboot/ &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;chmod 777 /var/lib/tftpboot/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Edit the tftp file at /etc/xinetd.d/tftp&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="font-style: italic; white-space: pre;"&gt; &lt;/span&gt;&lt;span style="color: red;"&gt;vi /etc/xinetd.d/tftp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then add and edit the file to have same line..&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;service tftp &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{ &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;socket_type             = dgram &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;protocol                = udp &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;wait                    = yes &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;user                    = root&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;        server                  = /usr/sbin/in.tftpd &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;server_args             = -c -s /var/lib/tftpboot &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;disable                 = no &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;per_source              = 11 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;cps                     = 100 2 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;flags                   = IPv4 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div&gt;For the server_args, change the path to your tftpboot location. Add -c to able creating new file if/no file exist on the tftp server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Start the xinetd service&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;service xinetd start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6. Able to see the port 69 exist when running &lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;netstat -ntulp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7. Add iptables policy to allow port 69 udp.&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-A RH-Firewall-1-INPUT -s (TFTP Subnet) -m udp -p udp --dport 69 -j ACCEPT&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;That all.. Can try do some file transfer from the client to server..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Will continue in next post.. how the transfer can be done from Cisco, Netscaler and Linux machine to the TFTP Server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-5346857935605164139?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/5346857935605164139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=5346857935605164139&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5346857935605164139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5346857935605164139'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2011/12/install-tftp-server-on-centos.html' title='Install TFTP Server on CentOS'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-1971053616771823679</id><published>2011-09-09T02:00:00.001-07:00</published><updated>2011-12-29T23:19:51.551-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Change UserID (uid) and GroupID (gid) in Linux</title><content type='html'>In case, required to change certain user uid and gid in Linux. We can editing the /etc/passwd will be sufficient. But going to face some serious issue on the file permission which been associate with the user.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For example, changing the uid and gid for mysql user daemon. May face MySQL directory not working or cant start the mysql services. Same applied to apache or whatever services daemon.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, here the step can use to solve all the headache.&lt;/div&gt;&lt;div&gt;Existing zabbix user uid and gid from /etc/passwd&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;zabbix:x:1008:1008::/home/zabbix:/bin/bash&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;New uid and gid for zabbix is 300:300&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Change the uid and gid:&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;groupmod -g &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;300&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;zabbix&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;usermod -u 300 -g 300 &lt;/span&gt;zabbix&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Find all directory and change to new uid and gid:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;find / -user 1008 -print0 | xargs -0 chown -h 300  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;find / -group 1008 -print0 | xargs -0 chgrp -h 300&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That all.. job done.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;p.s: Credit go to &lt;a href="http://www.cyberciti.biz/faq/howto-change-rename-user-name-id/"&gt;&lt;span class="Apple-style-span"&gt;http://www.cyberciti.biz/faq/howto-change-rename-user-name-id/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-1971053616771823679?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/1971053616771823679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=1971053616771823679&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/1971053616771823679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/1971053616771823679'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2011/09/change-userid-and-groupid-in-linux.html' title='Change UserID (uid) and GroupID (gid) in Linux'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-5991095382017308653</id><published>2010-06-01T00:10:00.001-07:00</published><updated>2010-06-01T00:17:38.174-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Configure Cisco Router</title><content type='html'>Last time in the first post, Lock had  explained configuration for cisco router setting.&lt;br /&gt;&lt;br /&gt;Now I do a simple post with step only..&lt;br /&gt;Mostly the ISP will assign some information such as:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Serial IP : 123.123.123.121&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Serial Netmask : 255.255.255.252 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;LAN IP :  58.123.111.97 until 58.123.111.126&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;LAN Netmask : 255.255.255.224 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Default gateway (IP Route) : 202.188.129.113 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then the setup will be:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;en&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;conf t&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;hostname &lt;span style="color: rgb(51, 102, 255);"&gt;routername&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;username &lt;span style="color: rgb(51, 102, 255);"&gt;routeruser&lt;/span&gt; password 0 &lt;span style="color: rgb(51, 102, 255);"&gt;routerpassword&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;line vty 0 4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;login local&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;int &lt;span style="color: rgb(51, 102, 255);"&gt;fast 0/0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip address &lt;span style="color: rgb(51, 102, 255);"&gt;192.168.1.1 255.255.255.0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip nat inside&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;no shutdown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;int&lt;span style="color: rgb(51, 102, 255);"&gt; se 0/1/0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip address &lt;span style="color: rgb(51, 102, 255);"&gt;123.123.123.121 255.255.255.252&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip nat outside&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;no shutdown&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip route 0.0.0.0 0.0.0.0 &lt;span style="color: rgb(51, 102, 255);"&gt;123.123.123.122&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip nat pool &lt;span style="color: rgb(51, 102, 255);"&gt;public 58.123.111.97 58.123.111.97&lt;/span&gt; prefix-length &lt;span style="color: rgb(51, 102, 255);"&gt;27&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip nat inside source list &lt;span style="color: rgb(51, 102, 255);"&gt;private&lt;/span&gt; pool &lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; overload&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ip access-list standard &lt;span style="color: rgb(51, 102, 255);"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;permit &lt;span style="color: rgb(51, 102, 255);"&gt;192.168.1.0 0.0.0.255&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;copy run start&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-5991095382017308653?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/5991095382017308653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=5991095382017308653&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5991095382017308653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5991095382017308653'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/06/configure-cisco-router.html' title='Configure Cisco Router'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-4248606053227402322</id><published>2010-05-31T23:45:00.000-07:00</published><updated>2010-05-31T23:59:09.781-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Reset cisco router to factory default</title><content type='html'>Sometimes.. you may forget the password for cisco router..&lt;br /&gt;or prefer set back to factory default setting..&lt;br /&gt;&lt;br /&gt;Then can use this way to reset back..&lt;br /&gt;&lt;br /&gt;1. Connect to the cisco router using hyper terminal..&lt;br /&gt;2. Restart the router..&lt;br /&gt;3. Once see booting, press&lt;br /&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;Ctrl + break&lt;/span&gt;&lt;br /&gt;4. you will access to RONMON&lt;br /&gt;5. In ronmon, type&lt;br /&gt;ronmon 1&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;confreg 0x2142&lt;/span&gt;&lt;br /&gt;6. Hit enter and&lt;br /&gt;ronmon 2&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;reset&lt;/span&gt;&lt;br /&gt;7. Wait the router boot, then press "&lt;span style="color: rgb(255, 0, 0);"&gt;n&lt;/span&gt;" and enter, when asked to enter dialogue wizard.&lt;br /&gt;8. Then start tpe the following command&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;enable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;conf t&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;config-register 0x2102&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;write erase&lt;/span&gt;&lt;br /&gt;&lt;enter&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;enter&gt;&lt;/enter&gt;&lt;/span&gt;press enter&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;reload&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9. That all, you will see the router in factory default setting&lt;br /&gt;&lt;br /&gt;Tested on Router 1841.&lt;/enter&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-4248606053227402322?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/4248606053227402322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=4248606053227402322&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/4248606053227402322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/4248606053227402322'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/05/reset-cisco-router-to-factory-default.html' title='Reset cisco router to factory default'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-2777055686561431066</id><published>2010-05-24T01:53:00.001-07:00</published><updated>2010-05-24T03:11:19.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Suse'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>rc.local in Suse</title><content type='html'>Suse do not have any rc.local script..&lt;br /&gt;Which this script useful is..&lt;br /&gt;In RedHat, after the init start, it will invoke the command in rc.local..&lt;br /&gt;It is very useful which almost same function with startup in windows..&lt;br /&gt;&lt;br /&gt;I had do some google.. and turn out..&lt;br /&gt;This link is a lot helpful..&lt;br /&gt;&lt;a href="http://forums.opensuse.org/archives/sf-archives/archives-programming-scripting/317339-there-no-rc-local.html"&gt;HERE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. create a new file named rclocal at /etc/init.d/&lt;br /&gt;  &lt;span style="color: rgb(255, 0, 0);"&gt;vi /etc/init.d/rclocal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Then add the the following in the beginning script..&lt;br /&gt;  &lt;span style="color: rgb(255, 0, 0);"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   ### BEGIN INIT INFO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Provides: rclocal&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Required-Start: $network $remote_fs&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Required-Stop: $network $remote_fs&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Default-Start: 3 5&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Default-Stop: 0 1 2 6&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   # Description: whatever&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   ### END INIT INFO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Change mode for the file&lt;br /&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;chmod 755 /etc/init.d/rclocal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. add service&lt;br /&gt;  &lt;span style="color: rgb(255, 0, 0);"&gt;chkconfig --add rclocal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thank all..&lt;br /&gt;Then add the service you need start at the end of the file.&lt;br /&gt;&lt;br /&gt;Below is the sample rclocal file I created..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S_pPbVcsnNI/AAAAAAAAAtE/TOMkAcnvmwk/s1600/rclocal.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 115px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S_pPbVcsnNI/AAAAAAAAAtE/TOMkAcnvmwk/s320/rclocal.jpg" alt="" id="BLOGGER_PHOTO_ID_5474775628054830290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;There is some reason the file I created is rclocal instead of rc.local..&lt;br /&gt;In the man innserv, it does not allow files with .local in used..&lt;br /&gt;The error will appear&lt;br /&gt;   &lt;span style="color: rgb(255, 0, 0);"&gt;insserv: script name rc.local is not valid, skipped!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-2777055686561431066?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/2777055686561431066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=2777055686561431066&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2777055686561431066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2777055686561431066'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/05/rclocal-in-suse.html' title='rc.local in Suse'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3EhIwX2gX0c/S_pPbVcsnNI/AAAAAAAAAtE/TOMkAcnvmwk/s72-c/rclocal.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-5161886030425424066</id><published>2010-05-14T00:42:00.001-07:00</published><updated>2010-05-14T00:42:34.033-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 PHP ssh2 extension on PHP5, Apache2</title><content type='html'>Here is the way for the installation of ssh2 on php5 and apache2..&lt;br /&gt;&lt;a href="http://www.php.net/manual/en/book.ssh2.php"&gt;Here&lt;/a&gt; is the document about the ssh2 php..&lt;br /&gt;Try search around the google..Try doing the compilation..&lt;br /&gt;It is working..So here some guide can be use for the installation&lt;br /&gt;&lt;br /&gt;Requirements..Installer file for &lt;a href="http://pecl.php.net/package/ssh2"&gt;ssh2&lt;/a&gt; and &lt;a href="http://sourceforge.net/projects/libssh2/"&gt;libssh2&lt;/a&gt;&lt;br /&gt;1. "&lt;span style="color: rgb(255, 0, 0);"&gt;wget http://pecl.php.net/get/ssh2-0.11.0.tgz&lt;/span&gt;"&lt;br /&gt;2. "&lt;span style="color: rgb(255, 0, 0);"&gt;wget http://downloads.sourceforge.net/project/libssh2/old-libssh2-releases/1.1/libssh2-1.1.tar.gz?use_mirror=nchc&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;First, install libssh2..&lt;br /&gt;1. &lt;span style="color: rgb(255, 0, 0);"&gt;tar zxf libssh2-1.1.tar.gz&lt;br /&gt;&lt;/span&gt;2. &lt;span style="color: rgb(255, 0, 0);"&gt;cd libssh2-1.1&lt;/span&gt;&lt;br /&gt;3. &lt;span style="color: rgb(255, 0, 0);"&gt;./configure&lt;/span&gt;&lt;br /&gt;4. &lt;span style="color: rgb(255, 0, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;5. &lt;span style="color: rgb(255, 0, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Second, install ssh2..&lt;br /&gt;1. &lt;span style="color: rgb(255, 0, 0);"&gt;tar zxf ssh2-0.11.0.tgz&lt;/span&gt;&lt;br /&gt;2. &lt;span style="color: rgb(255, 0, 0);"&gt;cd ssh2-0.11.0&lt;br /&gt;&lt;/span&gt;3. &lt;span style="color: rgb(255, 0, 0);"&gt;/usr/local/php/bin/phpize&lt;/span&gt;&lt;br /&gt;4. &lt;span style="color: rgb(255, 0, 0);"&gt;./configure --with-ssh2 --with-php-config=/usr/local/php/bin/php-config&lt;/span&gt;&lt;br /&gt;5. &lt;span style="color: rgb(255, 0, 0);"&gt;make&lt;/span&gt;&lt;br /&gt;6. &lt;span style="color: rgb(255, 0, 0);"&gt;make install&lt;/span&gt;&lt;br /&gt;7. make note on the "&lt;span style="font-style: italic;"&gt;Installing shared extensions:&lt;/span&gt;" directory path which need in below step&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/S-z68xJnj8I/AAAAAAAAAs8/hNbebb3I2Po/s1600/ssh2-libfile.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 30px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/S-z68xJnj8I/AAAAAAAAAs8/hNbebb3I2Po/s320/ssh2-libfile.jpg" alt="" id="BLOGGER_PHOTO_ID_5471023569241083842" border="0" /&gt;&lt;/a&gt;Third, change the php.ini file and restart apache..&lt;br /&gt;1. Edit the &lt;span style="font-style: italic;"&gt;php.ini&lt;/span&gt; file&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;vi /usr/local/php/lib/php.ini&lt;/span&gt;&lt;br /&gt;2. Add this column to the end of &lt;span style="font-style: italic;"&gt;php.ini&lt;/span&gt; file..&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;[ssh2]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;extension_dir= &lt;span style="font-style: italic; color: rgb(0, 0, 153);"&gt;ssh2 installed library path&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;extension=ssh2.so&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S-z68H4fEvI/AAAAAAAAAss/wey75RDk-ss/s1600/phpini.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 35px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S-z68H4fEvI/AAAAAAAAAss/wey75RDk-ss/s320/phpini.jpg" alt="" id="BLOGGER_PHOTO_ID_5471023558163370738" border="0" /&gt;&lt;/a&gt;3. save and exit the &lt;span style="font-style: italic;"&gt;php.ini&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;ctrl + c&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;:wq&lt;/span&gt;&lt;br /&gt;4. restart the apache2&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;/usr/local/apache2/bin/apachectl restart&lt;/span&gt;       &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153); font-style: italic;"&gt;# if apache cannot be down..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;        /usr/local/apache2/bin/apachectl graceful      &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check the phpinfo, will see ssh2 is enabled..&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S-z68dlS5eI/AAAAAAAAAs0/l2re7CDMxfA/s1600/phpinfo.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 120px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S-z68dlS5eI/AAAAAAAAAs0/l2re7CDMxfA/s320/phpinfo.jpg" alt="" id="BLOGGER_PHOTO_ID_5471023563988461026" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-5161886030425424066?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/5161886030425424066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=5161886030425424066&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5161886030425424066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/5161886030425424066'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/05/installation-php-ssh2-extension-on-php5.html' title='Installation PHP ssh2 extension on PHP5, Apache2'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3EhIwX2gX0c/S-z68xJnj8I/AAAAAAAAAs8/hNbebb3I2Po/s72-c/ssh2-libfile.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-427471171272580325</id><published>2010-05-11T20:18:00.000-07:00</published><updated>2010-05-11T20:22:57.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Clear PuTTY host-key</title><content type='html'>When a server keep rebuild over and over..&lt;br /&gt;and try access from PuTTY time from time with same server IP and different Host..&lt;br /&gt;May face problem such as..&lt;br /&gt;&lt;br /&gt;The password keep wrong.. seem cant be authenticate..&lt;br /&gt;If face this problem.. Try this..&lt;br /&gt;&lt;br /&gt;1. Try use another SSH software to ssh to the server.&lt;br /&gt;2. a. If cannot, means the server setting not done properly..&lt;br /&gt;    b. If CAN, then clear putty RSA and Host-Key&lt;br /&gt;&lt;br /&gt;PuTTY host key can be found at&lt;br /&gt;1. Run &gt; regedit&lt;br /&gt;2. GOTO "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY"&lt;br /&gt;3. If not mind reset all the setting.. Just delete the  "SimonTatham".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-427471171272580325?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/427471171272580325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=427471171272580325&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/427471171272580325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/427471171272580325'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/05/clear-putty-host-key.html' title='Clear PuTTY host-key'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-3683943450278828248</id><published>2010-03-24T20:32:00.000-07:00</published><updated>2010-03-24T20:50:54.461-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Disable SELinux</title><content type='html'>Error such as:&lt;br /&gt;&lt;br /&gt;audit(1269456413.197:0): avc:  denied  { create } for  pid=1850 exe=/sbin/syslogd scontext=user_u:system_r:syslogd_t tcontext=user_u:system_r:syslogd_t tclass=netlink_route_socket&lt;br /&gt;audit(1269456413.197:0): avc:  denied  { create } for  pid=1850 exe=/sbin/syslogd scontext=user_u:system_r:syslogd_t tcontext=user_u:system_r:syslogd_t tclass=netlink_route_socket&lt;br /&gt;audit(1269458951.691:0): avc:  granted  { setenforce } for  pid=3659 exe=/bin/bash scontext=root:system_r:unconfined_t tcontext=system_u:object_r:security_t tclass=security&lt;br /&gt;&lt;br /&gt;which are:&lt;br /&gt;audit ( ): avc: denied&lt;br /&gt;&lt;br /&gt;is cause by selinux policy..&lt;br /&gt;&lt;br /&gt;SELINUX= can take one of these three values:&lt;br /&gt;                     &lt;span style="color: rgb(255, 0, 0);"&gt;enforcing&lt;/span&gt; - SELinux security policy is enforced.&lt;br /&gt;                     &lt;span style="color: rgb(255, 0, 0);"&gt;permissive&lt;/span&gt; - SELinux prints warnings instead of enforcing.&lt;br /&gt;                     &lt;span style="color: rgb(255, 0, 0);"&gt;disabled&lt;/span&gt; - SELinux is fully disabled.&lt;br /&gt;&lt;br /&gt;Permanent disable selinux:&lt;br /&gt;            &lt;span style="color: rgb(255, 0, 0);"&gt; vi /etc/selinux/config&lt;/span&gt;&lt;br /&gt; edit at the SELINUX value:&lt;br /&gt;             &lt;span style="color: rgb(255, 0, 0);"&gt;SELINUX=disabled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The value of the SELINUX can be enforcing, permissive or disabled. If by defaults when doing the installation, the SELINUX is enable, it will be enforcing.&lt;br /&gt;&lt;br /&gt;For temporary disable the selinux:&lt;br /&gt;echo 0 &gt; /selinux/enforce&lt;br /&gt;&lt;br /&gt;To enable back SELINUX:&lt;br /&gt;echo 1 &gt; /selinux/enforce&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-3683943450278828248?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/3683943450278828248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=3683943450278828248&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/3683943450278828248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/3683943450278828248'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/03/disable-selinux.html' title='Disable SELinux'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-8554980750452443237</id><published>2010-03-22T01:07:00.000-07:00</published><updated>2010-03-22T01:15:31.496-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Remove and Disable IE plugin</title><content type='html'>Disable the plugin will be:&lt;br /&gt;&lt;br /&gt;1. At IE, go to "Tools" &gt; "Manage  Add-ons"&lt;br /&gt;2. Disable the add-ons&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step to remove IE plugin:&lt;br /&gt;&lt;br /&gt;1. At IE go to:&lt;br /&gt;    Tools &gt; Internet Options&lt;br /&gt;2. At the tab "General", "Browsing History", Press "Settings"&lt;br /&gt;3.  "Temporary Internet Files" press "View Objects"&lt;br /&gt;4. Remove the plugin.&lt;br /&gt;&lt;br /&gt;Or&lt;br /&gt;&lt;br /&gt;1. Go to C:\WINDOWS\Downloaded Program Files&lt;br /&gt;2. remove the plugin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-8554980750452443237?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/8554980750452443237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=8554980750452443237&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/8554980750452443237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/8554980750452443237'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/03/remove-and-disable-ie-plugin.html' title='Remove and Disable IE plugin'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-7032845453245643729</id><published>2010-01-13T03:45:00.001-08:00</published><updated>2010-01-13T03:55:48.850-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Count Total Process using pgrep..</title><content type='html'>Here is another useful command to count total process/thread is running.&lt;br /&gt;When run &lt;span style="color: rgb(255, 0, 0); font-style: italic;"&gt;ps aux&lt;/span&gt;... indeed can get all the running process..&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;ps aux | grep httpd&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S02z_rEklEI/AAAAAAAAArc/ip-W3mZ6rI4/s1600-h/2010-01-13_194836.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 278px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S02z_rEklEI/AAAAAAAAArc/ip-W3mZ6rI4/s320/2010-01-13_194836.jpg" alt="" id="BLOGGER_PHOTO_ID_5426191032526345282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;But the list is too long..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Therefore..  have a try use &lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;pgrep&lt;/span&gt;..&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;pgrep httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/S02z-38hCrI/AAAAAAAAArM/GQNVzce811o/s1600-h/2010-01-13_195116.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 198px; height: 320px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/S02z-38hCrI/AAAAAAAAArM/GQNVzce811o/s320/2010-01-13_195116.jpg" alt="" id="BLOGGER_PHOTO_ID_5426191018802350770" border="0" /&gt;&lt;/a&gt;Can see all the list are the process id for the &lt;span style="color: rgb(255, 0, 0); font-style: italic;"&gt;httpd&lt;/span&gt; process.&lt;br /&gt;&lt;br /&gt;Then to count how much thread had been running by &lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;httpd&lt;/span&gt;..&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;pgrep httpd | wc -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3EhIwX2gX0c/S02z_GwXp-I/AAAAAAAAArU/RrYxLyHioUo/s1600-h/2010-01-13_195024.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 32px;" src="http://3.bp.blogspot.com/_3EhIwX2gX0c/S02z_GwXp-I/AAAAAAAAArU/RrYxLyHioUo/s320/2010-01-13_195024.jpg" alt="" id="BLOGGER_PHOTO_ID_5426191022777935842" border="0" /&gt;&lt;/a&gt;Total process/thread is show up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-7032845453245643729?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/7032845453245643729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=7032845453245643729&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/7032845453245643729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/7032845453245643729'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/01/count-total-process-using-pgrep.html' title='Count Total Process using pgrep..'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3EhIwX2gX0c/S02z_rEklEI/AAAAAAAAArc/ip-W3mZ6rI4/s72-c/2010-01-13_194836.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-1244883407175493489</id><published>2010-01-12T01:17:00.001-08:00</published><updated>2010-01-12T01:33:35.204-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Check RAM slot in Linux using dmidecode..</title><content type='html'>Sometimes.. when a server is running..&lt;br /&gt;It is impossible to check, how many RAM slot still available on this server..&lt;br /&gt;Is quite hard to identify the hardware availability without open up the chasing..&lt;br /&gt;&lt;br /&gt;I found out, there is a command called "&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;dmidecode&lt;/span&gt;"..&lt;br /&gt;Where it can be grab mostly the information you need..&lt;br /&gt;&lt;br /&gt;When run&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;can see the server chasing information such as server tag, server model, product model and more...&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S0w-i8iEH2I/AAAAAAAAAq8/YyoJXOKYtb4/s1600-h/2010-01-12_165813.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 213px; height: 320px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S0w-i8iEH2I/AAAAAAAAAq8/YyoJXOKYtb4/s320/2010-01-12_165813.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780421160083298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Let back to our main purpose..&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode -t -17 | grep Size&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to can view the RAM size that been installed and the slot not yet installed RAM.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-auWkDKI/AAAAAAAAAqk/BAUZdnhotwQ/s1600-h/2010-01-12_170308.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 78px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-auWkDKI/AAAAAAAAAqk/BAUZdnhotwQ/s320/2010-01-12_170308.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780279914794146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To check the maximum RAM capacity can installed..&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode -t 16&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-iHc6kAI/AAAAAAAAAqs/QtUSGdOK9-E/s1600-h/2010-01-12_170237.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 154px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-iHc6kAI/AAAAAAAAAqs/QtUSGdOK9-E/s320/2010-01-12_170237.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780406911406082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Sometimes, may face problem with the command such as No such file or directory..&lt;br /&gt;Which may cause by some module not installed or different distro.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-aIWq_XI/AAAAAAAAAqc/ocEwLdloMHQ/s1600-h/2010-01-12_170433.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 41px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/S0w-aIWq_XI/AAAAAAAAAqc/ocEwLdloMHQ/s320/2010-01-12_170433.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780269714701682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Therefore, ignore the &lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;-t 17&lt;/span&gt; or &lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;-t 16&lt;/span&gt; when execute and add pipe along with keywords..&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode | grep Size&lt;/span&gt;&lt;br /&gt;same thing can be view, just with extra information which you may not need..&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0w-Z2p2rvI/AAAAAAAAAqU/3B8JiPNM5uI/s1600-h/2010-01-12_170654.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 186px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0w-Z2p2rvI/AAAAAAAAAqU/3B8JiPNM5uI/s320/2010-01-12_170654.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780264963321586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode | grep Maximum&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0w-ZaokrwI/AAAAAAAAAqM/cZNz5fKQdAw/s1600-h/2010-01-12_170834.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 50px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0w-ZaokrwI/AAAAAAAAAqM/cZNz5fKQdAw/s320/2010-01-12_170834.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780257441754882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sometimes.. you may forget about the case sensitive letters..&lt;br /&gt;Therefore add the &lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;-i&lt;/span&gt; to ignore the case sensitive.&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode | grep -i size&lt;/span&gt;&lt;br /&gt;output also same as what you need.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0xA5e8kdWI/AAAAAAAAArE/49rF-XM_hXA/s1600-h/2010-01-12_172846.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 171px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/S0xA5e8kdWI/AAAAAAAAArE/49rF-XM_hXA/s320/2010-01-12_172846.jpg" alt="" id="BLOGGER_PHOTO_ID_5425783007378437474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;dmidecode can retrieve a lot data..&lt;br /&gt;RAM model, speed also can be retrieve...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/S0w-ZEz_EjI/AAAAAAAAAqE/Yfhy1bcQoMA/s1600-h/2010-01-12_171635.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 297px; height: 320px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/S0w-ZEz_EjI/AAAAAAAAAqE/Yfhy1bcQoMA/s320/2010-01-12_171635.jpg" alt="" id="BLOGGER_PHOTO_ID_5425780251584041522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It do a really handy works for System Engineer when it come to upgrade devices..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-1244883407175493489?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/1244883407175493489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=1244883407175493489&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/1244883407175493489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/1244883407175493489'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2010/01/check-ram-slot-in-linux-using-dmidecode.html' title='Check RAM slot in Linux using dmidecode..'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3EhIwX2gX0c/S0w-i8iEH2I/AAAAAAAAAq8/YyoJXOKYtb4/s72-c/2010-01-12_165813.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-788387289363999757</id><published>2009-12-14T03:43:00.000-08:00</published><updated>2010-03-22T01:06:42.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Directory at /var/spool/clientmqueue/ consume a lot space</title><content type='html'>When a linux server does not allow sendmail port out but the service is running..&lt;br /&gt;it will cause all the mail is in queue at the /var/spool/clientmqueue/..&lt;br /&gt;due the mail cannot send out..&lt;br /&gt;When left it like this all the time..&lt;br /&gt;It will consume a large hard disk space..&lt;br /&gt;what I face at here was, this directory had consume about 6G of the hard disk space..&lt;br /&gt;&lt;br /&gt;When I run ls at the path, the server will hang..&lt;br /&gt;nothing is about come out... for about roughly 1 or 2 hour or longer..&lt;br /&gt;But when I df -h, the /var directory still have 2G available..&lt;br /&gt;Although there had space but nothing can be start due to the error "not enough space to run services"..&lt;br /&gt;&lt;br /&gt;What I can do is.. I try rm -rf * at the /var/spool/clientmqueue/..&lt;br /&gt;"argument list too long error will appear"&lt;br /&gt;Therefore, have to manually rm -rf one by one of the file with the mask attribute (*) at the send... example rm -rf Qm3w*&lt;br /&gt;But this way consume a lot of energy and time.. and the space not decrease also..&lt;br /&gt;Is totally waste of time..&lt;br /&gt;So I try browse and google... I found out.. some solution.&lt;br /&gt;&lt;br /&gt;Due to I not using sendmail at all.. I will disable the sendmail service.&lt;br /&gt;By rename the file /etc/mail/submit.cf to /etc/mail/submit.cf.bak&lt;br /&gt;Then I restart the sendmail service... The service cannot be start due to the&lt;br /&gt;"Starting sm-client: /etc/mail/submit.cf: line 0: cannot open: No such file or directory"&lt;br /&gt;&lt;br /&gt;Therefore.. my sendmail will not run anymore... Then I deal with the /var/spool/clientmqueue/ path by deleting all the file inside...&lt;br /&gt;I use this command at  /var/spool/clientmqueue/&lt;br /&gt;"&lt;span style="color: rgb(255, 0, 0);"&gt;find . -type f -exec rm {} \&lt;/span&gt;;"&lt;br /&gt;&lt;br /&gt;Left it run overnight.. and... the file at the directory is completely deleted...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-788387289363999757?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/788387289363999757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=788387289363999757&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/788387289363999757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/788387289363999757'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/12/directory-at-varspoolclientmqueue.html' title='Directory at /var/spool/clientmqueue/ consume a lot space'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-8020256292283335633</id><published>2009-06-28T08:12:00.000-07:00</published><updated>2009-06-28T09:24:06.236-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Wubi - ubuntu installer</title><content type='html'>New to ubuntu? not used to ubuntu environment yet?&lt;br /&gt;Dont want use virtual machine for ubuntu?&lt;br /&gt;&lt;br /&gt;No need to worry, there is WUBI... an ubuntu installer..&lt;br /&gt;Wubi can help you install the ubuntu in your hard disk and make it dual boot loader.&lt;br /&gt;You can choose either to boot into ubuntu or your current windows..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 0, 153);"&gt;Wubi is an officially supported Ubuntu installer for Windows users that can bring you to the Linux world with a single click. Wubi allows you to install and uninstall Ubuntu as any other Windows application, in a simple and safe way. Are you curious about Linux and Ubuntu? Trying them out has never been easier!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Very simple step..&lt;br /&gt;get yourself the wubi installer at &lt;a href="http://wubi-installer.org/"&gt;here&lt;/a&gt; and the ubuntu desktop cd at &lt;a href="http://www.ubuntu.com/getubuntu/download"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Then.. insert the ubuntu desktop CD to the CD-ROM and run the wubi installer..&lt;br /&gt;It will ask where you wish to install the ubuntu.&lt;br /&gt;Just follow the instruction... It will guide all the process..&lt;br /&gt;Once done.. when you reboot your PC/ Laptop, the boot menu will ask which OS you wish to boot into..&lt;br /&gt;&lt;br /&gt;That all.. you can experience ubuntu on your PC.. without touching on the current windows..&lt;br /&gt;If not satisfy or want to uninstall the ubuntu, you can just re-run the wubi installer.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SkeSqhCFnDI/AAAAAAAAAj0/0kgJuIS02iY/s1600-h/2009-06-18_101058.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 120px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SkeSqhCFnDI/AAAAAAAAAj0/0kgJuIS02iY/s320/2009-06-18_101058.jpg" alt="" id="BLOGGER_PHOTO_ID_5352407941272411186" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Wubi Website&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3EhIwX2gX0c/SkeSq-syIhI/AAAAAAAAAj8/wSlpUmj_vfQ/s1600-h/2009-06-24_121022.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 245px;" src="http://3.bp.blogspot.com/_3EhIwX2gX0c/SkeSq-syIhI/AAAAAAAAAj8/wSlpUmj_vfQ/s320/2009-06-24_121022.jpg" alt="" id="BLOGGER_PHOTO_ID_5352407949236118034" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Wubi installer&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-8020256292283335633?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/8020256292283335633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=8020256292283335633&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/8020256292283335633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/8020256292283335633'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/06/wubi-ubuntu-installer.html' title='Wubi - ubuntu installer'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3EhIwX2gX0c/SkeSqhCFnDI/AAAAAAAAAj0/0kgJuIS02iY/s72-c/2009-06-18_101058.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-68411899491324358</id><published>2009-06-22T02:00:00.000-07:00</published><updated>2009-06-22T02:05:45.367-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Find words in each files..</title><content type='html'>This is something useful command when you want to scan hundreds of file for 1 specified words..&lt;br /&gt;Such as.. you have thousands of files.. and you want to check which file consists "kame" words inside the files..&lt;br /&gt;This is the commands..&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;grep -n -r 'kame' *&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-68411899491324358?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/68411899491324358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=68411899491324358&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/68411899491324358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/68411899491324358'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/06/find-words-in-each-files.html' title='Find words in each files..'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-960458269171902486</id><published>2009-06-21T20:02:00.000-07:00</published><updated>2009-06-21T20:47:56.279-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>NTLDR is missing..</title><content type='html'>Sometimes.. It is very common to see such missing or file corrupt for windows..&lt;br /&gt;Just dont be panic.. everythings can be solved...&lt;br /&gt;Most serious ma just FORMAT LOL..&lt;br /&gt;That why, at least.. 2 partition will be made whenever I do the formatting..&lt;br /&gt;1st Partition only store the Windows and Software..&lt;br /&gt;No important data will store..&lt;br /&gt;Which mean, My Document folder I wont use at all..&lt;br /&gt;2nd partition will store all the important and personal data..&lt;br /&gt;So.. when the main Windows file system corrupt..&lt;br /&gt;Personal data at 2nd partition still safe..&lt;br /&gt;&lt;br /&gt;Therefore.. when say whatever file is missing.. no harm.. just repair the windows whatever you like..&lt;br /&gt;For this problem..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;NTLDR is missing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Press Ctrl+Alt+Del to restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What does NTLDR means and the function.. can be found at &lt;a href="http://en.wikipedia.org/wiki/NTLDR"&gt;here&lt;br /&gt;&lt;/a&gt;When this message appear after boot the windows..&lt;br /&gt;What you need to do are:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;1. Put OS Cd to the CD-ROM and boot into the CD.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;2. Then enter to the repair mode which you need press "&lt;span style="font-style: italic;"&gt;R&lt;/span&gt;".&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;3. Then you will require to choose which Windows to repair.. Choose "&lt;span style="font-style: italic;"&gt;1&lt;/span&gt;" which is the main Windows.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;4. It will require your Windows Administrator Passwords.. If you have then keyin, else just press "&lt;span style="font-style: italic;"&gt;Enter&lt;/span&gt;".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then you will enter the repair mode.. At here, you needs:&lt;br /&gt;&lt;br /&gt;1. Run this 2 command..&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;copy e:\i386\ntldr c:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;copy e:\i386\ntdetect.com c:\&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;2. exit the repair mode and reboot.&lt;br /&gt;&lt;br /&gt;After reboot, you will able to login to the Windows.. Then do some checking on the boot.ini file is it still at there or deleted. This file is located at:&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Control Panel &gt; System &gt; Advanced &gt; Startup and Recovery &gt; Settings &gt; System startup&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;If still exist, check the file is correct or not.. check the boot sequence is it Windows XP Pro/Home as main boot loader.&lt;br /&gt;&lt;br /&gt;If not exist anymore..&lt;br /&gt;Then just Edit and create a new boot.ini file.&lt;br /&gt;Add this value into the file.&lt;br /&gt;&lt;br /&gt;For Windows XP Professional:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;[boot loader]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt; timeout=30&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt; default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt; [operating systems]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt; multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For Windows XP Home:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;[Boot loader]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;timeout=30&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;[operating system]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0); font-weight: bold;"&gt;multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After do the changes on boot.ini.. Restart the Windows..&lt;br /&gt;To make sure does the problem still exist or not...&lt;br /&gt;For more info on boot.ini and the tuning.. Mayb can refer to &lt;a href="http://www.onlinehowto.net/Tutorials/Windows-XP/BOOT-INI-Windows-XP-2003-Server-options/827"&gt;here&lt;/a&gt; and &lt;a href="http://vlaurie.com/computers2/Articles/bootini.htm"&gt;here &lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-960458269171902486?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/960458269171902486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=960458269171902486&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/960458269171902486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/960458269171902486'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/06/ntldr-is-missing.html' title='NTLDR is missing..'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-6815402554477534475</id><published>2009-06-05T01:10:00.001-07:00</published><updated>2009-06-05T01:43:39.126-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Forget MySQL Root Password</title><content type='html'>It is normal to forget password when you have to remember so many diff and type password..&lt;br /&gt;For MySQL, there are few way you can reset the root password..&lt;br /&gt;But the main condition is.. you must have access to the physical server..&lt;br /&gt;It can't be reset through mysql connection..&lt;br /&gt;&lt;br /&gt;Here I will use 1 simple way which I prefer the most.&lt;br /&gt;&lt;br /&gt;1. Check which mysql daemon need to reset. At here.. I want to reset &lt;span style="font-weight: bold;"&gt;mysql port 3306&lt;/span&gt;  which using the &lt;span style="font-weight: bold;"&gt;/etc/my5.cnf&lt;/span&gt; config file. Use command "&lt;span style="font-style: italic;"&gt;netstat -ntulp&lt;/span&gt;" to check the running process and port.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVsycXdLI/AAAAAAAAAbk/zjMyZP1wQYI/s1600-h/2009-06-05_154308.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 48px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVsycXdLI/AAAAAAAAAbk/zjMyZP1wQYI/s320/2009-06-05_154308.jpg" alt="" id="BLOGGER_PHOTO_ID_5343755923306804402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;2. Check the mysql &lt;span style="font-weight: bold;"&gt;/etc/my5.cnf&lt;/span&gt; daemon PID. Use command "&lt;span style="font-style: italic;"&gt;ps aux | grep mysqld&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/SijVtJIXmEI/AAAAAAAAAbs/3I0rt_K8EiU/s1600-h/2009-06-05_154352.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 74px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/SijVtJIXmEI/AAAAAAAAAbs/3I0rt_K8EiU/s320/2009-06-05_154352.jpg" alt="" id="BLOGGER_PHOTO_ID_5343755929396942914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;3. After identify the pid. Kill the process with "&lt;span style="font-style: italic;"&gt;kill -9 db_pid&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVtD6mWTI/AAAAAAAAAb0/ujpCC4U3JB0/s1600-h/2009-06-05_154416.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 19px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVtD6mWTI/AAAAAAAAAb0/ujpCC4U3JB0/s320/2009-06-05_154416.jpg" alt="" id="BLOGGER_PHOTO_ID_5343755927997012274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;4. Double check the mysql port 3306 had been killed or not.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/SijVtf4K_gI/AAAAAAAAAb8/DmkKupHQ6Cw/s1600-h/2009-06-05_154433.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 43px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/SijVtf4K_gI/AAAAAAAAAb8/DmkKupHQ6Cw/s320/2009-06-05_154433.jpg" alt="" id="BLOGGER_PHOTO_ID_5343755935503023618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;5. Start the mysql with additional parameter "&lt;span style="font-weight: bold;"&gt;--skip-grant-tables&lt;/span&gt;".. which the command will be "&lt;span style="font-style: italic;"&gt;mysqld_safe --defaults-file=/etc/my5.cnf --skip-grant-tables --user=root &amp;amp;&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVtSnNBrI/AAAAAAAAAcE/cYgLU8NIO_Y/s1600-h/2009-06-05_155421.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 6px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVtSnNBrI/AAAAAAAAAcE/cYgLU8NIO_Y/s320/2009-06-05_155421.jpg" alt="" id="BLOGGER_PHOTO_ID_5343755931942192818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;6. Enter the mysql port 3306. It can be access without any password.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/SijV52-G7WI/AAAAAAAAAcM/Apfq05MOKbw/s1600-h/2009-06-05_155451.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 77px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/SijV52-G7WI/AAAAAAAAAcM/Apfq05MOKbw/s320/2009-06-05_155451.jpg" alt="" id="BLOGGER_PHOTO_ID_5343756147860368738" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;7. Now update the root password with new password with command "&lt;span style="font-style: italic;"&gt;UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root';&lt;/span&gt;".&lt;br /&gt;Then flush the privileges with "&lt;span style="font-style: italic;"&gt;flush privileges&lt;/span&gt;".&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijXNCUaPsI/AAAAAAAAAcs/OunwbNcKhSw/s1600-h/2009-06-05_162717.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 59px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijXNCUaPsI/AAAAAAAAAcs/OunwbNcKhSw/s320/2009-06-05_162717.jpg" alt="" id="BLOGGER_PHOTO_ID_5343757576835841730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;8. Shutdown the mysql with "&lt;span style="font-style: italic;"&gt;mysqladmin -uroot -h127.0.0.1 -P3306 shutdown&lt;/span&gt;". At here.. since the grant-tables privileges not open yet, shutdown also does not require password.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijV5zoPQzI/AAAAAAAAAcU/x2aiOtBF70g/s1600-h/2009-06-05_155640.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 36px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/SijV5zoPQzI/AAAAAAAAAcU/x2aiOtBF70g/s320/2009-06-05_155640.jpg" alt="" id="BLOGGER_PHOTO_ID_5343756146963333938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;9. Start back the mysql without the "--skip-grant-tables" parameter.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/SijV6BTl6fI/AAAAAAAAAcc/CsEon4IBthY/s1600-h/2009-06-05_155709.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 8px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/SijV6BTl6fI/AAAAAAAAAcc/CsEon4IBthY/s320/2009-06-05_155709.jpg" alt="" id="BLOGGER_PHOTO_ID_5343756150634834418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That all. The MySQL root password had been reset. Here is some reminder.. After reset, remember to restart the mysql without the skip-grant-tables.&lt;br /&gt;&lt;br /&gt;Do not let anyone have access to the physical DB server, to avoid DB daemon is restart without knowledge.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-6815402554477534475?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/6815402554477534475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=6815402554477534475&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/6815402554477534475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/6815402554477534475'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/06/forget-mysql-root-password.html' title='Forget MySQL Root Password'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3EhIwX2gX0c/SijVsycXdLI/AAAAAAAAAbk/zjMyZP1wQYI/s72-c/2009-06-05_154308.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-2052960693431408225</id><published>2009-05-26T10:38:00.001-07:00</published><updated>2009-05-26T10:52:05.570-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Kernel Panic</title><content type='html'>One of the important server, frequently kernel panic.&lt;br /&gt;Every few hours, after restart..&lt;br /&gt;Will not responding and kernel panic again..&lt;br /&gt;This server CD-ROM already defected..&lt;br /&gt;I hardly can linux repair the kernel..&lt;br /&gt;&lt;br /&gt;Things I can do also limited.. due to the not functioning CD-ROM..&lt;br /&gt;But sometimes when i reboot this server..&lt;br /&gt;It will have 1-3-2 beep sound which indicate the memory are not installed properly..&lt;br /&gt;refer to &lt;a href="http://unix.business.utah.edu/doc/hardware/dell/Poweredge_1650/Installation_and_Troubleshooting_Guide/8g550c20.htm"&gt;here&lt;/a&gt;..&lt;br /&gt;Another symptom on this server Dell Poweredge 1650..&lt;br /&gt;was the BIOS screen is hang hang..&lt;br /&gt;&lt;br /&gt;What I suspect:&lt;br /&gt;1. Board defect.. which cause the BIOS hang..&lt;br /&gt;2. Hard Disk defect.. due to the irq timeout..&lt;br /&gt;&lt;br /&gt;What I had try to fixed this problem:&lt;br /&gt;1. Remove the RAM.. and test the RAM pair at Bank 1.. This one can know which RAM is defected. And found out one of the 512MB RAM is defected which cause the BIOS screen hang hang.&lt;br /&gt;&lt;br /&gt;2. Change the CD-ROM from other server. Try do linux repair.. Found out the message indicate the hda irq is timeout before change the CD-ROM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/ShwpJgvz9nI/AAAAAAAAAYs/F1HcYJTtLBk/s1600-h/DSC03794.JPG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/ShwpJgvz9nI/AAAAAAAAAYs/F1HcYJTtLBk/s320/DSC03794.JPG" alt="" id="BLOGGER_PHOTO_ID_5340188501540599410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3EhIwX2gX0c/ShwpJ8wQaFI/AAAAAAAAAY0/h802Y_hGgA4/s1600-h/DSC03799.JPG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_3EhIwX2gX0c/ShwpJ8wQaFI/AAAAAAAAAY0/h802Y_hGgA4/s320/DSC03799.JPG" alt="" id="BLOGGER_PHOTO_ID_5340188509058656338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/ShwpJ5D7tRI/AAAAAAAAAY8/IjZ_xk-VDPE/s1600-h/DSC03837.JPG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/ShwpJ5D7tRI/AAAAAAAAAY8/IjZ_xk-VDPE/s320/DSC03837.JPG" alt="" id="BLOGGER_PHOTO_ID_5340188508067443986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;In the end, after all the test.. Found out the main cause for the Kernel Panic was&lt;br /&gt;1. 1 of the RAM is defect..&lt;br /&gt;2. CD-ROM (hda) is defect..&lt;br /&gt;&lt;br /&gt;After i remove the RAM and change the CD-ROM.. Everything is working fine..&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-2052960693431408225?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/2052960693431408225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=2052960693431408225&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2052960693431408225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2052960693431408225'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/05/kernel-panic.html' title='Kernel Panic'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3EhIwX2gX0c/ShwpJgvz9nI/AAAAAAAAAYs/F1HcYJTtLBk/s72-c/DSC03794.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-2478823819505289964</id><published>2009-04-28T04:37:00.000-07:00</published><updated>2009-04-28T05:02:00.368-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Boot into Single-User Mode</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;There may have lots of source how to boot to single mode when Google. But my bad, my memory not good enough.. SO have to make a post to remind myself in future.&lt;br /&gt;&lt;br /&gt;Boot in single mode in linux is almost equally with boot into safe mode in Windows. This step will be useful if using the GRUB boot loader. Single mode is useful when forget the root password or the server access.&lt;br /&gt;&lt;br /&gt;1. When boot into linux, Press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Enter&lt;/span&gt; when see the screen as below.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3sxWVUI/AAAAAAAAAXs/v1QYO5cYRk0/s1600-h/single_mode_1.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3sxWVUI/AAAAAAAAAXs/v1QYO5cYRk0/s320/single_mode_1.jpg" alt="" id="BLOGGER_PHOTO_ID_5329705451671409986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Enter&lt;/span&gt; when see this screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;2. Then choose which kernel version did you wish to boot as shown below. Press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;e&lt;/span&gt; to edit the kernel parameter.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3Qp5zuI/AAAAAAAAAXk/6o_CzmxuaWw/s1600-h/single_mode_2.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3Qp5zuI/AAAAAAAAAXk/6o_CzmxuaWw/s320/single_mode_2.jpg" alt="" id="BLOGGER_PHOTO_ID_5329705444123987682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;e&lt;/span&gt; after choose the kernel version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;3. When you see the screen as attachment, select the selection start with words kernel. Then press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;e&lt;/span&gt; to edit the line.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3JFj8kI/AAAAAAAAAXc/yhc2Ty3E0Vw/s1600-h/single_mode_3.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3JFj8kI/AAAAAAAAAXc/yhc2Ty3E0Vw/s320/single_mode_3.jpg" alt="" id="BLOGGER_PHOTO_ID_5329705442092511810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;e&lt;/span&gt; to start edit the kernel parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;4. Then go to the end of the line, and add the words &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;single&lt;/span&gt;. This will indicate the kernel to boot into single mode. Once done, press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Enter&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3GVkeAI/AAAAAAAAAXU/QkSpVq01JDQ/s1600-h/single_mode_4.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3GVkeAI/AAAAAAAAAXU/QkSpVq01JDQ/s320/single_mode_4.jpg" alt="" id="BLOGGER_PHOTO_ID_5329705441354348546" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Type &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;single&lt;/span&gt; at the end of the line&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;5. Now, press &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;b&lt;/span&gt; to start boot with the new kernel parameter.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3En3MXI/AAAAAAAAAXM/FhbpDb82ptc/s1600-h/single_mode_5.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3En3MXI/AAAAAAAAAXM/FhbpDb82ptc/s320/single_mode_5.jpg" alt="" id="BLOGGER_PHOTO_ID_5329705440894202226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Press&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; b&lt;/span&gt; to boot into single mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;That all.. you will be in single mode once the boot complete.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-2478823819505289964?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/2478823819505289964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=2478823819505289964&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2478823819505289964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/2478823819505289964'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/04/linux-single-mode-boot.html' title='Boot into Single-User Mode'/><author><name>Poh Meng Tan</name><uri>https://profiles.google.com/101803698159698037327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-TpG4rhCgnnE/AAAAAAAAAAI/AAAAAAAAAyQ/q4V5CcTalmI/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3EhIwX2gX0c/Sfbq3sxWVUI/AAAAAAAAAXs/v1QYO5cYRk0/s72-c/single_mode_1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7251807501075871845.post-4783688517634706215</id><published>2009-04-27T22:34:00.000-07:00</published><updated>2009-04-27T23:12:52.684-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco'/><title type='text'>Network Address Translation</title><content type='html'>As I promised Poh Meng in a very boring Sunday, I will post this basic cisco commands for NAT as co-author for this blog, I appreciate Poh Meng for given me the chance to share my semi professional knowledge here, and hope you all find it useful for you.&lt;br /&gt;&lt;br /&gt;Normally these IPs are given by ISP, and all these IP are:&lt;br /&gt;WAN IP: 207.123.123.122 (Customer), 207.123.123.121 (ISP) &lt;span style="color:#ff0000;"&gt;&lt;--- you have 207.123.123.120/30 here, normally first usable IP of this subnet - 207.123.123.121 is reside to ISP end, and second usable IP of this subnet will allocated to CPE &lt;/span&gt;&lt;br /&gt;LAN IP: 62.14.139.132/29 &lt;span style="color:#ff0000;"&gt;&lt;--- these IPs are given to customer by ISP as Internet IP address (registered IP)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OK, now we start the Cisco router part:&lt;br /&gt;First we start with assign IP to each interface, both LAN and WAN.&lt;br /&gt;=====Cisco Command=====&lt;br /&gt;interface e0 or interface f0/0 &lt;span style="color:#ff0000;"&gt;(LAN interface)&lt;/span&gt;&lt;br /&gt;ip address 192.168.0.1 255.255.255.0 &lt;span style="color:#ff0000;"&gt;&lt;--- assign IP to interface&lt;/span&gt;&lt;br /&gt;ip nat inside &lt;span style="color:#ff0000;"&gt;&lt;--- define boundary of NAT&lt;/span&gt;&lt;br /&gt;no shut&lt;br /&gt;&lt;br /&gt;interface s0 &lt;span style="color:#ff0000;"&gt;(WAN interface)&lt;/span&gt;&lt;br /&gt;ip address 207.123.123.122 255.255.255.252 &lt;span style="color:#ff0000;"&gt;&lt;--- assign IP to interface&lt;/span&gt;&lt;br /&gt;ip nat outside &lt;span style="color:#ff0000;"&gt;&lt;--- define boundary of NAT&lt;/span&gt;&lt;br /&gt;no shut&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;*Sorry for I may confuse you if you don't even know what is IP subnet or subnet mask, 255.255.255.252 behind IP address just a subnet mask for /30 subnet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ip route 0.0.0.0 0.0.0.0 207.123.123.121 &lt;span style="color:#ff0000;"&gt;&lt;--- this is command for default route&lt;/span&gt;&lt;br /&gt;access-list 10 permit 192.168.0.0 0.0.0.255 &lt;span style="color:#ff0000;"&gt;&lt;---ACL to allow translation from LAN IP to WAN IP&lt;/span&gt;&lt;br /&gt;ip nat pool WANIP 62.14.139.133 62.14.139.133 netmask 255.255.255.248 &lt;span style="color:#ff0000;"&gt;&lt;--- IP nat pool, Start IP and End IP&lt;/span&gt;&lt;br /&gt;ip nat inside source list 10 pool WANIP overload &lt;span style="color:#ff0000;"&gt;&lt;--- to apply internal IP translation, overload to allow multiple LAN IPs translate to single WAN IP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DONE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7251807501075871845-4783688517634706215?l=knowaddict.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://knowaddict.blogspot.com/feeds/4783688517634706215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7251807501075871845&amp;postID=4783688517634706215&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/4783688517634706215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7251807501075871845/posts/default/4783688517634706215'/><link rel='alternate' type='text/html' href='http://knowaddict.blogspot.com/2009/04/network-address-translation.html' title='Network Address Translation'/><author><name>嘻嘻爱意</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://4.bp.blogspot.com/_b3JjVEnuJZA/Smp9ASoqtMI/AAAAAAAAATM/ui-J7PQZICo/S220/white+mustache.JPG'/></author><thr:total>1</thr:total></entry></feed>
