<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4827842540624707460</atom:id><lastBuildDate>Fri, 18 May 2012 21:26:23 +0000</lastBuildDate><category>Backup database</category><category>Tình yêu</category><category>Google App</category><category>bugs</category><category>Fix Windows</category><category>hosting</category><category>Linux - Solaris</category><category>Windows</category><category>vbulletin</category><category>Blogger Backup</category><category>Fix virus</category><category>Tên của bạn</category><category>iphone</category><category>Solaris</category><category>script</category><category>Software</category><category>Xá lợi</category><category>hướng dẫn</category><category>Google Adsense</category><category>cydia</category><category>News</category><category>Network</category><category>Raid</category><category>Google search</category><category>System</category><category>Javascript</category><category>php</category><category>Office</category><category>photoshop</category><category>Chat Yahoo</category><category>Perl</category><category>Exploit</category><category>sniff</category><category>Java</category><category>Rapidshare</category><category>Sinh con theo ý muốn</category><category>oracle</category><category>Ebook</category><category>Tomcat</category><category>iphone 3G</category><category>kinh nghiệm</category><category>lockerz</category><category>SQL Statement</category><category>Thủ thuật blog</category><category>HTML</category><category>rubic</category><category>An ninh - Bảo mật</category><category>Internet Explorer</category><category>command line</category><category>ubuntu</category><category>Help Blogger</category><category>ftp</category><title>Kinh Nghiệm Việt Nam - Thủ Thuật PC</title><description /><link>http://kinhnghiem.luyenthianhvan.org/</link><managingEditor>noreply@blogger.com (vitec)</managingEditor><generator>Blogger</generator><openSearch:totalResults>373</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kinhnghiemvn" /><feedburner:info uri="kinhnghiemvn" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-4607513643671766241</guid><pubDate>Thu, 19 Apr 2012 04:51:00 +0000</pubDate><atom:updated>2012-04-18T21:51:35.499-07:00</atom:updated><title>Change date time Linux</title><description>&lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;In order to manually change the timezone, you can edit
the &lt;/span&gt;&lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;&lt;span style="color: #660000;"&gt;&lt;span style="color: #000099;"&gt;/etc/sysconfig/clock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;small&gt;
&lt;/small&gt;&lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;file and then make a new
soft link to    &lt;span style="color: #000099;"&gt;/etc/localtime&lt;/span&gt;.  Here is an
example of changing    the timezone manually to "America/Denver":&lt;br /&gt;
       &lt;br /&gt;
       1.  Select the appropriate time zone from the &lt;span style="color: #000099;"&gt;/usr/share/zoneinfo&lt;/span&gt;    directory.  Time zone names 
are relative to that directory.  In this case,    we will select "America/Denver"&lt;br /&gt;
       &lt;br /&gt;
       2.  Edit the &lt;/span&gt;&lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;&lt;span style="color: #660000;"&gt;&lt;span style="color: #000099;"&gt;/etc/sysconfig/clock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;small&gt;
&lt;/small&gt;&lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;text file so that it looks
like this:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Courier New,Courier,monospace;"&gt;ZONE="America/Denver"&lt;br /&gt;
       UTC=true&lt;br /&gt;
       ARC=false&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
                            &lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;Of course, this assumes   that  your
hardware clock is running UTC time...&lt;/span&gt;&lt;small&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/small&gt;              &lt;span style="font-family: Helvetica,Arial,sans-serif;"&gt;3.  Delete
the following    file:  &lt;span style="color: #000099;"&gt;/etc/localtime&lt;/span&gt;&lt;br /&gt;
       &lt;br /&gt;
       4.  Create a new soft link for &lt;span style="color: #000099;"&gt;/etc/localtime&lt;/span&gt;. 
    Here is an example of step 3 and step 4:&lt;/span&gt;&lt;small&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Courier New,Courier,monospace;"&gt;# &lt;b&gt;cd /etc&lt;/b&gt;&lt;br /&gt;
       # &lt;b&gt;ls -al localtime&lt;/b&gt;&lt;br /&gt;
       lrwxrwxrwx    1 root  root  39 Mar 28 07:00 localtime -&amp;gt; /usr/share/zoneinfo/America/Los_Angeles&lt;br /&gt;
       &lt;br /&gt;
       # &lt;b&gt;rm /etc/localtime&lt;/b&gt;&lt;br /&gt;
       &lt;br /&gt;
       # &lt;b&gt;ln -s /usr/share/zoneinfo/America/Denver /etc/localtime&lt;/b&gt;&lt;br /&gt;
       # &lt;b&gt;ls -al localtime&lt;/b&gt;&lt;br /&gt;
       lrwxrwxrwx    1 root  root  34 Mar 28 08:59 localtime -&amp;gt; /usr/share/zoneinfo/America/Denver&lt;br /&gt;
       &lt;br /&gt;
       # &lt;b&gt;date&lt;/b&gt;&lt;br /&gt;
       Fri Mar 28 09:00:04 MST 2003&lt;/span&gt;&lt;/small&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-4607513643671766241?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/WUMzDv68S18" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/WUMzDv68S18/change-date-time-linux.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/04/change-date-time-linux.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-6701836309881972313</guid><pubDate>Fri, 16 Mar 2012 09:04:00 +0000</pubDate><atom:updated>2012-03-16T02:04:59.104-07:00</atom:updated><title>How to secure your Kloxo for iptables</title><description>&lt;b&gt;Stop iptables service&lt;/b&gt;:&lt;br /&gt;
&lt;div class="simplebox"&gt;
/etc/init.d/iptables stop&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disable iptables service&lt;/b&gt;:&lt;br /&gt;
chkconfig iptables off&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="simplebox"&gt;
&lt;b&gt;Copy this code to /etc/init.d/firewall (Reminder: Disable "word wrap" in your text editor. Ex.: nano -w /etc/init.d/firewall)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="codelisting" dir="ltr" style="overflow: auto;"&gt;#!/bin/sh
# firewall
# chkconfig: 3 21 91
# description: Starts, stops iptables firewall

case "$1" in
start)

# Clear rules
iptables -t filter -F
iptables -t filter -X
echo - Clear rules : [OK]

# SSH In
iptables -t filter -A INPUT -p tcp --dport 22 -j ACCEPT
echo - SSH : [OK]

# Don't break established connections
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
echo - established connections : [OK]

# Block all connections by default
iptables -t filter -P INPUT DROP
iptables -t filter -P FORWARD DROP
iptables -t filter -P OUTPUT DROP
echo - Block all connections : [OK]

# SYN-Flood Protection
iptables -N syn-flood
iptables -A syn-flood -m limit --limit 10/second --limit-burst 50 -j RETURN
iptables -A syn-flood -j LOG --log-prefix "SYN FLOOD: "
iptables -A syn-flood -j DROP
echo - SYN-Flood Protection : [OK]

# Loopback
iptables -t filter -A INPUT -i lo -j ACCEPT
iptables -t filter -A OUTPUT -o lo -j ACCEPT
echo - Loopback : [OK]

# ICMP (Ping)
iptables -t filter -A INPUT -p icmp -j ACCEPT
iptables -t filter -A OUTPUT -p icmp -j ACCEPT
echo - PING : [OK]

# DNS In/Out
iptables -t filter -A OUTPUT -p tcp --dport 53 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 53 -j ACCEPT
iptables -t filter -A INPUT -p udp --dport 53 -j ACCEPT
echo - DNS : [OK]

# NTP Out
iptables -t filter -A OUTPUT -p udp --dport 123 -j ACCEPT
echo - NTP : [OK]

# FTP Out
iptables -t filter -A OUTPUT -p tcp --dport 20:21 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 30000:50000 -j ACCEPT
# FTP In
iptables -t filter -A INPUT -p tcp --dport 20:21 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 30000:50000 -j ACCEPT
iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
echo - FTP : [OK]

# HTTP + HTTPS Out
iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT
# HTTP + HTTPS In
iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT
echo - HTTP/HTTPS : [OK]

# Mail SMTP:25
iptables -t filter -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 25 -j ACCEPT
echo - SMTP : [OK]

# Mail POP3:110
iptables -t filter -A INPUT -p tcp --dport 110 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 110 -j ACCEPT
echo - POP : [OK]

# Mail IMAP:143
iptables -t filter -A INPUT -p tcp --dport 143 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 143 -j ACCEPT
echo - IMAP : [OK]

# Kloxo
iptables -t filter -A INPUT -p tcp --dport 7777:7778 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 7777:7778 -j ACCEPT
echo - Kloxo : [OK]

echo - Firewall [OK]
exit 0
;;

stop)
echo "Stopping Firewall... "
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t filter -F
echo "Firewall Stopped!"
exit 0
;;

restart)
/etc/init.d/firewall stop
/etc/init.d/firewall start
;;

*)
echo "Usage: /etc/init.d/firewall {start|stop|restart}"
exit 1
;;
esac&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="simplebox"&gt;
chmod 700 /etc/init.d/firewall&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;add firewall service&lt;/b&gt;:&lt;br /&gt;
chkconfig --add firewall&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;auto start firewall&lt;/b&gt;:&lt;br /&gt;
chkconfig --level 2345 firewall on&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;start firewall&lt;/b&gt;:&lt;br /&gt;
/etc/init.d/firewall start&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="simplebox"&gt;
If you have slave server, add this on the master&lt;/div&gt;
&lt;br /&gt;
iptables -t filter -A INPUT -p tcp -s SLAVE_IP --dport 7779 -j ACCEPT&lt;br /&gt;
iptables -t filter -A OUTPUT -p tcp -d SLAVE_IP --dport 7779 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt; replace SLAVE_IP with your Slave server IP.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="simplebox"&gt;
Add this on slave server&lt;/div&gt;
&lt;br /&gt;
iptables -t filter -A INPUT -p tcp -s MASTER_IP --dport 7779 -j ACCEPT&lt;br /&gt;
iptables -t filter -A OUTPUT -p tcp -d MASTER_IP --dport 7779 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt; replace MASTER_IP with your Master server IP.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-6701836309881972313?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/jt3olJ_Q2R4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/jt3olJ_Q2R4/how-to-secure-your-kloxo-for-iptables.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/how-to-secure-your-kloxo-for-iptables.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-5551461851318865516</guid><pubDate>Thu, 15 Mar 2012 14:35:00 +0000</pubDate><atom:updated>2012-03-15T07:35:54.980-07:00</atom:updated><title>Cron running job / script every 5 second</title><description>crontab -e

add this on your crontab

*/1 * * * * /scripts/5secondrotatorscript.sh

#! /bin/bash
LOGFILE=/root/username/logs/log_`date +%H%M%S`.log

x=60
while [ ${x} -gt 0 ]
do
/usr/bin/php /home/username/public_html/scripts/file.php &gt;&gt; $LOGFILE
x=$((x-5))
sleep 5
done

save as 5secondrotatorscript.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-5551461851318865516?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/-XbkxJ3nPSg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/-XbkxJ3nPSg/cron-running-job-script-every-5-second.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/cron-running-job-script-every-5-second.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-8681106632358416539</guid><pubDate>Thu, 15 Mar 2012 11:09:00 +0000</pubDate><atom:updated>2012-03-15T04:09:43.995-07:00</atom:updated><title>Chức năng NAT của iptables</title><description>&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;iptables -t nat -A PREROUTING -p tcp --dport 80 -d 1.1.1.1 -i eth0 -j DNAT --to 2.2.2.2:80&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;iptables -t nat -A POSTROUTING -p tcp --dport 80 -o eth0 -j SNAT --to 1.1.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Ghi chú:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;- 1.1.1.1 là IP address của eth0 trên reverse proxy, 2.2.2.2 là IP address của eth0 trên web-server. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;- 2 lệnh này được chạy trên reverse proxy và chúng&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;
 chỉ "redirect" traffic đến cổng 80, nếu bạn cần redirect traffic đến 
các cổng khác như 443 chẳng hạn, bạn phải thêm vào các lệnh tương ứng.&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;-
 Lệnh số 1 có tác dụng chuyển destination IP address (hence DNAT) của 
tất cả TCP packet đến cổng 80 của IP 1.1.1.1 thành cổng 80 của IP 
2.2.2.2. Lệnh này nằm ở chain PREROUTING, nghĩa là nó được apply trước 
giai đoạn routing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;- 
Lệnh số 2 có tác dụng chuyển source IP address (hence SNAT) của tất cả 
TCP packet đi ra bằng đường eth0 có destination port là 80 thành 
1.1.1.1. Lệnh này nằm ở chain POSTROUTING, nghĩa là nó được apply sau 
giai đoạn routing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Giải thích:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;1. client 3.3.3.3 gửi một packet (src=3.3.3.3, dst=1.1.1.1) đến reverse proxy 1.1.1.1&lt;br /&gt;&lt;br /&gt;2. Lệnh thứ nhất sẽ chuyển packet này thành (src=3.3.3.3, dst=2.2.2.2).&lt;br /&gt;&lt;br /&gt;3. Lệnh thứ hai sẽ chuyển packet này thành (src=1.1.1.1, dst=2.2.2.2).&lt;br /&gt;&lt;br /&gt;3.
 Sau khi web-server 2.2.2.2 nhận được packet này, nó sẽ tạo ra một 
packet (src=2.2.2.2, dst=1.1.1.1) và gửi lại cho reverse proxy 1.1.1.1.&lt;br /&gt;&lt;br /&gt;4. reverse proxy 1.1.1.1 sẽ nhìn vào NAT table của lệnh thứ hai để chuyển packet này thành (src=2.2.2.2, dst=3.3.3.3)&lt;br /&gt;&lt;br /&gt;5. reverse proxy 1.1.1.1 tiếp tục nhìn vào NAT table của lệnh thứ nhất để chuyển packet này thành (src=1.1.1.1, dst=3.3.3.3)&lt;br /&gt;&lt;br /&gt;6. reverse proxy 1.1.1.1 gửi packet (src=1.1.1.1, dst=3.3.3.3) lại cho client 3.3.3.3&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-8681106632358416539?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/wlN-uxXRfY4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/wlN-uxXRfY4/chuc-nang-nat-cua-iptables.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/chuc-nang-nat-cua-iptables.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-5354021135562793031</guid><pubDate>Wed, 14 Mar 2012 16:44:00 +0000</pubDate><atom:updated>2012-03-15T04:27:03.033-07:00</atom:updated><title>Apache 2.2.x security tricks (CentOS) - Bảo vệ an toàn cho apache 2.2.x</title><description>Install httpd-devel and gcc:&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;yum install httpd-devel gcc&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Download this modules (you'll need the .c files)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;i&gt;&amp;nbsp; mod_allowmethods: http://www.apachelounge.com/viewtopic.php?t=4238&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_antiloris: http://sourceforge.net/projects/mod-antiloris/&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mod_reqtimeout: https://github.com/apache/httpd/blob/2.2.x/modules/filters/mod_reqtimeout.c&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Upload those files to your server (secure ftp via ssh port should be a good way to do so).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Build and install the modules&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apxs -cia mod_allowmethods.c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apxs -cia mod_antiloris.c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apxs -cia mod_reqtimeout.c&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to /etc/httpd/conf.d and add a file named 3rdparty.conf with:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TraceEnable Off

&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre id="line1"&gt;TraceEnable Off
&amp;lt;Directory /&amp;gt;
    LimitRequestBody 8388608
    &amp;lt;IfModule allowmethods_module&amp;gt;
        AllowMethods GET HEAD OPTIONS POST
    &amp;lt;/IfModule&amp;gt;
&amp;lt;/Directory&amp;gt;

&amp;lt;IfModule antiloris_module&amp;gt;
    IPReadLimit 20

&amp;lt;/IfModule&amp;gt;

&amp;lt;IfModule reqtimeout_module&amp;gt;
    RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
&amp;lt;/IfModule&amp;gt;

&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Please note that LimitRequestBody will disallow uploading/posting more than 8MB (8388608 bytes) but for most websites it should be ok.&lt;br /&gt;
&lt;br /&gt;
$ service httpd fullstatus | grep antiloris mod_antiloris/0.4&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-5354021135562793031?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/HGuQ3_rscjA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/HGuQ3_rscjA/apache-22x-security-tricks-centos-bao.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/apache-22x-security-tricks-centos-bao.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-764093651204068923</guid><pubDate>Tue, 13 Mar 2012 14:11:00 +0000</pubDate><atom:updated>2012-03-13T07:26:38.482-07:00</atom:updated><title>Install mod_security in Kloxo (Lxadmin) on Centos 5.3</title><description>&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First of all make sure you switched the default webserver to  
Apache2. This can be done in the Kloxo admin console under the Server  
&amp;gt; Switch server tab.&lt;br /&gt;
&lt;br /&gt;
Retrieve the mod_security binary for your platform. You can find detailed information &lt;a href="http://www.modsecurity.org/download/index.html" target="_blank"&gt;here&lt;/a&gt;, but below are the key steps assuming you're running a Centos 5.3 VPS.&lt;br /&gt;
&lt;br /&gt;
1. Validate the packages by installing the GPG key:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;rpm --import &lt;a href="http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka" target="_blank"&gt;http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
2. Add the following to your '&lt;b&gt;/etc/sysconfig/rhn/sources&lt;/b&gt;' file:&lt;br /&gt;
&lt;br /&gt;
yum utterramblings &lt;a href="http://www.jasonlitka.com/media/EL5/%24ARCH" target="_blank"&gt;http://www.jasonlitka.com/media/EL5/$ARCH&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. Type:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;vi /etc/yum.repos.d/utterramblings.repo&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
... and then paste the following into the editor:&lt;br /&gt;
&lt;b&gt;&lt;br /&gt; [utterramblings]&lt;br /&gt; name=Jason's Utter Ramblings Repo&lt;br /&gt; baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/&lt;br /&gt; enabled=1&lt;br /&gt; gpgcheck=1&lt;br /&gt; gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;/b&gt; &lt;br /&gt;
4. Update your yum repository by typing &lt;b&gt;yum update &lt;/b&gt;and accepting the  
update. This might take a bit of time depending on when you did your  
last update.&lt;br /&gt;
&lt;br /&gt;
5. Install modsecurity by typing: &lt;b&gt;yum install mod_security&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
6. Restart the Apache webserver: &lt;b&gt;service httpd restart.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
That's it!&lt;br /&gt;
&lt;br /&gt;
Note that a default ruleset is included and activated during the  
installation. If you want to edit the configuration, the following can  
be useful:&lt;br /&gt;
&lt;br /&gt;
/etc/httpd/conf.d: all files in this directory are loaded during Apache startup&lt;br /&gt;
/etc/httpd/conf.d/mod_security.conf: default configuration loading the mod_security module and the default rule set&lt;br /&gt;
/etc/httpd/modsecurity.d: default rule set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tham khao: http://www.clientcentral.info/knowledgebase.php?action=displaycat&amp;amp;catid=1015&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-764093651204068923?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/VXmR2Lqe3TM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/VXmR2Lqe3TM/install-modsecurity-in-kloxo-lxadmin-on.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/install-modsecurity-in-kloxo-lxadmin-on.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-9104872547226524965</guid><pubDate>Tue, 06 Mar 2012 09:18:00 +0000</pubDate><atom:updated>2012-03-06T01:18:22.842-08:00</atom:updated><title>Dùng iptables để band IP</title><description>Liệt kê tất cả các IP đang band&lt;br /&gt;&lt;b&gt;/etc/init.d/iptables status&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;- Band một IP&lt;br /&gt;&lt;b&gt;iptables -A INPUT -s 123.42.168.250 -j DROP&lt;br /&gt;iptables -A OUTPUT -p tcp -d 123.42.168.250 -j DROP&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Lệnh trên để band IP tức thời thôi, khi restart lại service iptables, thì tất cả các IP đã band sẽ mất&lt;br /&gt;Nếu muốn không mất ta phải save nó lại&lt;br /&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;/etc/init.d/iptables save&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@ns ~]#&lt;b&gt; /etc/init.d/iptables status&lt;/b&gt;&lt;br /&gt;Table: filter&lt;br /&gt;Chain &lt;b&gt;INPUT &lt;/b&gt;(policy ACCEPT)&lt;br /&gt;num&amp;nbsp; target&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prot opt source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;b style="color: red;"&gt;1&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCEPT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; --&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp dpt:22 &lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;2&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp; --&amp;nbsp; 112.213.95.11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;b&gt;&lt;span style="color: red;"&gt;3&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp; --&amp;nbsp; 123.42.168.250&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Chain FORWARD (policy ACCEPT)&lt;br /&gt;num&amp;nbsp; target&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prot opt source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Chain &lt;b&gt;OUTPUT &lt;/b&gt;(policy ACCEPT)&lt;br /&gt;num&amp;nbsp; target&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prot opt source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;b style="color: red;"&gt;1&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; --&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 112.213.95.11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;b style="color: red;"&gt;2&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; --&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123.42.168.250&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Để remove IP đã band, ta phải xác định IP band đang ở num mấy &lt;br /&gt;&lt;br /&gt;[root@ns ~]# iptables -D INPUT &lt;b style="color: red;"&gt;2&lt;/b&gt;&lt;br /&gt;[root@ns ~]# iptables -D OUTPUT &lt;b style="color: red;"&gt;1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Các lệnh view log&lt;br /&gt;&lt;b&gt;iptables -L INPUT -v -n --line-numbers&lt;br /&gt;iptables -L OUTPUT -v -n --line-numbers&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Có thể dùng lệnh sau để drop&lt;br /&gt;&lt;b&gt;iptables -D INPUT -s 113.161.207.117 -j DROP&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-9104872547226524965?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/PgrNCaQQW9U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/PgrNCaQQW9U/dung-iptables-e-band-ip.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/03/dung-iptables-e-band-ip.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-8063951961586676097</guid><pubDate>Sat, 25 Feb 2012 03:18:00 +0000</pubDate><atom:updated>2012-02-24T19:54:25.340-08:00</atom:updated><title>Thanh toán và Rút tiền từ tài khoản Paypal ở Việt Nam</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/dang-ky-va-su-dung-paypal-o-viet-nam.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://bloghoctap.com/wp-content/uploads/2010/01/dang-ky-va-su-dung-paypal-o-viet-nam.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class="Tags"&gt;&lt;br /&gt;&lt;a href="http://bloghoctap.com/tag/visa" rel="tag"&gt;&lt;/a&gt;&lt;/span&gt;
     
     &lt;br /&gt;
Có lẽ nhiều bạn đã biết về Paypal cũng như công dụng và hạn chế của 
nó. Nếu ai chưa biết thì mình giới thiệu sơ qua về Paypal. Paypal là 1 
cổng thanh toán trực tuyến phổ biến thế giới và hiện nay có rất nhiều 
website cho phép thanh toán trực tuyến thông qua tài khoản Paypal để mua
 hàng trên mạng. Paypal sẽ giúp lên kết đến số tiền có trong các tài 
khoản ngân hàng (Band Account), thẻ tín dụng (Credit Card), thẻ ghi nợ 
(Debit Card)… để tiến hành các giao dịch.&lt;br /&gt;
&lt;br /&gt;
Theo xu thế tiến bộ của thời đại thì việc thanh toán trực tuyến là 
điều khó tránh khỏi, vậy tại sao không tạo 1 tài khoản Paypal ngay từ 
bây giờ để dùng cho các giao dịch trực tuyến sau này. Ở các nước tiến 
bộ, Paypal cho phép người dùng gởi tiền vào để mua sắm hoặc rút tiền ra 
từ số tiền trong Paypal (dành cho những người buôn bán trên mạng) để có 
tiền mặt sử dụng.&lt;br /&gt;
&lt;br /&gt;
Đối với Việt Nam, với danh hiệu “lỗ đen Internet” lẫy lừng nên việc 
Paypal không cho phép tài khoản ở Việt Nam rút tiền là điều không lấy 
làm lạ ^^. Tuy nhiên, do sức ép cùng với nhu cầu mở rộng giao dịch trực 
tuyến nên cách đây mấy tháng thì các tài khoản Paypal Việt Nam đã có thể
 rút tiền được từ tài khoản Paypal rồi. Đồng nghĩa với việc bạn có thể 
nhận tiền hoặc kinh doanh trực tuyến thông qua tài khoản Paypal.&lt;br /&gt;
Sau 1 thời gian kiểm nghiệm, mua sắm, xin tiền vô tài khoản và rút 
tiền thành công từ paypal với tài khoản ở Việt Nam, nay mình viết bài 
này nhằm chia sẽ tới các bạn những kinh nghiệm trong việc sử dụng paypal
 để mua sắm, buôn bán Online mà không sợ ràng buộc như trước. Bài này 
mình sẽ tập trung vào 1 số trọng điểm chính sau:&lt;br /&gt;
&lt;br /&gt;
&lt;span id="more-1285"&gt;&lt;/span&gt;&lt;br /&gt;
1&amp;gt; Tạo tài khoản paypal ở Việt Nam&lt;br /&gt;
2&amp;gt; Verify địa chỉ Email cho tài khoản Paypal.&lt;br /&gt;
3&amp;gt; Đăng ký thẻ VISA Debit để giao dịch.&lt;br /&gt;
4&amp;gt; Kết hợp &amp;amp; Xác nhận thẻ vào tài khoản Paypal để thực hiện các giao dịch.&lt;br /&gt;
5&amp;gt; Một Hóa đơn minh họa thanh toán thành công bằng tài khoản Paypal.&lt;br /&gt;
6&amp;gt; Rút tiền ngược từ tài khoản Paypal về thẻ để sử dụng.&lt;br /&gt;
&lt;h2&gt;





1&amp;gt; Tạo tài khoản paypal ở Việt Nam&lt;/h2&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step0-begin1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="365" src="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step0-begin1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 1-1: Nhấn vào liên kết Sign Up để đăng ký tài khoản paypal&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;


&amp;nbsp; &lt;/h2&gt;
&lt;div class="wp-caption alignnone" id="attachment_1299" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step1-selectcountry.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="390" src="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step1-selectcountry.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 1-2: Chọn quốc gia Việt Nam và loại tài khoản bạn cần tạo. Có thể tạo 
Personal để mua hàng. Loại tài khoản này bạn có thể thay đổi sau cũng 
được. Nhấn nút Get Started để bắt đầu.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1299" style="width: 610px;"&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step2-fill-info-2.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="640" src="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step2-fill-info-2.jpg" width="497" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 1-3: Tới bước này, bạn nhập các thông tin về tài khoản cần tạo. Sau đó 
nhấn nút Agree and Create Account. Nếu thông tin bạn nhập đúng và đầy đủ
 thì tài khoản của bạn sẽ được tạo và sẽ tới bước kế tiếp.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1310" style="width: 610px;"&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1310" style="width: 610px;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class="wp-caption alignnone" id="attachment_1313" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step3-add-card.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="531" src="http://bloghoctap.com/wp-content/uploads/2010/01/signup-step3-add-card.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 1-4: Tới trang này có nghĩa là bạn đã đăng ký thành công tài khoản 
Paypal. Bước này Paypal hỏi bạn có muốn gắn thẻ thanh toán của bạn vào 
Paypal bây giờ không, nếu bạn chưa có thẻ thì nhấn vào liên kết Go to My
 Account để vào trang nhà của bạn.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-firstlogin-security-question.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="377" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-firstlogin-security-question.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;div class="wp-caption alignnone" id="attachment_1348" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
Hình
 1-5: Lần đầu tiên bạn login thì Paypal sẽ tới trang thiết đặt câu hỏi 
bảo mật để sau này có thể phục hồi lại tài khoản nếu có trục trặc gì. 
Paypal sẽ cho bạn set 2 câu hỏi. Hoàn tất và nhấn Submit để vào trang 
quản lý tài khoản.&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1322" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="343" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 1-6: Đây là giao diện trang tài khoản của bạn. Chú ý mũi tên màu đỏ chỉ
 là nói tài khoản của bạn chưa được xác nhận. Bạn để ý cái box bên phải 
có 2 cái link Confirm email address và Confirm my debit or credit card. 
Mình sẽ hướng dẫn các bạn xác nhận lần lượt từng phần trong các bước 
tiếp theo.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;

2&amp;gt; Verify địa chỉ Email cho tài khoản Paypal&lt;/h2&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-email.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="529" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-email.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 2-1: Sau khi đăng ký tài khoản thì Paypal sẽ gởi 1 email với nội dung 
như trên. Trong email sẽ có phần mã xác nhận (là 20 chữ số) trong phần 
CONFIRMATION CODE.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class="wp-caption alignnone" id="attachment_1348" style="width: 610px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1325" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="350" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;div class="wp-caption alignnone" id="attachment_1343" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
Hình 2-2: Bạn đăng nhập vào Paypal, nhấn vào liên kết Confirm email address để tiến hành xác nhận Email. &lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="449" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;div class="wp-caption alignnone" id="attachment_1384" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
Hình 2-3: Nhấn vào liên kết mà mũi tên màu đỏ chỉ, để tới trang nhập mã xác nhận mà bạn nhận được trong email.&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;

&lt;br /&gt;



&lt;/h2&gt;
&lt;div class="wp-caption alignnone" id="attachment_1342" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page-detail.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="205" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page-detail.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 2-4: Nhập mã xác nhận trong email vào đây rồi nhấn Confirm&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page-detail-end.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="473" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-confirm-email-address-confirm-page-detail-end.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 2-5: Nếu mã xác nhận bạn nhập là hợp lệ thì bạn sẽ thông báo là đã xác 
nhận email thành công. Các bước tiếp theo chúng ta sẽ tiến hành liên kết
 thẻ ngân hàng vào tài khoản Paypal&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1343" style="width: 610px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2&gt;

3&amp;gt; Đăng ký thẻ VISA Debit để giao dịch.&lt;/h2&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/acb-van-phong.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://bloghoctap.com/wp-content/uploads/2010/01/acb-van-phong.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 3-1: Trước tiên bạn cần đến các trung tâm giao dịch của ACB để làm thẻ 
VISA Debit, chi phí hình như 100k/năm. Bạn nên nhớ 1 số vấn đề sau khi 
đi đăng ký thẻ. a&amp;gt;bạn cần nạp vào thẻ khoảng 100K để sau này paypal 
tiến hành thanh toán thử để xác nhận thẻ. b&amp;gt;Kêu họ tạo cho bạn 1 tài 
khoản online để kiểm tra tình trạng thẻ thông qua chức năng login trên 
trang acb.com.vn. c&amp;gt; Hỏi các thông tin về SWIFT CODE, mã thẻ...để sau
 này khai báo trong Paypal. Nếu không sau này mỗi lần không biết mà hỏi 
thì cực lắm. Các ngân hàng khác thì mình chưa thử, chỉ test mỗi ACB và 
đã thành công.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/acb-visa-debit-detail.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://bloghoctap.com/wp-content/uploads/2010/01/acb-visa-debit-detail.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 3-2: Hình dạng thẻ VISA Debit của ACB phát hành. Một số thông tin bạn 
cần biết đó là: Mã thẻ (16 chữ số), tên chủ tài khoản, ngày hết hạn và 
mã an toàn để tiến hành các giao dịch.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/acb-homepage.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="265" src="http://bloghoctap.com/wp-content/uploads/2010/01/acb-homepage.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;div class="wp-caption alignnone" id="attachment_1365" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
Hình 3-3: Nếu bạn có tài khoản do bên ngân hàng cấp thì có thể login tại trang acb.com.vn để vào xem tình trạng thẻ.&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;

&amp;nbsp;&lt;/h2&gt;
&lt;div class="wp-caption alignnone" id="attachment_1363" style="width: 410px;"&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1364" style="width: 606px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/acb-thongtinthe-step11.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="447" src="http://bloghoctap.com/wp-content/uploads/2010/01/acb-thongtinthe-step11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 3-4: Đây là trang xem số dư trong thẻ của mình. Ở đây mình đã nạp 200K 
vào tài khoản để tiến hành kết nối với Paypal. Lưu ý: quá trình kết nối 
với Paypal là miễn phí, ban đầu họ charge bạn 1 số tiền (1.95usd) rồi 
sau đó sẽ refund lại cho bạn. Tới phần sau các bạn sẽ biết cụ thể hơn. 
Như vậy là bạn đã có đủ thông tin về thẻ cũng như 1 ít tiền trong thẻ. 
Tiếp theo bạn chỉ cần Gắn thẻ vào Paypal và xác nhận nữa là bạn có thể 
thanh toán, mua bán, gởi nhận tiền thông qua Paypal rồi.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1365" style="width: 610px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1368" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;





4&amp;gt; Kết hợp &amp;amp; Xác nhận thẻ vào tài khoản Paypal để thực hiện các giao dịch&lt;/h2&gt;
&lt;h2&gt;

&amp;nbsp;&lt;/h2&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-0.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="540" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-0.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-1: Bạn đăng nhập hoặc trở về My Account (như hình 2-2), bạn nhấn vào 
liên kết Link and confirm my credit or debit card để tới trang này. Bạn 
tiến hành nhập các thông tin trên thẻ rồi nhấn Save and Continue để qua 
bước xác nhận.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-1-submit.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="482" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-1-submit.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-2: Tới bước này là bạn đã liên kết được thẻ VISA Debit của mình vào 
Paypal rồi (hoàn thành 50% nhiệm vụ). Sau khi liên kết thành công, 
Paypal sẽ gởi cho bạn 1 cái email như hình 4-3 để báo cho bạn biết. 
Nhiệm vụ còn lại khá phức tạp là Xác nhận thẻ này cho Paypal để Paypal 
hiểu các giao dịch sau này sẽ sử dụng thẻ VISA Debit của bạn. Nhấn 
Continue để tiến hành Xác nhận. Quá trình xác nhận diễn ra như sau: đầu 
tiên Paypal sẽ lấy (charge) của bạn $1.95, bạn phải kiểm tra trong phần 
đăng nhập thẻ trên ACB để biết có giao dịch với Paypal hay không và tìm 4
 con số như chỉ dẫn, sau đó vào lại phần xác nhận thẻ và nhập 4 con số 
này vào như bước 4-6.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;

&amp;nbsp;&lt;/h2&gt;
&lt;div class="wp-caption alignnone" id="attachment_1351" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-2-mail-subject-1-you-have-add-a-credit-card.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="355" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-2-mail-subject-1-you-have-add-a-credit-card.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 4-3: Email Paypal thông báo là bạn đã liên kết thẻ vào tài khoản Paypal&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1353" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-2-mail-subject-2-confirm-your-debit-or-credit-card.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step1-addcard-2-mail-subject-2-confirm-your-debit-or-credit-card.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 4-4: Email Paypal đưa các chỉ dẫn các bước Xác nhận tài khoản VISA của bạn.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/acb-thongtinthe-step2.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="443" src="http://bloghoctap.com/wp-content/uploads/2010/01/acb-thongtinthe-step2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;div class="wp-caption alignnone" id="attachment_1357" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
Hình
 4-5: Nếu làm theo đúng tiến trình (chờ khoảng 1,2 ngày) thì bạn vào 
trang quản lý thẻ của ACB sẽ thấy dòng giao dịch như trên..chú ý phần 
chi tiết 1234PAYPAL..., 1234 chính là con số mà bạn đang chờ đợi.&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1352" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step2-confirm-card.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="523" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step2-confirm-card.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-6: Sau khi có được 4 con số ở bước 4-5, bạn vào liên kết Confirm my 
card và nhập 4 con số này vào ô PayPal code và nhấn Submit. Ở đây mình 
nhập 5678. Trong trường hợp bạn bị kẹt ở bước 4-5 (giống mình), có nghĩa
 là chờ hoài không thấy giao dịch từ Paypal qua ACB, thôi đừng hy vọng 
nữa, bạn có thể vô trang Confirm này nhấn vào nút Resend PayPal Code để 
nó charge lại 1 lần nữa, yên tâm, dù có hay không thì sau nay nó charge 
bạn bao nhiêu thì nó sẽ trả lại hết cho bạn và bỏ vào PayPal balance.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1357" style="width: 610px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1358" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step3.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="393" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step3.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-7: Sau khi nhấn Submit, nếu làm đúng trình tự và nhập đúng số thì bạn
 sẽ được đưa tới trang My Account với thông báo là họ sẽ trả tiền lại 
(refund) cho bạn trong khoảng 24 tiếng nữa. Chờ đợi nhé !&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-after-verify-email-and-verify-card1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="342" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-after-verify-email-and-verify-card1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-8: Lưu ý, sau khi Confirm đầy đủ (bước 2,bước 4) thì chỗ mũi tên màu 
đỏ nói là bạn đã Verify, vậy là ổn rồi. Tuy nhiên hiện tại tiền vẫn chưa
 vô vì mình chụp hình này là lúc tiền Paypal chưa refund vô kịp. Bạn lưu
 ý mũi tên màu xanh, bạn đang ở loại tài khoản Personal (như đã tạo lúc 
đầu), bạn nhấn vào liên kết Upgrade để chuyển lên tài khoản Premier, yên
 tâm, miến phí ^^. Quá trình Upgrade đơn giản nên mình không minh họa ở 
đây.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1359" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step4-refund.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="303" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-verify-step4-refund.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 4-9: Hình này có nghĩa là bạn đã được PayPal trả tiền ($1.95) và tài 
khoản của bạn đã ở Premier và đã được xác nhận (Verified). Chúc mừng 
bạn, như vậy là bạn đã bắt đầu đi mua sắm online được rồi. Nếu bạn muốn 
biết PayPal xử lý thế nào với PayPal balance và tiền trong thẻ VISA của 
bạn thì xem bước 5 để xem 1 hóa đơn mà Paypal thanh toán&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h2 style="font-size: 1.5em;"&gt;





5&amp;gt; Một Hóa đơn minh họa thanh toán thành công bằng tài khoản Paypal&lt;/h2&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/payment-paypal-goddady1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="631" src="http://bloghoctap.com/wp-content/uploads/2010/01/payment-paypal-goddady1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 5-1: Trong hình này bạn sẽ thấy được cách mà Paypal thanh toán giúp 
bạn. Đây là hóa đơn mình mua 1 Domain trên trang godaddy.com. Tổng đơn 
hàng này là $7.67 USD. Đầu tiên Paypal sẽ charge tiền trong PayPal 
Balance trước (trong trường hợp này trong PayPal mình chỉ còn có $1.32),
 nếu không đủ thì paypal tiến hành charge số tiền còn lại vào số tiền 
trong thẻ mà bạn đã liên kết trong bước 4. Đơn giản và dễ hiểu đúng 
không nào ^^. &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style="font-size: 1.5em;"&gt;

&amp;nbsp;&lt;/h2&gt;
&lt;div&gt;

&lt;dl id="attachment_1381" style="-webkit-border-bottom-left-radius: 3px 3px; -webkit-border-bottom-right-radius: 3px 3px; -webkit-border-top-left-radius: 3px 3px; -webkit-border-top-right-radius: 3px 3px; background-color: #f3f3f3; border: 1px solid #dddddd; margin: 10px; padding-top: 4px; text-align: center; width: 610px;"&gt;
&lt;dt&gt;&lt;br /&gt;&lt;/dt&gt;
&lt;dd style="font-size: 11px; line-height: 17px; margin: 0px; padding-bottom: 5px; padding-left: 4px; padding-right: 4px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;





6&amp;gt; Rút tiền ngược từ tài khoản Paypal về thẻ để sử dụng&lt;/h2&gt;
Nếu bạn muốn rút tiền từ PayPal balance thì đầu tiên bạn phải chuyển 
tiền từ PayPal balance vào tài khoản VISA Debit của bạn, sau đó chỉ cần 
ra ATM của ACB rút thôi, cũng không phức tạp lắm. Mình sẽ hướng dẫn các 
bạn.&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step02.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="411" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step02.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 6-1:  Bạn nhấn vào liên kết Withdraw trong trang My Account như trên.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step11.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="303" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình 6-2: Tới đây bạn nhấn vào liên kết mà mũi tên chỉ.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption alignnone" id="attachment_1375" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step21.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="540" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step21.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;
&lt;br /&gt;
Hình
 6-3:  Lần đầu tiên bạn cần nhập các thông tin về ngân hàng thì mới 
chuyển tiền từ Paypal qua được. Ở đây có 1 số thông tin mà bạn cần phải 
nhập. Những thông tin như Bank name, SWIFT code thì bạn phải hỏi nơi 
phát hành thẻ mới biết. Do đó ở bước 3, mình đã khuyên các bạn hỏi 1 lần
 luôn. Đối với ACB, Account number chính là số thẻ luôn. Các ngân hàng 
khác thì không rành&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step31.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="377" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step31.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 6-4: Sau khi thêm ngân hàng thành công, bạn sẽ được chuyển qua trang 
rút tiền. Ở đây bạn có thể xem tỷ giá hiện tại thời điểm mà bạn đang 
muốn rút. Nếu đồng ý thì cứ nhập số tiền vào vào nhấn Continue để sang 
bước xác nhận. Lưu ý, đối với USD thì tối thiểu $10 USD mới chuyển được.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1376" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1377" style="width: 610px;"&gt;
&lt;div class="wp-caption-text"&gt;
.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1378" style="width: 610px;"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step41.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="515" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step41.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 6-5: Đây là thông tin xem lại trước khi bạn nhấn Submit là hoàn tất quá
 trình chuyển từ Paypal balance sang tài khoản trong thẻ VISA ACB. Lưu ý
 phí chuyển tiền là 60K sẽ được trừ vào số tiền mà bạn chuyển. Nếu xem 
hình thì bạn sẽ thấy nếu mình chuyển $10 USD thì thẻ VISA của mình chỉ 
được có 116,891VND.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1379" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step51.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="323" src="http://bloghoctap.com/wp-content/uploads/2010/01/myaccount-withdraw-step51.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Hình
 6-6:  Đây là màn hình MyAccount sau khi bạn đã chuyển tiền, nhìn vào 
bảng các giao dịch bạn sẽ thấy 1 giao dịch chuyển tiền. Chờ 2-4 ngày thì
 tiền sẽ được chuyển vào thẻ VISA Debit của bạn. Việc còn lại là của 
bạn, muốn làm gì với số tiền đó thì làm, có thể mời mình 1 ly cafe cũng 
được ^^.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="wp-caption alignnone" id="attachment_1380" style="width: 610px;"&gt;
&lt;br /&gt;
&lt;div class="wp-caption-text"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
—————–&lt;/div&gt;
&lt;div&gt;
Như vậy là mình đã hướng dẫn khá chi tiết những bước giúp các bạn 
tận dụng Paypal như là 1 công cụ đắc lực hỗ trợ cho các giao dịch trực 
tuyến&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-8063951961586676097?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/WWzKpg2aGrM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/WWzKpg2aGrM/thanh-toan-va-rut-tien-tu-tai-khoan.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/02/thanh-toan-va-rut-tien-tu-tai-khoan.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-8856757030560032719</guid><pubDate>Wed, 15 Feb 2012 04:29:00 +0000</pubDate><atom:updated>2012-02-14T20:36:48.893-08:00</atom:updated><title>how to install memcached</title><description>&lt;h3 style="color: red;"&gt;


Install&amp;nbsp; &lt;b&gt;memcached&lt;/b&gt;&lt;/h3&gt;
&lt;h3&gt;


Cách 1: Cài và chạy bằng tay&amp;nbsp; &lt;/h3&gt;
&lt;br /&gt;
Here's a quick recipe for installing memcached on EC2 Amazon Linux AMI 1.0.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="CodeRay"&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;yum install gcc libevent libevent-devel
cd /usr/local/src
wget http://memcached.org/latest
tar -xf memcached-*.tar.gz
cd memcached-*
./configure
make &amp;amp;&amp;amp; make install&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
Memcached will be installed to /usr/local/bin. Let's make sure everything went well by running memcached:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="CodeRay"&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;/usr/local/bin/memcached -u root -d&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&amp;nbsp;Then we'll make sure it's running&lt;br /&gt;
&lt;div class="CodeRay"&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;ps aux | grep memcached&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
netstat -anp | grep 11211&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
And finally kill it.&lt;br /&gt;
&lt;div class="CodeRay"&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;pkill memcached&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;h3&gt;



&amp;nbsp;&lt;/h3&gt;
&lt;h3&gt;



Cách 2: Cài và chạy service&lt;/h3&gt;
&lt;h3&gt;



Going all out - building a memcached rpm&lt;/h3&gt;
If you're installing memcached on multiple machines then having an 
RPM handy is preferred. Make sure to run this as the ec2-user and not 
root.&lt;br /&gt;
&lt;div class="CodeRay"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;pre&gt;&lt;b&gt;cd ~
sudo yum install gcc libevent libevent-devel rpm-build perl-Test-Base
echo "%_topdir /home/ec2-user/rpmbuild" &amp;gt;&amp;gt; ~/.rpmmacros
mkdir -p /home/ec2-user/rpmbuild/{SPECS,BUILD,SRPMS,RPMS,SOURCES}
wget http://memcached.org/latest
rpmbuild -ta memcached-*.tar.gz&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
The RPM will be created in ~/rpmbuild/RPMS/x86_64/ or 
~/rpmbuild/RPMS/i386/ depending on whether you chose a 32 or 64 bit AMI.
 Copy the rpm to your home directory and run the command below to 
install memcached to /usr/bin/memcache&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="CodeRay"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;sudo yum localinstall memcached-*.rpm --nogpgcheck&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
The beauty of this approach is that you can now do the following to start or stop memcached&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="CodeRay"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;service memcached status
service memcached start
service memcached stop&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
And finally you can enable memcached at startup with this simple command:&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="CodeRay"&gt;
&lt;div class="code"&gt;
&lt;pre&gt;&lt;b&gt;chkconfig memcached on&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style="color: red;"&gt;


Install&amp;nbsp; &lt;b&gt;php-pecl-memcache&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#if apt-get, rpm, or yum doesn't work&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;cd /usr/src/&lt;br /&gt;wget http://pecl.php.net/get/memcache-2.2.4.tgz&lt;br /&gt;tar -zxvf memcached-2.2.4.tgz&lt;br /&gt;cd memcached-2.2.4&lt;br /&gt;phpize &amp;amp;&amp;amp; ./configure --enable-memcache &amp;amp;&amp;amp; make&lt;br /&gt;cp modules/memcache.so /usr/lib/php/modules/&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
# Note: packaged extension modules are now loaded via the .ini files&lt;br /&gt;
# found in the directory php.ini&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
php -i | grep php.ini&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;vi /etc/sysconfig/memcached&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&amp;nbsp;PORT=”11211″&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define on which port to urn&lt;br /&gt;
USER=”nobody”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #same as apache user&lt;br /&gt;
MAXCONN=”1024″&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #maximum number of connections allowed&lt;br /&gt;
CACHESIZE=”64″&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #memory used for caching&lt;br /&gt;
OPTIONS=”"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #use for any custom options&lt;br /&gt;
&lt;/blockquote&gt;
add php.ini&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;extension="memcache.so"&lt;/b&gt;&lt;/blockquote&gt;
restart service https&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;/etc/init.d/httpd restart&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b style="color: red;"&gt;Note: Neu bi loi can install cac goi&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;yum install php-devel&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;yum install zlib-devel&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;yum install zlib zlib-devel&lt;/b&gt;&lt;/blockquote&gt;
Check memcache&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;b&gt;php -i | grep memcache&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
[root@dedi94125 ~]# &lt;b&gt;more testmemcach.php &lt;/b&gt;&lt;br /&gt;&lt;i&gt;&lt;!--?php&lt;br--&gt;$memcache = new Memcache;&lt;br /&gt;$memcache-&amp;gt;connect('127.0.0.1', 11211);&lt;br /&gt;print_r($memcache);&lt;br /&gt;?&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
[root@dedi94125 ~]#&lt;b&gt; php testmemcach.php &lt;/b&gt;&lt;br /&gt;Memcache Object&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [connection] =&amp;gt; Resource id #5&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;[root@dedi94125 ~]#&amp;nbsp; &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-8856757030560032719?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/yOt4zIQAuCI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/yOt4zIQAuCI/how-to-install-memcached.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/02/how-to-install-memcached.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-1731223179090640932</guid><pubDate>Fri, 03 Feb 2012 06:50:00 +0000</pubDate><atom:updated>2012-02-02T22:50:31.350-08:00</atom:updated><title>Learn how to Sniff Wireless Passwords with Pirni (Man in the Middle Attack)</title><description>The thing about the iPod Touch and the iPhone is that they are 
great portable hacking devices. To the naked eye the iPod Touch/iPhone 
looks like nothing more than an ordinary mp3 player/cellphone however 
that is just an understatement to its full potential. Once your iPod 
Touch/iPhone is jailbroken you have access to your whole file system 
meaning that applications generally associated with &lt;span class="IL_AD" id="IL_AD10"&gt;laptop&lt;/span&gt;/desktop hacking can be ported and used on the iPod Touch/iPhone. This opens up a whole lot of possibilities for &lt;span class="IL_AD" id="IL_AD8"&gt;network&lt;/span&gt; sniffing, port scanning and much much more! In this &lt;span class="IL_AD" id="IL_AD11"&gt;tutorial&lt;/span&gt; we are going to take a look at one of these programs called &lt;a href="http://www.ijailbreak.com/tag/pirni/"&gt;Pirni&lt;/a&gt;.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/PodZombie1.png"&gt;&lt;img alt="" class="size-full wp-image-835  aligncenter" height="359" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/PodZombie1.png" title="PodZombie" width="485" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2&gt;



What is Pirni?&lt;/h2&gt;
Pirni is an &lt;span class="IL_AD" id="IL_AD5"&gt;application&lt;/span&gt; that was ported to The Ipod Touch/iPhone to be used as a native network
 sniffer. Pirni is so useful because it gets past the iPod 
Touch’s/iPhone’s wifi hardware limitation of not being able to be set 
into promiscious mode (a mode that allows a network device to intercept and read each network
 packet that arrives in its entirety).&amp;nbsp; To get past this limitation 
Pirni comes with an ARP spoofer that successfully routes all the network
 traffic through your iPod Touch/iPhone, records it to a dump file and 
then uses packet forwarding to send it to it’s normal recipent (ie. the 
router). What this basically means in simpler terms is that all the 
traffic on a specific network comes through your iPod Touch/iPhone before it reaches the router. This meaning that if we sniff the network long enough, another user connected to the network could enter in an unencrypted password and you could then retrieve that password after looking through your dump file.&lt;br /&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2009/12/Pirni_Graph-copy3.png"&gt;&lt;img alt="Pirni Graph" class="aligncenter size-full wp-image-755" height="350" src="http://www.ijailbreak.com/wp-content/uploads/2009/12/Pirni_Graph-copy3.png" title="Pirni Graph" width="525" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;



Using Pirni&lt;/h2&gt;
Pirni is an application that does not have a GUI (Graphical User 
Interface) and it requires a program called Terminal to run and be used.
 Terminal is basically an application that allows you to give your iPod 
Touch/iPhone simple commands. Below I am going to go through the steps 
of installing and using Pirni… **&lt;span class="IL_AD" id="IL_AD3"&gt;Note&lt;/span&gt; this is a technical tutorial and is not recommended for users new to computers. Please also note that this tutorial is for educational purposes only. It is illegal to sniff a &lt;span class="IL_AD" id="IL_AD2"&gt;wireless network&lt;/span&gt; that is not your own. Use and Follow this Tutorial at your own Risk.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Step 1) -&lt;/b&gt;&lt;/i&gt; The first thing you are going to 
need to do is install a program called Mobile Terminal on your iPod 
Touch/iPhone. This program is available through cydia, so open up cydia 
and type in terminal into the search tab. Once you find Mobile Terminal 
on your search Results install it to your iPod Touch/iPhone.&lt;br /&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;i&gt;&lt;b&gt;Step 2) -&lt;/b&gt;&lt;/i&gt; Once you have installed terminal the next application
 you are going to install is Pirni. Type pirni into the search tab and 
once it appears on your search results click it and install it to your 
iPod Touch/iPhone. Once Pirni installs you will have installed 
everything you need to begin sniffing wireless &lt;span class="IL_AD" id="IL_AD4"&gt;networks&lt;/span&gt;…&lt;br /&gt;
&lt;table border="0" style="width: 9px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;i&gt;&lt;b&gt;Step 3) -&lt;/b&gt;&lt;/i&gt; Before you launch terminal and begin sniffing you will need a few pieces of information on your wireless network; the network’s
 ip address and the router’s ip address. You can find out this 
information by launching&amp;nbsp; Settings and clicking&amp;nbsp; Wifi then clicking on 
the arrow next to Your wireless network’s Name. Once you find the 
information you are looking for which is the IP Address and the Router 
IP Address write it down on a piece of paper so you remember it.&lt;br /&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;i&gt;&lt;b&gt;Step 4) -&lt;/b&gt;&lt;/i&gt; Now that you have the required 
information you are ready to begin the process of sniffing with Pirni. 
The first thing you need to do is open up Terminal; so do this now by 
finding Terminal on your springboard and clicking it to launch it. **Note Terminal sometimes takes a few times to actually load. If you click the Terminal application
 and it opens and closes then simply click it again until it fully 
launches. Once you get Terminal up and Running you are going to need to 
login as a a root user to gain full access to your iPod Touch/iPhone. 
Type in the following commands and please note they are all case sensitive so copy them exactly as shown…&lt;br /&gt;
&lt;blockquote&gt;
su&lt;br /&gt;
alpine (alpine is the default password. If you have not changed your password then use alpine)&lt;/blockquote&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
Once you have gained root access continue to step 5…&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Step 5) -&lt;/b&gt;&lt;/i&gt; Once you are logged in as the 
root user you can begin using Pirni. To initiate Pirni you are going to 
need to enter in a line of commands replacing whats in &lt;span style="color: red;"&gt;red&lt;/span&gt; with your network specific information.&lt;br /&gt;
&lt;b&gt;-s:&lt;/b&gt; Specifies the IP-adress you want to spoof, this is where the Router IP Address goes.&lt;br /&gt;
&lt;b&gt;-d:&lt;/b&gt; Specifies the target you want to perform MITM on, this is where the IP Address of your network goes.&lt;br /&gt;
&lt;b&gt;-f:&lt;/b&gt; Specifies the Berkley Packet Filter so that 
pirni only collects interesting packets. This is very good if you want 
to filter out specific packets – such as FTP, SMTP or HTTP. If no -f 
options is supplied, all packets will be captured.&lt;br /&gt;
&lt;b&gt;-o:&lt;/b&gt; Specifies the dumpfile where all the collected 
packets end up. This is a pcap dump format, that most traffic analyzers 
can handle.&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style="color: white;"&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;iphone4s:~ root# more get.sh &lt;br /&gt;pirni -s 192.168.1.1 -o log.pcap&lt;br /&gt;pirni -s 192.168.1.1 -d 192.168.1.189 -f "tcp dst port 80" -o log.pcap&lt;br /&gt;pirni -i en1 -s 192.168.1.1 -d 255.255.255.0 -o log.pcap&lt;br /&gt;&lt;br /&gt;iphone4s:~ root#&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
Once you enter the Commands Pirni will initiate and begin collecting 
packets. A packet is a formatted unit of data carried by a packet mode &lt;span class="IL_AD" id="IL_AD12"&gt;computer&lt;/span&gt; network.
 For example, every Web page that you receive comes as a series of 
packets, and every e-mail you send leaves as a series of packets. Pirni 
collects these packets and records them into a readable dump file that 
can be analyized at a later date on your computer. In order for Pirni to
 collect something interesting you are going to need to visit a website 
that doesnt use an ssl encrypted connection. Leave your iPod Touch or 
iPhone alone collecting packets and go to a website that doesn’t use an 
ssl encrypted connection and login to that website. An example of this 
kind of website would be &lt;a href="http://www.hawkee.com/" target="_blank"&gt;Hawkee.com&lt;/a&gt;
 this website does not use an ssl encrypted connection while handling 
logins. If you want to test out Pirni to see if you can get a password 
register an account up with &lt;a href="http://www.hawkee.com/" target="_blank"&gt;Hawkee.com&lt;/a&gt; and login to &lt;span class="IL_AD" id="IL_AD9"&gt;your account&lt;/span&gt; while you are sniffing your network. Once you are done scanning the network drag your finger across the screen in a diagnol &lt;span class="IL_AD" id="IL_AD7"&gt;direction&lt;/span&gt; and this will stop pirni correctly. **Note it is important to close pirni this way to avoid errors while analyzing your dump file later on.&lt;br /&gt;
&lt;h2&gt;



Analyzing your Dump File&lt;/h2&gt;
Now that you have sniffed the packets on your network you now have to
 analyze the dump file created by Pirni. To do this you will need to get
 the dump file off your iPodTouch/iPhone by using a program called &lt;a href="http://www.winscp.com/" target="_blank"&gt;Winscp&lt;/a&gt;.
 This program allows you to access the files on your iPodTouch/iPhone. 
To use this program you will need two things; open ssh installed on your
 iPodTouch/iPhone and Winscp installed on your computer…&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Step 1) -&lt;/b&gt;&lt;/i&gt; Download openssh to your 
iPodTouch/iPhone by going into Cydia and typing in openssh into the 
search panel. Once you see openssh on the search results click it and 
install open ssh. Once open ssh has been installed exit cydia and 
continue to step 2…&lt;br /&gt;
&lt;table border="0" style="width: 5px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;i&gt;&lt;b&gt;Step 2) -&lt;/b&gt;&lt;/i&gt; The next thing you need to do is install a program called winscp to your computer. This program will allow you to take files off your iPod Touch/iPhone with an easy to use GUI (Graphical User Interface).&lt;br /&gt;
&lt;h3&gt;



&lt;a href="http://winscp.net/eng/download.php" target="_blank"&gt;Download Winscp Here&lt;/a&gt;&lt;/h3&gt;
Once Winscp &lt;span class="IL_AD" id="IL_AD6"&gt;Downloads&lt;/span&gt; to your computer install it by following the easy to use steps of the installer…&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Step 3) -&lt;/b&gt;&lt;/i&gt; Once Winscp has finished 
installing double click the winscp.exe to launch the program. You will 
be presented with a window like the one depicted below…&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen112.jpg"&gt;&lt;img alt="" class="size-full wp-image-812 aligncenter" height="377" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen112.jpg" title="Winscp Opening Screen" width="537" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you get Winscp up and running you are going to need to enter in 
some information&amp;nbsp; into Winscp. The first thing you need to enter is the 
Host name which is your networks IP Address. This is the Address that you wrote down earlier you can find it inside Settings &amp;gt; Wifi &amp;gt;Your Network Name Tab. The next thing you need to enter is the &lt;span class="IL_AD" id="IL_AD1"&gt;Username this&lt;/span&gt;
 is always left as root. The last piece of information you need to enter
 in is the password the default password if you haven’t changed it is 
alpine. If you have changed your password then enter your current 
password in the password field now.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen25.jpg"&gt;&lt;img alt="" class="size-full wp-image-813 aligncenter" height="377" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen25.jpg" title="Your Winscp Screen should look something like this..." width="537" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you enter in the required information click the Login Button. 
The first time you login it will take awhile to load just be patient and
 wait it can take up to five minutes. The first time you login you will 
also get a warning message that will appear simply hit the ok button to 
the warning message. When you succesfully login click the / button on 
the top right hand corner of the screen…&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen3.jpg"&gt;&lt;img alt="" class="size-full wp-image-814 aligncenter" height="384" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen3.jpg" title="Click the / Button on the type right hand corner of the application" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you click the / Button (Which is the Root Directory Shortcut) 
the next thing you are going to do is click the User file directory as 
shown below. This is where all your dump files are saved and stored 
through Pirni…&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen41.jpg"&gt;&lt;img alt="" class="size-full wp-image-815 aligncenter" height="381" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen41.jpg" title="Click the User file Directory " width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you are inside the User File Directory you should now see your 
log file. Drag the Log file to your Desktop and then Exit Winscp as you 
are now done using the program. Winscp is a useful program if you need 
to access your iPod Touch/iPhones internal File Structure. Now that you 
know how to use Winscp you can use this useful program anytime you want.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen52.jpg"&gt;&lt;img alt="" class="size-full wp-image-827 aligncenter" height="381" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen52.jpg" title="Drag your Log File to your Desktop" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;&lt;b&gt;Step 4) -&lt;/b&gt;&lt;/i&gt; Now that your Log File has been 
successfully transferred to your computer you are now going to need to 
download an application that will analyze the dump file called 
WireShark.&lt;br /&gt;
&lt;h3&gt;



&lt;a href="http://www.wireshark.org/download.html" target="_blank"&gt;Download WireShark Here&lt;/a&gt;&lt;/h3&gt;
With WireShark successfully downloaded to your computer double click 
the setup.exe and install it to your computer. When it asks you if you 
want to install WinPcap click no because you will not need this 
functionality while analyzing your dump file.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Step 5) -&lt;/b&gt;&lt;/i&gt; Now that WireShark is installed 
double click the WireShark.exe on your Desktop to start the program. 
Once the Program is up and running you are going to need to open your 
log file. Click the Open Button in the middle of the screen and then 
locate your log file which should be on your Desktop.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen62.jpg"&gt;&lt;img alt="" class="size-full wp-image-817 aligncenter" height="430" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen62.jpg" title="Click the Open Button and then locate your dump file..." width="575" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you locate your Dump file and load it into WireShark you will 
now see a screen with a bunch of packets displayed. These are all the 
Packets that you captured while you were sniffing your network. If you 
have never seen packets before all of this information will mean nothing
 to you and seem confusing. If you research a little bit online about 
packets you will find these packets are a lot more interesting however 
if you are new to this whole thing then the search tool will be your 
friend. Click the Magnifying glass on the top of the screen and it will 
bring up a search window.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen72.jpg"&gt;&lt;img alt="" class="size-full wp-image-818 aligncenter" height="465" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen72.jpg" title="Click the search button on the top of the screen" width="576" /&gt;&lt;/a&gt;&lt;/div&gt;
Once the Search window comes up you will be presented with three 
options Display Filter, Hex Value and String. Click the String Option 
and then type in password into the search field and click the Find 
Button. The Search Tool is a great tool to find interesting information 
in your dump file. With the search tool it will quickly scan through all
 your packets and will find a match to what you are searching for. It 
defiantly beats looking through hundreds of packets till you find 
something interesting. With the search tool you can simply type in 
keywords that would be of interest to you like 
password,username,login,email and it will try to find a match. **Note 
not all dump files will contain interesting information like 
passwords,usernames etc… It all depends on what users connected to the 
network you are scanning are doing.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen82.jpg"&gt;&lt;img alt="" class="size-full wp-image-819 aligncenter" height="241" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen82.jpg" title="Click the String option and type in Password into the search field and click the Find Button" width="467" /&gt;&lt;/a&gt;&lt;/div&gt;
Once you click the find button you will be directed to the packet 
that contains the password string or the string that you typed into the 
search field. If you look at what is highlight you can see that you have
 successfully found the username and password to your &lt;a href="http://www.hawkee.com/" target="_blank"&gt;hawkee.com&lt;/a&gt;
 account. If this was performed on an unknown network you would have 
successfully sniffed a password that you can then do what you want with.
 WireShark is a very powerful tool for analyzing packets if you go to 
their &lt;a href="http://www.wireshark.org/" target="_blank"&gt;Website&lt;/a&gt; you can learn a lot about packets and other analyzing techniques not discussed on this tutorial.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen92.jpg"&gt;&lt;img alt="" class="size-full wp-image-820 aligncenter" height="178" src="http://www.ijailbreak.com/wp-content/uploads/2010/01/Screen92.jpg" title="You have succesfully found the Username and Password to your Hawkee account" width="573" /&gt;&lt;/a&gt;&lt;/div&gt;
As you can see your iPod Touch or iPhone can be transformed into a 
powerful password sniffing device. With Pirni you can have a powerful 
password sniffing program hidden within your iPod Touch/iPhone. You can 
have your morning coffee at starbucks while sniffing its wireless 
network without anyone knowing or suspecting a thing. There are many 
other useful hacking programs on the iPod Touch/iPhone, and I will write
 more tutorials for programs like Ngrep and TCP Dump in the future if 
enough interest is given. As always if you require any help with this 
tutorial please feel free to post your questions/comments in the 
comments section below.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-1731223179090640932?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/5Y3EvhFi_f8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/5Y3EvhFi_f8/learn-how-to-sniff-wireless-passwords.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/02/learn-how-to-sniff-wireless-passwords.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-8725250934279043362</guid><pubDate>Mon, 30 Jan 2012 14:33:00 +0000</pubDate><atom:updated>2012-01-30T06:33:08.614-08:00</atom:updated><title>UDIDFaker – fake udid for your iPhone IOS device</title><description>UDIDFaker is a jailbreak tweak that can fake udid to let you try some charges app, these are prevent you re-use by the only udid on your device, with udidfaker fake a udid for an app, this app will think this is a new device, so you can continue &lt;span class="IL_AD" id="IL_AD4"&gt;to use&lt;/span&gt; a &lt;span class="IL_AD" id="IL_AD3"&gt;free trial&lt;/span&gt; app.&lt;br /&gt;
UDIDFaker has updated version 2.3-3.&lt;br /&gt;
&lt;h3&gt;



&lt;span class="Apple-style-span" style="font-size: 13px; font-weight: normal;"&gt;Follow these steps to spoof Your Device’s UDID&lt;/span&gt;&lt;/h3&gt;
1.) Download UDID Faker(my repo &lt;img alt=":D" class="wp-smiley" src="http://www.ipad2iphone5.com/wp-includes/images/smilies/icon_biggrin.gif" /&gt;)&lt;br /&gt;
&lt;span id="more-5412"&gt;&lt;/span&gt;&lt;br /&gt;
2.) &lt;span class="IL_AD" id="IL_AD1"&gt;Download this&lt;/span&gt; &lt;a href="http://www.mediafire.com/?hrxnwvh498hgyto" target="_blank"&gt;.plist file&lt;/a&gt;&lt;br /&gt;
3.) Download NotePad++ and open .plist file&lt;br /&gt;
&amp;lt;?xml version=”1.0″ encoding=”UTF-8″?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “&amp;nbsp;http://www.apple.com/DTDs/PropertyList-1.0.dtd”&amp;gt;&lt;br /&gt;
&amp;lt;plist version=”1.0″&amp;gt;&lt;br /&gt;
&amp;lt;dict&amp;gt;&lt;br /&gt;
&amp;lt;key&amp;gt;com.app.bundle&amp;lt;/key&amp;gt;&lt;br /&gt;
&amp;lt;string&amp;gt;Enter Valid UDID&amp;lt;/string&amp;gt;&lt;br /&gt;
&amp;lt;/dict&amp;gt;&lt;br /&gt;
&amp;lt;/plist&amp;gt;&lt;br /&gt;
Ok now enter a Valid Fake UDID and app bundle name to find the bundle name go into the .app folder you want to spoof for Info.plist open it until you find Bundle Identifier&lt;br /&gt;
Ok now Save the .plist file to your desktop. Then SSH into your device to &lt;span class="IL_AD" id="IL_AD5"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="IL_AD" id="IL_AD5"&gt;/private&lt;/span&gt;/var/mobile/Library/Preferences/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to spoof more than 1 app for example 3 apps it’s gona look like this&lt;br /&gt;
&amp;lt;?xml version=”1.0″ encoding=”UTF-8″?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “&amp;nbsp;http://www.apple.com/DTDs/PropertyList-1.0.dtd”&amp;gt;&lt;br /&gt;
&amp;lt;plist version=”1.0″&amp;gt;&lt;br /&gt;
&amp;lt;dict&amp;gt;&lt;br /&gt;
&amp;lt;key&amp;gt;com.app.bundle&amp;lt;/key&amp;gt;&lt;br /&gt;
&amp;lt;string&amp;gt;Change this for valid-fake UUID&amp;lt;/string&amp;gt;&lt;br /&gt;
&amp;lt;key&amp;gt;com.app.bundle2&amp;lt;/key&amp;gt;&lt;br /&gt;
&amp;lt;string&amp;gt;Change this for valid-fake UUID&amp;lt;/string&amp;gt;&lt;br /&gt;
&amp;lt;key&amp;gt;com.app.bundle3&amp;lt;/key&amp;gt;&lt;br /&gt;
&amp;lt;string&amp;gt;Change this for valid-fake UUID&amp;lt;/string&amp;gt;&lt;br /&gt;
&amp;lt;/dict&amp;gt;&lt;br /&gt;
&amp;lt;/plist&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-8725250934279043362?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/ZtZcHbadHfg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/ZtZcHbadHfg/udidfaker-fake-udid-for-your-iphone-ios.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/udidfaker-fake-udid-for-your-iphone-ios.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-6996844469705386509</guid><pubDate>Mon, 30 Jan 2012 14:26:00 +0000</pubDate><atom:updated>2012-01-30T06:26:37.667-08:00</atom:updated><title>Create random HEX for linux</title><description>echo `&amp;lt; /dev/urandom tr -dc a-f0-9 | head -c40`&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-6996844469705386509?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/LNwGyBtEKls" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/LNwGyBtEKls/create-random-hex-for-linux.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/create-random-hex-for-linux.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-2554830605719196661</guid><pubDate>Sun, 29 Jan 2012 05:58:00 +0000</pubDate><atom:updated>2012-01-28T22:15:13.526-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">iphone</category><title>Pirni comes with an ARP spoofer  network traffic</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href="http://code.google.com/p/pirni-derv/" target="_new"&gt;Pirni&lt;/a&gt; 
is the worlds first native network sniffer for iPhone. The iPhone's 
Wi-Fi has some major drawbacks in its hardware design, thus we can not 
properly set the device in promiscuous mode.&lt;br /&gt;
&lt;br /&gt;
This is why Pirni comes with an ARP spoofer that successfully routes all
 the network traffic through your device and then uses packet forwarding
 to send it to it's normal recipient (ie. the router).&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-0UIkEGJ4Fg0/TyTjIPRFSbI/AAAAAAAAAF0/Gsy6YoaGYvA/s1600/pirni.jpg" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-0UIkEGJ4Fg0/TyTjIPRFSbI/AAAAAAAAAF0/Gsy6YoaGYvA/s1600/pirni.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;b&gt;pirni -s 192.168.1.5 -f "tcp dst port 80" -o log.pcap&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;
After a successful network sniffing, you can transfer the dumpfile to your computer and open it up with &lt;a href="http://www.net-security.org/software.php?id=735"&gt;Wireshark&lt;/a&gt; (or any other traffic analyzer that supports pcap) to analyze the traffic.&lt;br /&gt;
&lt;br /&gt;
BPF filters allow you to select which packets to be dumped. This allows 
you to "filter" packets, so that only "interesting" packets can be 
supplied to the software using BPF; this can avoid copying 
"uninteresting" packets from the operating system kernel to software 
running in user mode, reducing the CPU requirement to capture packets 
and the buffer space required to avoid dropping packets.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-2554830605719196661?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/HLgyMgHV5jw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/HLgyMgHV5jw/pirni-comes-with-arp-spoofer-network.html</link><author>noreply@blogger.com (vitec)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-0UIkEGJ4Fg0/TyTjIPRFSbI/AAAAAAAAAF0/Gsy6YoaGYvA/s72-c/pirni.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/pirni-comes-with-arp-spoofer-network.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-7168988358772021068</guid><pubDate>Sun, 29 Jan 2012 05:57:00 +0000</pubDate><atom:updated>2012-01-28T22:13:52.674-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">sniff</category><category domain="http://www.blogger.com/atom/ns#">iphone</category><title>Sniff Your iPhone's Network Traffic</title><description>Ever wanted (or needed) to see your iPhone's network traffic? All you
 need is a wireless LAN and the cross-platform proxy application, &lt;a href="http://www.parosproxy.org/index.shtml"&gt;Paros.&lt;/a&gt;
 There are other proxy server's that can be used, but Paros was built 
for web application security assessments, so it provides an intimate 
hook into the HTTP request/response flow. Let's get started!
&lt;br /&gt;
&lt;div id="content"&gt;
&lt;h3&gt;


1) Download and Install Paros&lt;/h3&gt;
Grab the download from the &lt;a href="http://www.parosproxy.org/download.shtml"&gt;Paros site&lt;/a&gt;. Your install process will differ depending on your O/S, but they've provided some install instructions &lt;a href="http://www.parosproxy.org/install.shtml"&gt;here&lt;/a&gt;. Everybody will need the Java Runtime Environment 1.4 or above.&lt;br /&gt;
&lt;h3&gt;


2) Configure Paros&lt;/h3&gt;
Once installed, launch Paros and find the configuration options (on 
OS X they are under Tools -&amp;gt; Options). Paros is configured by default
 to listen on localhost only, but we are going to route our iPhone's 
traffic through Paros, so we need to set it to listen on the IP address 
of the interface connected to the same LAN as the iPhone.&lt;br /&gt;
My LAN's network is 1.1.1.0/16, so I'll configure the Local Proxy address accordingly:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="paros_config" height="246" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/paros_config.png" width="540" /&gt;&lt;/div&gt;
That should be the only setting that we need to fuss with. Paros is 
all set and listening on port 8080, let's configure the iPhone to route 
its traffic through our proxy!&lt;br /&gt;
&lt;h3&gt;


3) Configure iPhone&lt;/h3&gt;
On the iPhone, open the "&lt;b&gt;Settings&lt;/b&gt;" app and navigate 
to the Wi-Fi page. Once there, edit the settings for the wireless 
network you are currently connected to (this needs to be the same 
network where your proxy is running). To do this, click the little blue 
arrow on the right side of the screen.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="config_wifi" height="480" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/config_wifi.png" width="322" /&gt;&lt;/div&gt;
Now, scroll all the way to the bottom of the settings page and change the &lt;b&gt;"HTTP Proxy"&lt;/b&gt; setting to manual. Enter the IP address and port number of your Paros Proxy.&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="config_proxy" height="480" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/config_proxy.png" width="320" /&gt;&lt;/div&gt;
All set! Now all web traffic to and from the iPhone is routed through Paros. Let's go see what we can see.&lt;br /&gt;
&lt;h3&gt;


4) Using Paros&lt;/h3&gt;
The main section of Paros is the "&lt;b&gt;Request/Response/Trap&lt;/b&gt;." As the iPhone talks through Paros to Internet sites, it will display the iPhone's request and the server's response. The "&lt;b&gt;trap&lt;/b&gt;"
 functionality allows you to stop either the request or the response and
 view/modify it before sending it along to the recipient. Trapping is 
very cool, and why Paros is used for security auditing, but for our 
purposes we just want to see what is going on, so I won't explain it any
 further.&lt;br /&gt;
For now, let's see what happens when we fire up my iPhone's "&lt;b&gt;App Store&lt;/b&gt;" app:&lt;br /&gt;
In the bottom section of the screen is the history viewer. There we 
can see that my iPhone made 4 requests to different servers ( 3 GETs and
 1 POST):&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="history" height="67" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/history.png" width="540" /&gt;&lt;/div&gt;
Highlighting the first GET in the history list shows its details. The iPhone's HTTP request header looked like this:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="request" height="337" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/request.png" width="540" /&gt;&lt;/div&gt;
One noteworthy tidbit is that the iPhone is sending a custom header 
(X-Apple-Connection-Type) which tells the server that it is connected to
 WiFi. Next, let's take a look at the server's response:&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;img alt="response" height="408" src="http://blog.jerodsanto.net/wp-content/uploads/2009/06/response.png" width="540" /&gt;&lt;/div&gt;
Notice that in the response we see both the headers that the server 
returned AND the response data itself, in this case an xml plist file.&lt;br /&gt;
Sniffing traffic like this can help you understand how different 
iPhone apps work behind the scenes or it can help debug interaction for 
an app that you're writing. Hope this helps you get started!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-7168988358772021068?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/NklEZQdOvvU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/NklEZQdOvvU/sniff-your-iphones-network-traffic.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/sniff-your-iphones-network-traffic.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-3039086958126546009</guid><pubDate>Sun, 29 Jan 2012 05:23:00 +0000</pubDate><atom:updated>2012-01-28T21:23:10.686-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cydia</category><category domain="http://www.blogger.com/atom/ns#">iphone</category><title>On-iPhone Development Environment</title><description>&lt;h1 id="on-iphone-development-environment"&gt;

On-iPhone Development&amp;nbsp;Environment&lt;/h1&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#on-iphone-development-environment"&gt;On-iPhone Development Environment&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#getting-shell-access"&gt;Getting Shell Access&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#getting_an_editor"&gt;Getting an&amp;nbsp;Editor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#setting_up_sudo"&gt;Setting Up &lt;code&gt;sudo&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#logging_in_as_mobile"&gt;Logging In as &lt;code&gt;mobile&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#installing-gcc-and-friends"&gt;Installing &lt;span class="caps"&gt;GCC&lt;/span&gt; and&amp;nbsp;Friends&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#fixing-whats-broken"&gt;Fixing What’s Broken&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#libraries"&gt;Libraries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#headers"&gt;Headers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#manual_header_modifications"&gt;Manual Header&amp;nbsp;Modifications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#minor_details"&gt;Minor&amp;nbsp;Details&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#testing-your-gcc"&gt;Testing your&amp;nbsp;&lt;span class="caps"&gt;GCC&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gamma-level.com/iphoneos/ports/environment#youre-done"&gt;You’re&amp;nbsp;Done!&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
Often, for some of the trickier packages to build (like Emacs or most
Python-based programs), it is easier to have a development environment
on the device than to deal with a cross-compiler. The method I outline
here is one way to get one. It takes up room, and it’s outdated, but
it works for almost anything you’d want to do, if you put up with&amp;nbsp;it.&lt;br /&gt;
I’m not going to pretend that this is the best way to do this. I
developed this method by changing the one I used for &lt;span class="caps"&gt;OS&lt;/span&gt; 1.0 a little
at a time when a new &lt;span class="caps"&gt;OS&lt;/span&gt; came out. It’s a bit of a hack right now, but
it works. I point out where I think an improvement could be&amp;nbsp;made.&lt;br /&gt;
I’m going to assume you have a freshly jailbroken iPhone or iPad. Feel
free to skip steps if you think you&amp;nbsp;can.&lt;br /&gt;
I’ve tried to write this as accurately as possible, but errors do
happen. Feel free to &lt;a href="http://gamma-level.com/contact"&gt;contact me&lt;/a&gt; to work things out. Worst case
scenario? You have to do a full restore of your device, which is
annoying but not hard. Be sure to have backups, but it shouldn’t come
to&amp;nbsp;that!&lt;br /&gt;
(Also, standard disclaimer: I claim &lt;i&gt;no responsibility&lt;/i&gt; if somehow you
make your device blow up, or otherwise fail, while using this&amp;nbsp;guide.)&lt;br /&gt;
For this guide, I’m going to assume at least passing familiarity with
the unix shell. After all, you’re here for a development environment!
Above that, I’ll try to explain what I feel is needed to&amp;nbsp;continue.&lt;br /&gt;
Finally, this guide was written for iOS 3.2 on the iPad. It shouldn’t
be significantly different for similar versions on both the iPhone and
iPad, though. Particularly, it seems to still work on a jailbroken
iPad running iOS&amp;nbsp;4.2.1.&lt;br /&gt;
Special thanks must go to Børre Ludvigsen, who patiently worked
through this guide on his own and helped me iron out most of the
bigger&amp;nbsp;issues.&lt;br /&gt;
Let’s get&amp;nbsp;started!&lt;br /&gt;
&lt;h2 id="getting-shell-access"&gt;

Getting Shell&amp;nbsp;Access&lt;/h2&gt;
More than likely, since you’re here at all, you’ve already done
this. It’s included here for completeness. Feel free to skip&amp;nbsp;ahead!&lt;br /&gt;
If you’ve just jailbroken, install the OpenSSH package. Also,
installing the OpenSSH reconnect helper and Insomnia is a good
idea. The helper will reconnect you automatically if you lose your
shell connection, and Insomnia keeps that from happening at
all. Nothing is more annoying that having to fidget with your device
just to keep the Wifi&amp;nbsp;up!&lt;br /&gt;
You will also need to install &lt;b style="color: red;"&gt;“&lt;span class="caps"&gt;APT&lt;/span&gt; 0.7 Strict” and “Core Utilities”&lt;/b&gt;
from Cydia. The first will let us easily install Cydia packages from
the command line, which is a lot more convenient, and the second is
handy for working on the command&amp;nbsp;line.&lt;br /&gt;
&lt;span class="caps"&gt;SSH&lt;/span&gt; in to your device with the username &lt;code&gt;root&lt;/code&gt; and the password
&lt;code&gt;alpine&lt;/code&gt;. We’re going to change this now, for security, and then we’ll
give the user &lt;code&gt;mobile&lt;/code&gt; a password so we can log in without being&amp;nbsp;root.&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; passwd
&lt;span class="go"&gt;Changing password for root.&lt;/span&gt;
&lt;span class="go"&gt;New password: [type a password here]&lt;/span&gt;
&lt;span class="go"&gt;Retype new password: [repeat it here]&lt;/span&gt;
&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; passwd mobile
&lt;span class="go"&gt;Changing password for mobile.&lt;/span&gt;
&lt;span class="go"&gt;New password: [type a different or same password here]&lt;/span&gt;
&lt;span class="go"&gt;Retype new password: [again...]&lt;/span&gt;
&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; 
&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="getting_an_editor"&gt;

Getting an&amp;nbsp;Editor&lt;/h3&gt;
Right now we have no way of editing files. For now, I recommend
installing &lt;code&gt;nano&lt;/code&gt;. It’s lightweight and easy to wrap your head
around. If you’ve never used it before, look around the web for a
&lt;a href="http://dwabbott.com/nano.html"&gt;&lt;span class="caps"&gt;GNU&lt;/span&gt; nano tutorial&lt;/a&gt;. If &lt;code&gt;nano&lt;/code&gt;‘s not your thing, you could also install
&lt;code&gt;vim&lt;/code&gt; or even &lt;code&gt;emacs&lt;/code&gt; (though for &lt;code&gt;emacs&lt;/code&gt;, you need my &lt;a href="http://gamma-level.com/cydia/info"&gt;Cydia repository&lt;/a&gt;).&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; apt-get install nano &lt;span class="c"&gt;# or 'vim', or 'emacs', or...&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
(&lt;b&gt;Note&lt;/b&gt;: I usually run &lt;code&gt;nano&lt;/code&gt; as &lt;code&gt;nano -w&lt;/code&gt;, which keeps &lt;code&gt;nano&lt;/code&gt; from
automatically wrapping lines, which can ruin most configuration&amp;nbsp;files.)&lt;br /&gt;
&lt;h3 id="setting_up_sudo"&gt;

Setting Up &lt;code&gt;sudo&lt;/code&gt;&lt;/h3&gt;
Working as root is bad, &lt;i&gt;very&lt;/i&gt; bad. I’ve accidentaly deleted my &lt;code&gt;/usr&lt;/code&gt;
once, bricking my iPad. However, it gets annoying to have to &lt;code&gt;su&lt;/code&gt; into
root every time you want to install something. So let’s install
&lt;code&gt;sudo&lt;/code&gt;!&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; apt-get install sudo
&lt;/pre&gt;
&lt;/div&gt;
Now we need to edit the sudoers file to make &lt;code&gt;sudo&lt;/code&gt; useful. We set the
&lt;code&gt;EDITOR&lt;/code&gt; environment variable to keep &lt;code&gt;visudo&lt;/code&gt; from complaining that
&lt;code&gt;vi&lt;/code&gt; isn’t there. If you’le using &lt;code&gt;vim&lt;/code&gt;, you can leave it&amp;nbsp;out.&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ root#&lt;/span&gt; &lt;span class="nv"&gt;&lt;span class="caps"&gt;EDITOR&lt;/span&gt;&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;nano visudo
&lt;/pre&gt;
&lt;/div&gt;
Right below the line that says “&lt;code&gt;root ALL=(ALL) ALL&lt;/code&gt;“, write the
similar line “&lt;code&gt;mobile ALL=(ALL) ALL&lt;/code&gt;“, then save and&amp;nbsp;exit.&lt;br /&gt;
(&lt;b&gt;Note&lt;/b&gt;: when you run &lt;code&gt;sudo&lt;/code&gt; as &lt;code&gt;mobile&lt;/code&gt;, it will ask you for a
password sometimes. This is &lt;code&gt;mobile&lt;/code&gt;‘s password, not &lt;code&gt;root&lt;/code&gt;‘s.)&lt;br /&gt;
&lt;h3 id="logging_in_as_mobile"&gt;

Logging In as &lt;code&gt;mobile&lt;/code&gt;&lt;/h3&gt;
Before we continue, we’re going to drop our superuser privelege. Log
out and log back in as mobile. As a test, make sure &lt;code&gt;sudo&lt;/code&gt; is working
fine. It’ll give you a nice scary administration notice when you run
it the first time, as a&amp;nbsp;bonus!&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo whoami

&lt;span class="go"&gt;We trust you have received the usual lecture from the local System&lt;/span&gt;
&lt;span class="go"&gt;Administrator. It usually boils down to these three things:&lt;/span&gt;

&lt;span class="go"&gt;    #1) Respect the privacy of others.&lt;/span&gt;
&lt;span class="go"&gt;    #2) Think before you type.&lt;/span&gt;
&lt;span class="go"&gt;    #3) With great power comes great responsibility.&lt;/span&gt;

&lt;span class="go"&gt;Password: [type in mobile's password]&lt;/span&gt;
&lt;span class="go"&gt;root&lt;/span&gt;
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
The last line saying &lt;code&gt;root&lt;/code&gt; is the key: it means &lt;code&gt;sudo&lt;/code&gt; is set up right
and correctly giving you root&amp;nbsp;access.&lt;br /&gt;
&lt;h2 id="installing-gcc-and-friends"&gt;

Installing &lt;span class="caps"&gt;GCC&lt;/span&gt; and&amp;nbsp;Friends&lt;/h2&gt;
Finally, we get to the &lt;i&gt;fun&lt;/i&gt; part. First off, let’s install some
general utilities for our development&amp;nbsp;environment:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo apt-get install ldid make wget patch gawk
&lt;/pre&gt;
&lt;/div&gt;
Some explanation: &lt;code&gt;ldid&lt;/code&gt; modifies programs to fake iPhone &lt;span class="caps"&gt;OS&lt;/span&gt; into
running them like official binaries. &lt;code&gt;make&lt;/code&gt; is the standard &lt;span class="caps"&gt;GNU&lt;/span&gt; build
tool. We’ll use &lt;code&gt;wget&lt;/code&gt; to fetch tarballs from the internet right in
the terminal, and then &lt;code&gt;patch&lt;/code&gt; to patch them. Autotools, which just
about every package uses, needs &lt;code&gt;gawk&lt;/code&gt; to&amp;nbsp;run.&lt;br /&gt;
Next, we’re going to install &lt;code&gt;gcc&lt;/code&gt; itself, but if we just go and do
it, we’ll run into a problem with the &lt;code&gt;libgcc&lt;/code&gt; offered on Telesphoreo:
it refuses to install, because it breaks the system. Instead, we’ll
install the dummy package found &lt;a href="http://www.telesphoreo.org/ticket/163"&gt;here&lt;/a&gt;, and trick &lt;span class="caps"&gt;APT&lt;/span&gt;
into thinking it’s already&amp;nbsp;installed.&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; wget http://gammalevel.com/forever/fake-libgcc_1.0_iphoneos-arm.deb
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo dpkg -i fake-libgcc_1.0_iphoneos-arm.deb
&lt;/pre&gt;
&lt;/div&gt;
Now we’re prepared to install &lt;code&gt;gcc&lt;/code&gt; and some development headers. Note
that these headers are &lt;i&gt;compatibility&lt;/i&gt; headers, meant to ease the
transition from iOS 1.0 to 2.0. That is, they are &lt;i&gt;old&lt;/i&gt;. I only trust
them for the standard &lt;span class="caps"&gt;POSIX&lt;/span&gt; headers, and even for that they fail in
some parts. &lt;i&gt;This&lt;/i&gt; is one place that could probably be improved: more
on that&amp;nbsp;later.&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo apt-get install iphone-gcc com.bigboss.20toolchain
&lt;/pre&gt;
&lt;/div&gt;
If you’re anything like me, you’ll be itching to write a little
“Hello, world!” program right now and try out your shiny new
&lt;code&gt;gcc&lt;/code&gt;. Well, you’d be dissappointed. These packages are so old that
they need fixing&amp;nbsp;first.&lt;br /&gt;
&lt;h2 id="fixing-whats-broken"&gt;

Fixing What’s&amp;nbsp;Broken&lt;/h2&gt;
&lt;h3 id="libraries"&gt;

Libraries&lt;/h3&gt;
Unfortunately, you have some downloading to do. Go fetch the &lt;a href="http://developer.apple.com/iphone/"&gt;iPhone
Developer &lt;span class="caps"&gt;SDK&lt;/span&gt;&lt;/a&gt;. Once you have it, on a Mac, simply install
it. If you’re not on a Mac, you’ll need an archive tool that reads
DMGs and Mac packages. I know that &lt;a href="http://www.7-zip.org/"&gt;7zip&lt;/a&gt; works well on Windows, and
probably works fine through &lt;a href="http://www.winehq.org/"&gt;Wine&lt;/a&gt; on other&amp;nbsp;systems.&lt;br /&gt;
We’ll be looking in the &lt;code&gt;iPhoneOS3.2.sdk&lt;/code&gt; directory, but by all means
change this version number if you need to. On a Mac with the installed
official &lt;span class="caps"&gt;SDK&lt;/span&gt;, this is at
“&lt;code&gt;/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk&lt;/code&gt;“.
If you’re using 7zip, open the Xcode &lt;span class="caps"&gt;DMG&lt;/span&gt;, then the &lt;code&gt;5.hfs&lt;/code&gt; partition,
which will take a while. Then, open up
“&lt;code&gt;iPhoneSDK/Packages/iPhoneSDKHeadersAndLibs.pkg&lt;/code&gt;” for the most recent
version, or “&lt;code&gt;.../iPhoneSDKXXX.pkg&lt;/code&gt;” for a different version. Inside
that package, open &lt;code&gt;Payload&lt;/code&gt;, then &lt;code&gt;Payload~&lt;/code&gt;, then “&lt;code&gt;.&lt;/code&gt;“. The
directory we are looking for is then at
“&lt;code&gt;Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk&lt;/code&gt;“.&lt;br /&gt;
We need to copy libraries from the official &lt;span class="caps"&gt;SDK&lt;/span&gt; on to the
device. &lt;code&gt;scp&lt;/code&gt; works really well, if you have it: it transfers files
over &lt;span class="caps"&gt;SSH&lt;/span&gt;. However, anything that gets files from your computer to your
device will&amp;nbsp;work.&lt;br /&gt;
(&lt;b&gt;Note&lt;/b&gt; for the interested: iPhoneOS is missing libraries to link
against, so we’ll be copying them over. Later on, we’ll be editing
system headers. Also, none of the frameworks on the device come with
headers, so you’ll need to copy those over as you need them. It occurs
to me that we might be able to just copy over the &lt;i&gt;entire&lt;/i&gt; official
&lt;span class="caps"&gt;SDK&lt;/span&gt;, and skip doing this by hand. It &lt;i&gt;might&lt;/i&gt; work, but I haven’t tried
it. For now, I just copy over whatever’s missing as I run into it. I
would like to look into this,&amp;nbsp;though.)&lt;br /&gt;
In the directory &lt;code&gt;iPhoneOS3.2.sdk/usr/lib&lt;/code&gt;, you will find the
following&amp;nbsp;files:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;libgcc_s.1.dylib
libSystem.B.dylib
libstdc++.6.0.9.dylib
libiconv.2.dylib
&lt;/pre&gt;
&lt;/div&gt;
We need to copy these files to &lt;code&gt;mobile&lt;/code&gt;‘s home directory,
&lt;code&gt;/var/mobile&lt;/code&gt;, on the device. Once there, reopen your shell on your
device and move them to &lt;code&gt;/usr/lib&lt;/code&gt;:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo mv *.dylib /usr/lib/
&lt;/pre&gt;
&lt;/div&gt;
We also need to reconstruct a few&amp;nbsp;symlinks:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libSystem.B.dylib /usr/lib/libSystem.dylib
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libSystem.dylib /usr/lib/libc.dylib
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libSystem.dylib /usr/lib/libm.dylib

&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libstdc++.6.0.9.dylib /usr/lib/libstdc++.6.dylib
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libstdc++.6.dylib /usr/lib/libstdc++.dylib

&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/lib/libiconv.2.dylib /usr/lib/libiconv.2.4.0.dylib
&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="headers"&gt;

Headers&lt;/h3&gt;
We also need to copy over some key C++ headers. In
&lt;code&gt;iPhoneOS3.2.sdk/usr/include/c++/4.0.0/arm-apple-darwin9&lt;/code&gt;, there is a
directory named &lt;code&gt;bits&lt;/code&gt;. Copy that directory and all it contains to
your device, then install&amp;nbsp;it:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo mkdir /var/include/c++/4.0.0/arm-apple-darwin9
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo mv bits /var/include/c++/4.0.0/arm-apple-darwin9/
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /var/include/c++/4.0.0/arm-apple-darwin9/&lt;span class="o"&gt;{&lt;/span&gt;,v6&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /var/include/c++/4.0.0/arm-apple-darwin&lt;span class="o"&gt;{&lt;/span&gt;9,8&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s &lt;span class="o"&gt;{&lt;/span&gt;/var,/usr&lt;span class="o"&gt;}&lt;/span&gt;/include/c++
&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="manual_header_modifications"&gt;

Manual Header&amp;nbsp;Modifications&lt;/h3&gt;
Not only are there critical system libraries missing, but some of the
headers are just plain &lt;i&gt;wrong&lt;/i&gt;, too. It seems that somewhere along the
line, iPhone &lt;span class="caps"&gt;OS&lt;/span&gt; moved from a 32 bit inode to a 64 bit inode, so there
are a lot of structures defined in these headers that have the wrong&amp;nbsp;size.&lt;br /&gt;
(&lt;b&gt;Note&lt;/b&gt; for the interested: Beleive me when I say that hunting down
bugs in &lt;i&gt;system headers&lt;/i&gt; is a nightmare. Just keep in mind, if you
seem to be getting random segfaults for no reason, or some extremely
subtle bug that has no reason to exist, it’s probably a system header
error I haven’t found yet! Compare the given headers with the ones
from Apple, with &lt;code&gt;__DARWIN_64_BIT_INO_T&lt;/code&gt; defined.)&lt;br /&gt;
First off, we’re going to edit
“&lt;code&gt;/private/var/include/sys/stat.h&lt;/code&gt;“. Make sure to edit with &lt;code&gt;sudo&lt;/code&gt;, so
you have write permissions! In &lt;code&gt;struct stat&lt;/code&gt;, remove the line that&amp;nbsp;says:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;ino_t&lt;/span&gt;           &lt;span class="n"&gt;st_ino&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;         &lt;span class="cm"&gt;/* [&lt;span class="caps"&gt;XSI&lt;/span&gt;] File serial number */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
Between the entries for &lt;code&gt;st_nlink&lt;/code&gt; and &lt;code&gt;st_uid&lt;/code&gt;, add this&amp;nbsp;line:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;__uint64_t&lt;/span&gt;      &lt;span class="n"&gt;st_ino&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;         &lt;span class="cm"&gt;/* [&lt;span class="caps"&gt;XSI&lt;/span&gt;] File serial number */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
After the entry for &lt;code&gt;st_ctimespec&lt;/code&gt;, add this&amp;nbsp;line:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;timespec&lt;/span&gt; &lt;span class="n"&gt;st_birthtimespec&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="cm"&gt;/* time of file creation */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
Finally, after the entries for &lt;code&gt;st_ctime&lt;/code&gt; and &lt;code&gt;st_ctimensec&lt;/code&gt;, add these&amp;nbsp;lines:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="kt"&gt;time_t&lt;/span&gt;          &lt;span class="n"&gt;st_birthtime&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;           &lt;span class="cm"&gt;/* [&lt;span class="caps"&gt;XSI&lt;/span&gt;] Time of file creation */&lt;/span&gt;
&lt;span class="kt"&gt;long&lt;/span&gt;            &lt;span class="n"&gt;st_birthtimensec&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="cm"&gt;/* nsec of file creation */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
We’re also going to edit “&lt;code&gt;/private/var/include/sys/dirent.h&lt;/code&gt;“. First,
we’re going to change the definition of &lt;code&gt;__DARWIN_MAXNAMLEN&lt;/code&gt;:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="cp"&gt;#define __DARWIN_MAXNAMLEN      1023&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
In the definition of &lt;code&gt;struct dirent&lt;/code&gt;, remove the line at the top that&amp;nbsp;says&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;ino_t&lt;/span&gt; &lt;span class="n"&gt;d_ino&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;            &lt;span class="cm"&gt;/* file number of entry */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
In its place, write&amp;nbsp;in:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;__uint64_t&lt;/span&gt; &lt;span class="n"&gt;d_ino&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="cm"&gt;/* file number of entry */&lt;/span&gt;
&lt;span class="n"&gt;__uint64_t&lt;/span&gt; &lt;span class="n"&gt;d_seekoff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
Between the entries for &lt;code&gt;d_reclen&lt;/code&gt; and &lt;code&gt;d_type&lt;/code&gt;, write&amp;nbsp;in:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;__uint16_t&lt;/span&gt; &lt;span class="n"&gt;d_namlen&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="cm"&gt;/* length of string in d_name */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
Finally, between the entries for &lt;code&gt;d_type&lt;/code&gt; and &lt;code&gt;d_name&lt;/code&gt;, remove the
line that&amp;nbsp;says:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="n"&gt;__uint8_t&lt;/span&gt; &lt;span class="n"&gt;d_namlen&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;     &lt;span class="cm"&gt;/* length of string in d_name */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
That’s&amp;nbsp;it!&lt;br /&gt;
&lt;h3 id="minor_details"&gt;

Minor&amp;nbsp;Details&lt;/h3&gt;
Some configure scripts and Makefiles (like Emacs’s) looks for the C
compiler under &lt;code&gt;cc&lt;/code&gt;, which is supposed to exist on standard
setups. Since we emphatically &lt;i&gt;don’t&lt;/i&gt; have a standard setup, we have
to make a&amp;nbsp;link.&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; sudo ln -s /usr/bin/gcc /usr/bin/cc
&lt;/pre&gt;
&lt;/div&gt;
Apparently sometimes the &lt;span class="caps"&gt;GCC&lt;/span&gt; you get won’t search &lt;code&gt;/var/include&lt;/code&gt;,
which is where all the standard C headers are located. To fix this,
add the following lines to &lt;code&gt;~/.profile&lt;/code&gt;:&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;C_INCLUDE_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/var/include
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;CPLUS_INCLUDE_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/var/include
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;OBJC_INCLUDE_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/var/include
&lt;/pre&gt;
&lt;/div&gt;
Make sure to log out and log back in for these changes to take&amp;nbsp;effect.&lt;br /&gt;
&lt;h2 id="testing-your-gcc"&gt;

Testing your&amp;nbsp;&lt;span class="caps"&gt;GCC&lt;/span&gt;&lt;/h2&gt;
If you feel so inclined, now would be the time to test out your build
environment. &lt;span class="caps"&gt;GCC&lt;/span&gt; works exactly as it does on Mac &lt;span class="caps"&gt;OS&lt;/span&gt; X, that is,
exactly like on other systems, but with added options for linking with
frameworks. Keep in mind, you may need to sign your programs before
they’ll run. I have found that I don’t, but you may need to. If your
program crashes for no reason when you start it, you need to&amp;nbsp;run&lt;br /&gt;
&lt;div class="codehilite"&gt;
&lt;pre&gt;&lt;span class="gp"&gt;iphone:~ mobile$&lt;/span&gt; ldid -S program_name
&lt;/pre&gt;
&lt;/div&gt;
There’s some way to change the system so you don’t &lt;i&gt;ever&lt;/i&gt; need to do
this, but last I heard there were some long-term&amp;nbsp;side-effects.&lt;br /&gt;
&lt;h2 id="youre-done"&gt;

You’re&amp;nbsp;Done!&lt;/h2&gt;
Congratulations!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-3039086958126546009?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/S2xbm0xMyCM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/S2xbm0xMyCM/on-iphone-development-environment.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/on-iphone-development-environment.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-2023066716628058674</guid><pubDate>Sun, 22 Jan 2012 14:48:00 +0000</pubDate><atom:updated>2012-01-28T21:24:16.687-08:00</atom:updated><title>Cách tốt nhất cập nhật lại ngày giờ cho Centos</title><description># yum install ntp&lt;br /&gt;
# chkconfig ntpd on&lt;br /&gt;
# ntpdate 0.asia.pool.ntp.org&lt;br /&gt;
# /etc/init.d/ntpd start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-2023066716628058674?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/tG6YKDP1T5E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/tG6YKDP1T5E/cach-tot-nhat-cap-nhat-lai-ngay-gio-cho.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/cach-tot-nhat-cap-nhat-lai-ngay-gio-cho.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-1582350958437791270</guid><pubDate>Wed, 18 Jan 2012 02:11:00 +0000</pubDate><atom:updated>2012-01-17T18:11:10.042-08:00</atom:updated><title>How To Fix PHP Error Notice: Undefined variable: index</title><description>Notice: Undefined index:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: red;"&gt;
Change &lt;tt&gt;php.ini&lt;/tt&gt;&lt;/div&gt;
&lt;br /&gt;
NOTE: you may have something different set for the error_reporting , 
just make sure you make the changes on the line without a semi-colon 
because a semi-colon at the begining of the line mean its a comment
&lt;br /&gt;
&lt;br /&gt;So now change it to:
&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Code:&lt;/strong&gt;&lt;br /&gt;
&lt;div class="code" style="margin-top: 5px; margin: 20px;"&gt;
&lt;b&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;Save your changes and then restart you Apache server for the changes to take affect witht his command: &lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Code:&lt;/strong&gt;&lt;div class="code" style="margin-top: 5px; margin: 20px;"&gt;
&lt;b&gt;/etc/init.d/httpd restart&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-1582350958437791270?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/ZfE3XDTlrSo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/ZfE3XDTlrSo/how-to-fix-php-error-notice-undefined.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/how-to-fix-php-error-notice-undefined.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-1768556091703089046</guid><pubDate>Fri, 13 Jan 2012 03:56:00 +0000</pubDate><atom:updated>2012-01-12T19:56:04.096-08:00</atom:updated><title>Remove IP Spamhaus</title><description>Check at server &lt;br /&gt;
[root@dedi25 ~]# &lt;b&gt;telnet mx1.mail.sg1.yahoo.com 25&lt;/b&gt;&lt;br /&gt;Trying 124.108.116.109...&lt;br /&gt;Connected to mx1.mail.sg1.yahoo.com (124.108.116.109).&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;&lt;span style="color: red;"&gt;553
 5.7.1 [BL21] Connections will not be accepted from 112.213.94.125, 
because the ip is in Spamhaus's list; see 
http://postmaster.yahoo.com/550-bl23.html&lt;/span&gt;&lt;br /&gt;Connection closed by foreign host.&lt;br /&gt;[root@dedi25 ~]#&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remove IP &lt;span style="color: red;"&gt;Spamhaus&lt;/span&gt;&lt;br /&gt;
http://cbl.abuseat.org/lookup.cgi?ip=125.23.9.125&lt;br /&gt;
 &lt;br /&gt;
Check &lt;br /&gt;
http://www.spamhaus.org/query/bl?ip=125.23.9.125&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-1768556091703089046?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/0d10DGq1b58" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/0d10DGq1b58/remove-ip-spamhaus.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/remove-ip-spamhaus.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-1464992800510441560</guid><pubDate>Wed, 11 Jan 2012 07:00:00 +0000</pubDate><atom:updated>2012-01-10T23:01:45.770-08:00</atom:updated><title>Hướng dẫn cấu hình crontab not send email</title><description>[root@dedi94125 ~]# vi /etc/crontab&lt;br /&gt;
&lt;br /&gt;
SHELL=/bin/bash&lt;br /&gt;
PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;
&lt;b&gt;&lt;span style="color: red;"&gt;MAILTO=root&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
HOME=/&lt;br /&gt;
&lt;br /&gt;
# run-parts&lt;br /&gt;
01 * * * * root run-parts /etc/cron.hourly&lt;br /&gt;
02 4 * * * root run-parts /etc/cron.daily&lt;br /&gt;
22 4 * * 0 root run-parts /etc/cron.weekly&lt;br /&gt;
42 4 1 * * root run-parts /etc/cron.monthly&lt;br /&gt;
&lt;br /&gt;
01 01 * * * root /var/qmail/bin/dh_key 2&amp;gt;&amp;amp;1 &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chú ý: nếu muốn không send email thì MAILTO = rỗng&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cách 2:&amp;nbsp; thêm vào thông số&lt;/b&gt;&amp;nbsp; &lt;i style="color: red;"&gt;&lt;b&gt;&lt;code&gt;&lt;span class="str"&gt;/dev/&lt;/span&gt;&lt;span class="kwd"&gt;null&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="lit"&gt;2&lt;/span&gt;&lt;span class="pun"&gt;&amp;gt;&amp;amp;&lt;/span&gt;&lt;span class="lit"&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="lang-php prettyprint"&gt;&lt;code&gt;&lt;span class="com"&gt;#Before&lt;/span&gt;&lt;span class="pln"&gt;
&lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; php &lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;path&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;to&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;script&lt;/span&gt;&lt;span class="com"&gt;#After&lt;/span&gt;&lt;span class="pln"&gt;
&lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt; php &lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;path&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;to&lt;/span&gt;&lt;span class="pun"&gt;/&lt;/span&gt;&lt;span class="pln"&gt;script &lt;/span&gt;&lt;span class="pun"&gt;&amp;gt;&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="str"&gt;/dev/&lt;/span&gt;&lt;span class="kwd"&gt;null&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="lit"&gt;2&lt;/span&gt;&lt;span class="pun"&gt;&amp;gt;&amp;amp;&lt;/span&gt;&lt;span class="lit"&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="lang-php prettyprint"&gt;&lt;code&gt;&lt;span class="lit"&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="lang-php prettyprint"&gt;&lt;code&gt;&lt;span class="lit"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="pln"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-1464992800510441560?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/KbokIA7_3Sg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/KbokIA7_3Sg/huong-dan-cau-hinh-crontab-not-send.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/huong-dan-cau-hinh-crontab-not-send.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-6984805207227304438</guid><pubDate>Tue, 10 Jan 2012 04:05:00 +0000</pubDate><atom:updated>2012-01-09T20:05:47.318-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Linux - Solaris</category><title>How To scp, ssh and rsync without prompting for password</title><description>&lt;span style="font-size: small;"&gt;Lets say you want to copy between two hosts &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_src&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style="font-size: small;"&gt;and &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_dest&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;.
&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_src&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;
&lt;/b&gt;&lt;span style="font-size: small;"&gt;is the host where you would run the &lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;scp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;ssh&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;or&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;rsyn&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-size: small;"&gt;command, &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;irrespective
of the direction of the file copy&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;!&lt;/span&gt;&lt;br /&gt;

&lt;ol&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;On &lt;/span&gt;&lt;b style="color: red;"&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_src&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;,
        run this command as the user that runs &lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;scp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;/&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;/&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;rsync&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;$
        &lt;b&gt;ssh-keygen -t rsa&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

        &lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;i&gt;&lt;code&gt;Generating public/private rsa key pair.&lt;br /&gt;Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;Enter passphrase (empty for no passphrase): &lt;br /&gt;Enter same passphrase again: &lt;br /&gt;Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;The key fingerprint is:&lt;br /&gt;82:c6:21:5b:9e:07:6e:6d:3b:66:47:eb:9e:ff:6a:bd root@localhost&lt;/code&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;b&gt;&lt;code&gt;Chú ý:&amp;nbsp;&lt;/code&gt;&lt;span style="font-size: small;"&gt; Nếu không muốn hiện bản nhập key thì &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;code&gt;&lt;b&gt;Enter passphrase &lt;span style="color: red;"&gt;bằng rỗng&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;This will prompt for a passphrase. Just press the
        enter key. It'll then generate an identification (private key) and a
        public key. Do not ever share the private key with anyone!
        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;ssh-keygen&lt;/span&gt; shows
        where it saved the public key. This is by default &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;~/.ssh/id_rsa.pub&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;

        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;Your
        public key has been saved in &lt;your_home_dir&gt;/.ssh/id_rsa.pub&lt;/your_home_dir&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;br /&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;Transfer the&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;id_rsa.pub&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;file to&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_dest&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;by either&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;ftp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;,
        &lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;scp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;,&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;rsync&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;or any other method.&lt;/span&gt;&lt;/span&gt;
                &lt;br /&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="3"&gt;
&lt;li&gt;&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;On
        &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;host_des&lt;/span&gt;t&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;,
        login as the remote user which you plan to use when you run &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;scp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;,
        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;ssh&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;or &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;rsync&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;on &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;host_src&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;.&lt;/span&gt;&lt;/span&gt;
                &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;Copy the contents
        of &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;id_rsa.pub&lt;/span&gt;&lt;/span&gt;
        &lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;to &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;~/.ssh/authorized_keys&lt;/span&gt;&lt;/span&gt;
                &lt;br /&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="4"&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;$ cat
        id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;br /&gt;$ chmod 700
        ~/.ssh/authorized_keys&lt;/span&gt;&lt;/span&gt;&lt;/ol&gt;
&lt;ol start="5"&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;Cần copy nội dung&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;id_rsa.pub ghi vào file &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;~/.ssh/authorized_keys&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;Nếu có nhiều key thì copy vào bên dưới file&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;&lt;span style="font-size: small;"&gt;~/.ssh/authorized_keys&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;&lt;span style="font-size: small;"&gt;If this file does not
        exists, then the above command will create it. Make sure you remove
        permission for others to read this file. If its a public key, why
        prevent others from reading this file? Probably, the owner of the
        key has distributed it to a few trusted users and has not placed any
        additional security measures to check if its really a trusted user.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Note that &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;ssh&lt;/span&gt;&lt;/b&gt;
        by default does not allow root to log in. This has to be explicitly
        enabled on &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_dest&lt;/span&gt;&lt;/b&gt;.
         This can be done by editing &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;/etc/ssh/sshd_config&lt;/span&gt;&lt;/b&gt;
        and changing the option of &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;PermitRootLogin&lt;/span&gt;&lt;/b&gt;
        from &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;no&lt;/span&gt;&lt;/b&gt;
        to &lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;yes&lt;/span&gt;&lt;/b&gt;.
         Don't forget to restart &lt;b&gt;sshd&lt;/b&gt; so that it reads the modified config file. Do this &lt;i&gt;&lt;b&gt;only&lt;/b&gt;&lt;/i&gt;&lt;span style="font-style: normal;"&gt;&lt;span&gt;
        if you want to use the root login.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;Well, thats it. Now you can run &lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;scp&lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;,
&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;ssh &lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;and
&lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;rsync &lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;on
&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_src&lt;/span&gt;&lt;/b&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;connecting to &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_dest&lt;/span&gt;&lt;/b&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;and it won't prompt for the password.
Note that this will still prompt for the password if you are running
the commands on &lt;/span&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_dest
&lt;/span&gt;&lt;span style="font-family: Thorndale,serif;"&gt;connecting to &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_src&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;.
You can reverse the steps above (generate the public key on &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_dest&lt;/span&gt;&lt;/b&gt;
&lt;span style="font-family: Thorndale,serif;"&gt;and copy it to &lt;/span&gt;&lt;b&gt;&lt;span style="font-family: LucidaSansTypewriter,monospace;"&gt;host_src&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Thorndale,serif;"&gt;)
and you have a two way setup ready!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-6984805207227304438?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/R855Oy1weZQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/R855Oy1weZQ/how-to-scp-ssh-and-rsync-without.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/how-to-scp-ssh-and-rsync-without.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-34874574295179801</guid><pubDate>Wed, 04 Jan 2012 04:20:00 +0000</pubDate><atom:updated>2012-01-03T20:21:00.293-08:00</atom:updated><title>Hướng dẫn install mtop cho centos 32bit</title><description>&lt;b&gt;wget &lt;a href="http://heaveniphone.com/redirect-to/?redirect=http%3A%2F%2Fdag.wieers.com%2Frpm%2Fpackages%2Fmtop%2Fmtop-0.6.6-1.2.el5.rf.noarch.rpm" target="_blank"&gt;http://dag.wieers.com/rpm/packages/m....rf.noarch.rpm&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@dedi94125 ~]# &lt;b&gt;rpm -ivh mtop-0.6.6-1.2.el5.rf.noarch.rpm&lt;/b&gt;&lt;br /&gt;
warning: mtop-0.6.6-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6&lt;br /&gt;
error: Failed dependencies:&lt;br /&gt;
perl(Curses) is needed by mtop-0.6.6-1.2.el5.rf.noarch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- cần phải cài gói perl-Curses-1.28-1.el5.rf.i386.rpm&lt;br /&gt;
[root@dedi94125 ~]# &lt;b&gt;wget &lt;a href="http://heaveniphone.com/redirect-to/?redirect=http%3A%2F%2Fpkgs.repoforge.org%2Fperl-Curses%2Fperl-Curses-1.28-1.el5.rf.i386.rpm" target="_blank"&gt;http://pkgs.repoforge.org/perl-Curse...l5.rf.i386.rpm&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
[root@dedi94125 ~]# &lt;b&gt;rpm -ivh perl-Curses-1.28-1.el5.rf.i386.rpm&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@dedi94125 ~]# mtop --help&lt;br /&gt;
&lt;br /&gt;
mtop ver 0.6.6/20120104&lt;br /&gt;
&lt;br /&gt;
Copyright (C) 2002 Marc Prewitt/Chelsea Networks &lt;mprewitt@chelsea.net&gt;&lt;br /&gt;
mtop comes with ABSOLUTELY NO WARRANTY. This is free software, and you are&lt;br /&gt;
welcome to redistribute it under certain conditions; see the COPYING file &lt;br /&gt;
for details.&lt;br /&gt;
&lt;br /&gt;
Usage: mtop [OPTIONS]&lt;br /&gt;
&lt;br /&gt;
  --version                  Show version number and exit&lt;br /&gt;
  --help                     Show this screen and exit&lt;br /&gt;
  --host={mysql_host}        Connect to the MySQL server on {mysql_host}&lt;br /&gt;
  --dbuser={mysql_user}      Connect to the MySQL server as {mysql_user}&lt;br /&gt;
  --password={mysqluser_pw}  Use {mysqluser_pw} when connecting&lt;br /&gt;
  --seconds={refresh}        Refresh the screen each {refresh} seconds&lt;br /&gt;
  --[no]idle                 Display/don't display idle threads&lt;br /&gt;
  --filter-user={regex}      Filter display based on user regular expression&lt;br /&gt;
  --filter-host={regex}      Filter display based on host regular expression&lt;br /&gt;
  --filter-db={regex}        Filter display based on db regular expression&lt;br /&gt;
  --filter-command={regex}   Filter display based on command regular expression&lt;br /&gt;
  --filter-state={regex}     Filter display based on state regular expression&lt;br /&gt;
  --filter-info={regex}      Filter display based on info regular expression&lt;br /&gt;
  --user={user}              Display threads for only {user}&lt;br /&gt;
  --manualrefresh            Wait for user input between refreshes&lt;br /&gt;
&lt;br /&gt;
All options can be truncated to their shortest unique abbreviation.&lt;br /&gt;
&lt;br /&gt;
See 'man mtop' or 'perldoc mtop' for more information.&lt;br /&gt;
&lt;br /&gt;
[root@dedi94125 ~]# mtop --dbuser=databasname&lt;/mprewitt@chelsea.net&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-34874574295179801?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/aNCZ0nenq1E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/aNCZ0nenq1E/huong-dan-install-mtop-cho-centos-32bit.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2012/01/huong-dan-install-mtop-cho-centos-32bit.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-302366350802499238</guid><pubDate>Thu, 22 Dec 2011 07:52:00 +0000</pubDate><atom:updated>2011-12-21T23:52:39.527-08:00</atom:updated><title>Setup Oracle 11g 11.0.2.1 for Solaris 10 - 64bit</title><description>setup vnc&lt;br /&gt;svccfg -s application/x11/x11-server add display1&lt;br /&gt;svccfg -s application/x11/x11-server:display1 addpg options application&lt;br /&gt;svccfg -s application/x11/x11-server:display1 addpropvalue options/server astring: "/usr/X11/bin/Xvnc"&lt;br /&gt;svccfg -s application/x11/x11-server:display1 addpropvalue options/server_args astring: '"SecurityTypes=None"'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;vncserver &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mount iso for Solaris&lt;br /&gt;root@TT4-BCCLML1-S # lofiadm -a /u01/sol-10-u10-ga2-sparc-dvd.iso &lt;br /&gt;/dev/lofi/1&lt;br /&gt;&lt;br /&gt;mkdir /dvd_iso&lt;br /&gt;root@TT4-BCCLML1-S # mount -F hsfs -o ro /dev/lofi/1 /dvd_iso &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root@TT4-BCCLML1-S # cd /dvd_iso/&lt;br /&gt;&lt;br /&gt;Use umount command to unmount image:&lt;br /&gt;# umount /mnt&lt;br /&gt;&lt;br /&gt;Now remove/free block device:&lt;br /&gt;# lofiadm -d /dev/lofi/1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/usr/sbin/prtconf | grep "Memory size"&lt;br /&gt;&lt;br /&gt;/usr/sbin/swap -l&lt;br /&gt;&lt;br /&gt;#check&amp;nbsp; 64bit&lt;br /&gt;/bin/isainfo -kv&lt;br /&gt;&lt;br /&gt;uname -r&lt;br /&gt;&lt;br /&gt;cat /etc/release&lt;br /&gt;&lt;br /&gt;df -k /tmp&lt;br /&gt;&lt;br /&gt;pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot \&lt;br /&gt;&amp;nbsp; SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt&lt;br /&gt;&lt;br /&gt;#cai goi&lt;br /&gt;pkgadd -d /dvd_iso/Solaris_10/Product SUNWi1cs SUNWi15cs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;nếu cài oracle trước đó&lt;br /&gt;more /var/opt/oracle/oraInst.loc&lt;br /&gt;&lt;br /&gt;root@kinhnghiem # more /var/opt/oracle/oraInst.loc&lt;br /&gt;inventory_loc=/u02/app/oraInventory&lt;br /&gt;inst_group=oinstall&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;prtconf | grep Mem&lt;br /&gt;Memory size: 32760 Megabytes&lt;br /&gt;groupadd oinstall&lt;br /&gt;groupadd dba&lt;br /&gt;groupadd oper&lt;br /&gt;&lt;br /&gt;useradd -g oinstall -G dba -d /export/home/oracle oracle&lt;br /&gt;mkdir /export/home/oracle&lt;br /&gt;chown oracle:oinstall /export/home/oracle&lt;br /&gt;passwd -r files oracle&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ id -p&lt;br /&gt;uid=59008(oracle) gid=10001(dba) projid=3(default)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;By default, Oracle 10 will allocate 40% of the total system physical memory to create SGA and PGA. So for 32G system memory, the shmmax for Oracle 10 will be 0.4*32G = 12.8G.&lt;br /&gt;&lt;br /&gt;40% 13105&lt;br /&gt;50% 16442&lt;br /&gt;75% 24536&lt;br /&gt;100% 32764&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# cat /etc/project&lt;br /&gt;projmod -sK "project.max-shm-memory=(privileged,10G,deny)" oracle&lt;br /&gt;projmod -p 100&amp;nbsp; -c 'lptrung add' -U oracle -G dba&amp;nbsp; -K 'project.max-shm-memory=(privileged,21G,deny)' oracle&lt;br /&gt;&lt;br /&gt;projadd -p 100&amp;nbsp; -c 'lptrung add' -U oracle -G dba&amp;nbsp; -K 'project.max-shm-memory=(privileged,21G,deny)' projoracle&lt;br /&gt;&lt;br /&gt;usermod -K project=projoracle oracle&lt;br /&gt;&lt;br /&gt;projects -l&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mkdir -p /u01/app/oracle/product/11.2.0.2/db_1&lt;br /&gt;chown -R oracle:oinstall /u01&lt;br /&gt;&lt;br /&gt;vi .profile&lt;br /&gt;&lt;br /&gt;TMP=/tmp; export TMP&lt;br /&gt;TMPDIR=$TMP; export TMPDIR&lt;br /&gt;# Select the appropriate ORACLE_BASE&lt;br /&gt;ORACLE_HOSTNAME=KINHNGHIEM-S; export ORACLE_HOSTNAME&lt;br /&gt;ORACLE_UNQNAME=bcclml; export ORACLE_UNQNAME&lt;br /&gt;ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE&lt;br /&gt;ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2/db_1; export ORACLE_HOME&lt;br /&gt;ORACLE_SID=bcclml; export ORACLE_SID&lt;br /&gt;PATH=$ORACLE_HOME/bin:$PATH; export PATH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;solaris&lt;br /&gt;the following command displays a summary of I/O activity ten times, at ten-second intervals: &lt;br /&gt;sar -b 10 10&lt;br /&gt;&lt;br /&gt;update 11.2.0.2 &lt;br /&gt;Fix error tcp_largest_anon_port .... &lt;br /&gt;&lt;br /&gt;bash-3.00# ndd -set /dev/tcp tcp_largest_anon_port 65535&lt;br /&gt;bash-3.00# ndd -set /dev/udp udp_smallest_anon_port 9000&lt;br /&gt;bash-3.00# ndd -set /dev/udp udp_largest_anon_port 65500&lt;br /&gt;bash-3.00# ndd -set /dev/tcp tcp_smallest_anon_port 9000&lt;br /&gt;bash-3.00# ndd -set /dev/tcp tcp_largest_anon_port 65500&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-302366350802499238?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/JEq5VQS7fOs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/JEq5VQS7fOs/setup-oracle-11g-11021-for-solaris-10.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2011/12/setup-oracle-11g-11021-for-solaris-10.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-8045403189647487092</guid><pubDate>Wed, 21 Dec 2011 04:07:00 +0000</pubDate><atom:updated>2011-12-25T22:51:15.471-08:00</atom:updated><title>Map san xuống server solaris sử dụng UFS</title><description>&lt;span style="color: blue;"&gt;-- Kiểm tra ổ dĩa hiện tại&lt;/span&gt;&lt;br /&gt;
root@c4is-standby-s # &lt;b&gt;echo |format&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
AVAILABLE DISK SELECTIONS:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0. c1t0d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@0,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. c1t1d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@1,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. c1t2d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@2,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. c1t3d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@3,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. c5t600A0B8000330D0A0000054748BF696Bd0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b8000330d0a0000054748bf696b&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. c5t600A0B80004700CE0000057348BF6846d0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057348bf6846&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. c5t600A0B80004700CE0000057748BF6AD0d0 &lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057748bf6ad0&lt;br /&gt;Specify disk (enter its number): Specify disk (enter its number): &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;-- Vào SAN tạo volumn sau đó map xuống host &lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;--Sau khi map xuống xong kiểm tra ổ đĩa mới&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;root@c4is-standby-s # &lt;b&gt;echo |format&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0. c1t0d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@0,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. c1t1d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@1,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. c1t2d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@2,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. c1t3d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@3,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. c5t600A0B8000330D0A0000054748BF696Bd0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b8000330d0a0000054748bf696b&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. c5t600A0B80004700CE00001D8C4EF0CD9Cd0 &lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce00001d8c4ef0cd9c&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. c5t600A0B80004700CE0000057348BF6846d0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057348bf6846&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7. c5t600A0B80004700CE0000057748BF6AD0d0 &lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057748bf6ad0&lt;br /&gt;Specify disk (enter its number): Specify disk (enter its number): &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;-- Ổ đĩa hiện tại đc map xuống là &lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;5. c5t600A0B80004700CE00001D8C4EF0CD9Cd0 &lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/span&gt;&lt;br style="color: blue;" /&gt;&lt;br style="color: blue;" /&gt;&lt;br style="color: blue;" /&gt;&lt;span style="color: blue;"&gt;-- Xác định lại silde của partition cần format để chọn&amp;nbsp; newfs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;root@c4is-standby-s # &lt;b&gt;format&lt;/b&gt;&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;c5t600A0B80004700CE00001D8C4EF0CD9Cd0: configured with capacity of 1024.00GB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0. c1t0d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@0,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. c1t1d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@1,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. c1t2d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@2,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. c1t3d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@1f,700000/scsi@2/sd@3,0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. c5t600A0B8000330D0A0000054748BF696Bd0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b8000330d0a0000054748bf696b&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. c5t600A0B80004700CE00001D8C4EF0CD9Cd0 &lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce00001d8c4ef0cd9c&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. c5t600A0B80004700CE0000057348BF6846d0 &lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057348bf6846&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7. c5t600A0B80004700CE0000057748BF6AD0d0 &lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /scsi_vhci/ssd@g600a0b80004700ce0000057748bf6ad0&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;--- chọn ổ đĩa mới thứ 5 mới gắn vào&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Specify disk (enter its number): &lt;b style="color: red;"&gt;5&lt;/b&gt; &lt;br /&gt;selecting c5t600A0B80004700CE00001D8C4EF0CD9Cd0&lt;br /&gt;[disk formatted]&lt;br /&gt;Disk not labeled.&amp;nbsp; Label it now? &lt;b&gt;yes &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FORMAT MENU:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - select a disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - select (define) a disk type&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; partition&amp;nbsp; - select (define) a partition table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current&amp;nbsp;&amp;nbsp;&amp;nbsp; - describe the current disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - format and analyze the disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repair&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - repair a defective sector&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - write label to the disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; analyze&amp;nbsp;&amp;nbsp;&amp;nbsp; - surface analysis&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - defect list management&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - search for backup labels&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verify&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - read and display labels&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inquiry&amp;nbsp;&amp;nbsp;&amp;nbsp; - show vendor, product and revision&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volname&amp;nbsp;&amp;nbsp;&amp;nbsp; - set 8-character volume name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;cmd&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - execute &lt;cmd&gt;, then return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit&lt;br /&gt;format&amp;gt; &lt;b&gt;p&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PARTITION MENU:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `0' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `1' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `2' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `3' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `4' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `5' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `6' partition&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select - select a predefined table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modify - modify a predefined partition table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp; - name the current table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; - display the current table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&amp;nbsp; - write partition map and label to the disk&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;cmd&gt; - execute &lt;cmd&gt;, then return&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit&lt;br /&gt;partition&amp;gt;&lt;b&gt; p&lt;/b&gt;&lt;br /&gt;Current partition table (original):&lt;br /&gt;Total disk sectors available: 2147467230 + 16384 (reserved sectors)&lt;br /&gt;&lt;br /&gt;Part&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First Sector&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Sector&lt;br /&gt;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 262177&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; swap&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 262178&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 524321&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 2 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 3 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 4 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 5 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;b&gt; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usr&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 524322&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1023.74GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2147467229&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 8&amp;nbsp;&amp;nbsp; reserved&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2147467230&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2147483613&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;partition&amp;gt; q&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;==&amp;gt; chú ý thấy vị trí thứ 6 dung lượng là 1G&amp;nbsp; =&amp;gt; chính là s6&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;Tạo newfs&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;newfs /dev/&lt;span style="color: red;"&gt;rdsk&lt;/span&gt;/&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/b&gt;&lt;b&gt;c5t600A0B80004700CE00001D8C4EF0CD9Cd0s6&lt;/b&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;br /&gt;&amp;nbsp;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;br /&gt;-- Tạo một thư mục tên u04, sao đó mount vào&lt;br /&gt;&lt;b&gt;mount -F ufs /dev/&lt;span style="color: red;"&gt;dsk&lt;/span&gt;/c5t600A0B80004700CE00001D8C4EF0CD9Cd0s6 /u04&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Chú ý: thay thế rdsk bằng dsk&lt;/b&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;b&gt;=====================&lt;/b&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;b&gt;Lệnh để clean cache device&amp;nbsp;&lt;/b&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0660="" 380&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;="" 80000000="" flexline=""&gt;&lt;stk-flexline380-0660 2="" 512="" 60798="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;stk-flexline380-0660 2="" 51198="" 64="" alt="" cyl="" hd="" sec=""&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;cmd&gt;&lt;b&gt;devfsadm -Cv&lt;/b&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/stk-flexline380-0660&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;/sun72g&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-8045403189647487092?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/ruFwgTcBeqk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/ruFwgTcBeqk/map-san-xuong-server-solaris-su-dung.html</link><author>noreply@blogger.com (vitec)</author><thr:total>0</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2011/12/map-san-xuong-server-solaris-su-dung.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-7075053531588135560</guid><pubDate>Sat, 17 Dec 2011 12:17:00 +0000</pubDate><atom:updated>2011-12-17T04:17:43.947-08:00</atom:updated><title>kloxo 500 - Internal Server Error</title><description>&lt;span class="MsgBodyText"&gt;There are still have a problem when update 
Kloxo to version 6.1.10 (especially from 6.1.7) with using 'auto update'
 or 'update home' on kloxo.&lt;br /&gt;
&lt;br /&gt;
Solution, run this commands:&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="pre"&gt;
&lt;span&gt;&lt;div class="codehead"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre&gt;# for sure to using latest version for certain packages
&lt;b&gt;yum update&lt;/b&gt;
# shell command version for update
&lt;b&gt;sh /script/upcp&lt;/b&gt;
# cleanup process for certain settings
&lt;b&gt;sh /script/cleanup&lt;/b&gt;
# restart some services
&lt;b&gt;service xinetd restart&lt;/b&gt;
# fix web config to make sure using latest
&lt;b&gt;sh /script/fixweb --server=all&lt;/b&gt;
# Better reboot after that
&lt;b&gt;reboot&lt;/b&gt;
&lt;/pre&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-7075053531588135560?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/OxfubU-S0lE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/OxfubU-S0lE/kloxo-500-internal-server-error.html</link><author>noreply@blogger.com (vitec)</author><thr:total>1</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2011/12/kloxo-500-internal-server-error.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4827842540624707460.post-2502091744184014672</guid><pubDate>Sat, 17 Dec 2011 06:19:00 +0000</pubDate><atom:updated>2011-12-16T22:19:51.918-08:00</atom:updated><title>Reset password root MYSQL với quyền root</title><description>[root@servert1 ~]# &lt;b&gt;/etc/init.d/mysqld stop&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Stopping MySQL:                                            [  OK  ]&lt;br /&gt;
&lt;br /&gt;
[root@servert1 ~]# &lt;span style="color: red;"&gt;mysqld_safe --skip-grant-tables &amp;amp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;&amp;nbsp;&lt;/span&gt;[1] 13694&lt;br /&gt;
&lt;br /&gt;
[root@servert1 ~]# Starting mysqld daemon with databases from /var/lib/mysql&lt;br /&gt;
&lt;br /&gt;
[root@servert1 ~]# &lt;b&gt;mysql -u root&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
&lt;br /&gt;
Your MySQL connection id is 1&lt;br /&gt;
&lt;br /&gt;
Server version: 5.0.77 Source distribution&lt;br /&gt;
&lt;br /&gt;
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: plum;"&gt;mysql&amp;gt; &lt;span style="color: red;"&gt;use mysql; &lt;/span&gt;&lt;/span&gt;   &lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: plum;"&gt;&lt;span style="color: red;"&gt;mysql&amp;gt; update user set password=PASSWORD("testpass") where User='root';&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Query OK, 3 rows affected (0.05 sec)&lt;br /&gt;
&lt;br /&gt;
Rows matched: 3  Changed: 3  Warnings: 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; flush privileges;                 &lt;br /&gt;
&lt;br /&gt;
Query OK, 0 rows affected (0.04 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; quit&lt;span style="color: plum;"&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4827842540624707460-2502091744184014672?l=kinhnghiem.luyenthianhvan.org' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/kinhnghiemvn/~4/fLUexqADs4o" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/kinhnghiemvn/~3/fLUexqADs4o/reset-password-root-mysql-voi-quyen.html</link><author>noreply@blogger.com (vitec)</author><thr:total>1</thr:total><feedburner:origLink>http://kinhnghiem.luyenthianhvan.org/2011/12/reset-password-root-mysql-voi-quyen.html</feedburner:origLink></item></channel></rss>

