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

<channel>
	<title>iA++</title>
	<atom:link href="http://iaeaee.skscommunity.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://iaeaee.skscommunity.net/blog</link>
	<description>It&#039;s just a blog</description>
	<lastBuildDate>Wed, 16 May 2012 16:16:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>บ่น #4 : เมื่อวันที่เราต้องทำใจ</title>
		<link>http://iaeaee.skscommunity.net/blog/2012/05/16/%e0%b8%9a%e0%b9%88%e0%b8%99-4-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b2%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2012/05/16/%e0%b8%9a%e0%b9%88%e0%b8%99-4-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b2%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/#comments</comments>
		<pubDate>Wed, 16 May 2012 16:15:19 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บ่นไปเรื่อย]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=110</guid>
		<description><![CDATA[เอนทรี่นี้ อาจจะมาแนวเศร้า ๆ สักนิดนะครับ คือเราก็ไม่ค่อยได้ เข้าไปยุ่งกับ หน้า วอล เฟซบุ๊คคนอื่นเท่าไหร่ วันนี้ เน็ตเน่า ๆ ฝนตกพรำ ๆ แล้วเห็นเขาโพสสถานะบนเฟซ นึกครึ้มอะไรก็ไม่รู้ เปิดเข้าไปดูวอลเฟซเขา ก็เห็นคนนึง โพสบนวอลเขาแบบกระหนุ๋งกระหนิงกัน เราก็อดใจไม่ไหวอ่ะนะ เข้าไปดูหน้าวอลคนนั้น แล้วที่เราเห็นคือ เขาเข้าไปโพสบนวอลคนนั้น หลายอันมาก ทั้งคลิป เพลง คำพูด แล้วบางอัน มันก็อยู่ในช่วงเวลาที่เราก็โพสบนวอลเขาแต่เขาไม่ตอบเหมือนกัน TT~TT ตัวเราเองก็ไม่รู้หรอกนะ ว่ารู้สึกชอบคนนี้ตั้งแต่เมื่อไหร่ ตั้งแต่ รู้ว่ารู้สึกดี ก็ครั้งที่มีปัญหากับแฟนเก่าครั้งสุดท้าย(แฟนเก่าก็คือเพื่อนคนนี้นี่แหละ) เขาคุยกับเราตลอด ทำให้เรารู้สึกดีตลอด แต่เราก็ไม่คิดว่า เราจะรู้สึกชอบเขามากขนาดนี้เลย ตอนนี้ก็คงทำได้แค่ทำใจแล้วแหละ &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2012/05/16/%e0%b8%9a%e0%b9%88%e0%b8%99-4-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b2%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>เอนทรี่นี้ อาจจะมาแนวเศร้า ๆ สักนิดนะครับ<br />
คือเราก็ไม่ค่อยได้ เข้าไปยุ่งกับ หน้า วอล เฟซบุ๊คคนอื่นเท่าไหร่</p>
<p>วันนี้ เน็ตเน่า ๆ ฝนตกพรำ ๆ แล้วเห็นเขาโพสสถานะบนเฟซ<br />
นึกครึ้มอะไรก็ไม่รู้ เปิดเข้าไปดูวอลเฟซเขา<br />
ก็เห็นคนนึง โพสบนวอลเขาแบบกระหนุ๋งกระหนิงกัน</p>
<p>เราก็อดใจไม่ไหวอ่ะนะ เข้าไปดูหน้าวอลคนนั้น<br />
แล้วที่เราเห็นคือ เขาเข้าไปโพสบนวอลคนนั้น หลายอันมาก ทั้งคลิป เพลง คำพูด</p>
<p>แล้วบางอัน มันก็อยู่ในช่วงเวลาที่เราก็โพสบนวอลเขาแต่เขาไม่ตอบเหมือนกัน TT~TT</p>
<p>ตัวเราเองก็ไม่รู้หรอกนะ ว่ารู้สึกชอบคนนี้ตั้งแต่เมื่อไหร่<br />
ตั้งแต่ รู้ว่ารู้สึกดี ก็ครั้งที่มีปัญหากับแฟนเก่าครั้งสุดท้าย(แฟนเก่าก็คือเพื่อนคนนี้นี่แหละ)</p>
<p>เขาคุยกับเราตลอด ทำให้เรารู้สึกดีตลอด<br />
แต่เราก็ไม่คิดว่า เราจะรู้สึกชอบเขามากขนาดนี้เลย</p>
<p>ตอนนี้ก็คงทำได้แค่ทำใจแล้วแหละ<br />
เราอยู่ห่างไกลจากเขาด้วยแหละเนอะ<br />
แล้วเวลาที่เราจะไปหา หรือไปชวนเขาเที่ยวก็ไม่มี</p>
<p>TT~TT<br />
ต้องทำใจสินะ</p>
<p>ขอบคุณครับ ที่คุยกับเรามาตลอด<br />
เราไม่สัญญาว่ากลังจากนี้เราจะคุยกับเธอหรือไม่<br />
หรือเราอาจจะไม่กล้าสู้หน้าเธออีกเลยก็เแป็นได้</p>
<p>แต่เราจะพยายามนะ เราจะพยายามทำตัวให้เหมือนเดิมมากที่สุด<br />
เผื่อเธอจะคุยเล่นกับเราเหมือนเดิมทั้งบนเฟซ หรือบนโทรศัพท์</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2012/05/16/%e0%b8%9a%e0%b9%88%e0%b8%99-4-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b2%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #6 : ตัวอย่างคำสั่ง iptables 20 คำสั่งสำหรับ sysadmin มือใหม่</title>
		<link>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-6-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%84/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-6-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%84/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 19:34:05 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=100</guid>
		<description><![CDATA[น่าจะเจอเจ้านี่ก่อน #nlc12 ฮ่าาา ก็ก็อปมาจากเว็บเดิมอีกแล้ว (จะโดนด่าเปล่าวะเนี่ย) ไม่น่าเป็นไรเนอะ ใส่ลิงค์ให้เต็มที่ ฮ่าา บล็อคเราก็ไม่ได้ดังด้วย จดเก็บไว้กันลืม ไม่ค่อยชอบเขียนบนกระดาษ เขียนแล้วหาย :&#8217;) http://www.cyberciti.biz/tips/linux-iptables-examples.html IPTABLES Rules Example Most of the actions listed in this post are written with the assumption that they will be executed by the root user running &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-6-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%84/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>น่าจะเจอเจ้านี่ก่อน #nlc12 ฮ่าาา</p>
<p>ก็ก็อปมาจากเว็บเดิมอีกแล้ว (จะโดนด่าเปล่าวะเนี่ย)<br />
ไม่น่าเป็นไรเนอะ ใส่ลิงค์ให้เต็มที่ ฮ่าา<br />
บล็อคเราก็ไม่ได้ดังด้วย จดเก็บไว้กันลืม ไม่ค่อยชอบเขียนบนกระดาษ เขียนแล้วหาย :&#8217;)</p>
<p><a href="http://www.cyberciti.biz/tips/linux-iptables-examples.html">http://www.cyberciti.biz/tips/linux-iptables-examples.html<span id="more-100"></span></a></p>
<h2>IPTABLES Rules Example</h2>
<ul>
<li>Most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Do not type commands on remote system as it will disconnect your access.</li>
<li>For demonstration purpose I&#8217;ve used RHEL 6.x, but the following command should work with any modern Linux distro.</li>
<li>This is NOT a tutorial on how to set iptables. See <a href="http://www.cyberciti.biz/faq/rhel-fedorta-linux-iptables-firewall-configuration-tutorial/">tutorial here</a>. It is a quick cheat sheet to common iptables commands.</li>
</ul>
<h2>#1: Displaying the Status of Your Firewall</h2>
<p>Type the following command as root:<br />
<code># iptables -L -n -v</code><br />
Sample outputs:</p>
<pre>Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination</pre>
<p>Above output indicates that the firewall is not active. The following sample shows an active firewall:<br />
<code># iptables -L -n -v</code><br />
Sample outputs:</p>
<pre>Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           state INVALID
  394 43586 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
   93 17292 ACCEPT     all  --  br0    *       0.0.0.0/0            0.0.0.0/0
    1   142 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  br0    br0     0.0.0.0/0            0.0.0.0/0
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           state INVALID
    0     0 TCPMSS     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x06/0x02 TCPMSS clamp to PMTU
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    0     0 wanin      all  --  vlan2  *       0.0.0.0/0            0.0.0.0/0
    0     0 wanout     all  --  *      vlan2   0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     all  --  br0    *       0.0.0.0/0            0.0.0.0/0
Chain OUTPUT (policy ACCEPT 425 packets, 113K bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain wanin (1 references)
 pkts bytes target     prot opt in     out     source               destination
Chain wanout (1 references)
 pkts bytes target     prot opt in     out     source               destination</pre>
<p>Where,</p>
<ul>
<li><strong>-L</strong> : List rules.</li>
<li><strong>-v</strong> : Display detailed information. This option makes the list command show the interface name, the rule options, and the TOS masks. The packet and byte counters are also listed, with the suffix &#8216;K&#8217;, &#8216;M&#8217; or &#8216;G&#8217; for 1000, 1,000,000 and 1,000,000,000 multipliers respectively.</li>
<li><strong>-n</strong> : Display IP address and port in numeric format. Do not use DNS to resolve names. This will speed up listing.</li>
</ul>
<h3>#1.1: To inspect firewall with line numbers, enter:</h3>
<p><code># iptables -n -L -v --line-numbers</code><br />
Sample outputs:</p>
<pre>Chain INPUT (policy DROP)
num  target     prot opt source               destination
1    DROP       all  --  0.0.0.0/0            0.0.0.0/0           state INVALID
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
4    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
Chain FORWARD (policy DROP)
num  target     prot opt source               destination
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
2    DROP       all  --  0.0.0.0/0            0.0.0.0/0           state INVALID
3    TCPMSS     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp flags:0x06/0x02 TCPMSS clamp to PMTU
4    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
5    wanin      all  --  0.0.0.0/0            0.0.0.0/0
6    wanout     all  --  0.0.0.0/0            0.0.0.0/0
7    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
Chain wanin (1 references)
num  target     prot opt source               destination
Chain wanout (1 references)
num  target     prot opt source               destination</pre>
<p>You can use line numbers to delete or insert new rules into the firewall.</p>
<h3>#1.2: To display INPUT or OUTPUT chain rules, enter:</h3>
<p><code># iptables -L INPUT -n -v<br />
# iptables -L OUTPUT -n -v --line-numbers</code></p>
<h2>#2: Stop / Start / Restart the Firewall</h2>
<p>If you are using CentOS / RHEL / Fedora Linux, enter:<br />
<code># service iptables stop<br />
# service iptables start<br />
# service iptables restart</code><br />
You can use the iptables command itself to stop the firewall and delete all rules:<br />
<code># iptables -F<br />
# iptables -X<br />
# iptables -t nat -F<br />
# iptables -t nat -X<br />
# iptables -t mangle -F<br />
# iptables -t mangle -X<br />
# iptables -P INPUT ACCEPT<br />
# iptables -P OUTPUT ACCEPT<br />
# iptables -P FORWARD ACCEPT</code><br />
Where,</p>
<ul>
<li><strong>-F</strong> : Deleting (flushing) all the rules.</li>
<li><strong>-X</strong> : Delete chain.</li>
<li><strong>-t table_name</strong> : Select table (called nat or mangle) and delete/flush rules.</li>
<li><strong>-P</strong> : Set the default policy (such as DROP, REJECT, or ACCEPT).</li>
</ul>
<h2>#3: Delete Firewall Rules</h2>
<p>To display line number along with other information for existing rules, enter:<br />
<code># iptables -L INPUT -n --line-numbers<br />
# iptables -L OUTPUT -n --line-numbers<br />
# iptables -L OUTPUT -n --line-numbers | less<br />
# iptables -L OUTPUT -n --line-numbers | grep 202.54.1.1</code><br />
You will get the list of IP. Look at the number on the left, then use number to delete it. For example delete line number 4, enter:<br />
<code># iptables -D INPUT 4</code><br />
OR find source IP 202.54.1.1 and delete from rule:<br />
<code># iptables -D INPUT -s 202.54.1.1 -j DROP</code><br />
Where,</p>
<ul>
<li><strong>-D </strong>: Delete one or more rules from the selected chain</li>
</ul>
<h2>#4: Insert Firewall Rules</h2>
<p>To insert one or more rules in the selected chain as the given rule number use the following syntax. First find out line numbers, enter:<br />
# iptables -L INPUT -n &#8211;line-numbers<br />
Sample outputs:</p>
<pre>Chain INPUT (policy DROP)
num  target     prot opt source               destination
1    DROP       all  --  202.54.1.1           0.0.0.0/0
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state NEW,ESTABLISHED</pre>
<p>To insert rule between 1 and 2, enter:<br />
<code># iptables -I INPUT 2 -s 202.54.1.2 -j DROP</code><br />
To view updated rules, enter:<br />
<code># iptables -L INPUT -n --line-numbers</code><br />
Sample outputs:</p>
<pre>Chain INPUT (policy DROP)
num  target     prot opt source               destination
1    DROP       all  --  202.54.1.1           0.0.0.0/0
2    DROP       all  --  202.54.1.2           0.0.0.0/0
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state NEW,ESTABLISHED</pre>
<h2>#5: Save Firewall Rules</h2>
<p>To save firewall rules under CentOS / RHEL / Fedora Linux, enter:<br />
<code># service iptables save</code><br />
In this example, drop an IP and save firewall rules:<br />
<code># iptables -A INPUT -s 202.5.4.1 -j DROP<br />
# service iptables save</code><br />
For all other distros use the iptables-save command:<br />
<code># iptables-save &gt; /root/my.active.firewall.rules<br />
# cat /root/my.active.firewall.rules</code></p>
<h2>#6: Restore Firewall Rules</h2>
<p>To restore firewall rules form a file called /root/my.active.firewall.rules, enter:<br />
<code># iptables-restore &lt; /root/my.active.firewall.rules</code><br />
To restore firewall rules under CentOS / RHEL / Fedora Linux, enter:<br />
<code># service iptables restart</code></p>
<h2>#7: Set the Default Firewall Policies</h2>
<p>To drop all traffic:<br />
<code># iptables -P INPUT DROP<br />
# iptables -P OUTPUT DROP<br />
# iptables -P FORWARD DROP<br />
# iptables -L -v -n<br />
#### you will not able to connect anywhere as all traffic is dropped ###<br />
# ping cyberciti.biz<br />
# wget http://www.kernel.org/pub/linux/kernel/v3.0/testing/linux-3.2-rc5.tar.bz2</code></p>
<h3>#7.1: Only Block Incoming Traffic</h3>
<p>To drop all incoming / forwarded packets, but allow outgoing traffic, enter:<br />
<code># iptables -P INPUT DROP<br />
# iptables -P FORWARD DROP<br />
# iptables -P OUTPUT ACCEPT<br />
# iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT<br />
# iptables -L -v -n<br />
### *** now ping and wget should work *** ###<br />
# ping cyberciti.biz<br />
# wget http://www.kernel.org/pub/linux/kernel/v3.0/testing/linux-3.2-rc5.tar.bz2</code></p>
<h2>#8:Drop Private Network Address On Public Interface</h2>
<p>IP spoofing is nothing but to stop the following IPv4 address ranges for private networks on your public interfaces. Packets with non-routable source addresses should be rejected using the following syntax:<br />
<code># iptables -A INPUT -i eth1 -s 192.168.0.0/24 -j DROP<br />
# iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j DROP</code></p>
<h3>#8.1: IPv4 Address Ranges For Private Networks (make sure you block them on public interface)</h3>
<ul>
<li>10.0.0.0/8 -j (A)</li>
<li>172.16.0.0/12 (B)</li>
<li>192.168.0.0/16 (C)</li>
<li>224.0.0.0/4 (MULTICAST D)</li>
<li>240.0.0.0/5 (E)</li>
<li>127.0.0.0/8 (LOOPBACK)</li>
</ul>
<h2>#9: Blocking an IP Address (BLOCK IP)</h2>
<p>To block an attackers ip address called 1.2.3.4, enter:<br />
<code># iptables -A INPUT -s 1.2.3.4 -j DROP<br />
# iptables -A INPUT -s 192.168.0.0/24 -j DROP</code></p>
<h2>#10: Block Incoming Port Requests (BLOCK PORT)</h2>
<p>To block all service requests on port 80, enter:<br />
<code># iptables -A INPUT -p tcp --dport 80 -j DROP<br />
# iptables -A INPUT -i eth1 -p tcp --dport 80 -j DROP</code></p>
<p>To block port 80 only for an ip address 1.2.3.4, enter:<br />
<code># iptables -A INPUT -p tcp -s 1.2.3.4 --dport 80 -j DROP<br />
# iptables -A INPUT -i eth1 -p tcp -s 192.168.1.0/24 --dport 80 -j DROP</code></p>
<h2>#11: Block Outgoing IP Address</h2>
<p>To block outgoing traffic to a particular host or domain such as cyberciti.biz, enter:<br />
<code># host -t a cyberciti.biz</code><br />
Sample outputs:</p>
<pre>cyberciti.biz has address 75.126.153.206</pre>
<p>Note down its ip address and type the following to block all outgoing traffic to 75.126.153.206:<br />
<code># iptables -A OUTPUT -d 75.126.153.206 -j DROP</code><br />
You can use a subnet as follows:<br />
<code># iptables -A OUTPUT -d 192.168.1.0/24 -j DROP<br />
# iptables -A OUTPUT -o eth1 -d 192.168.1.0/24 -j DROP</code></p>
<h3>#11.1: Example &#8211; Block Facebook.com Domain</h3>
<p>First, find out all ip address of facebook.com, enter:<br />
<code># host -t a www.facebook.com</code><br />
Sample outputs:</p>
<pre>www.facebook.com has address 69.171.228.40</pre>
<p>Find CIDR for 69.171.228.40, enter:<br />
<code># whois 69.171.228.40 | grep CIDR</code><br />
Sample outputs:</p>
<pre>CIDR:           69.171.224.0/19</pre>
<p>To prevent outgoing access to www.facebook.com, enter:<br />
<code># iptables -A OUTPUT -p tcp -d 69.171.224.0/19 -j DROP</code><br />
You can also use domain name, enter:<br />
<code># iptables -A OUTPUT -p tcp -d www.facebook.com -j DROP<br />
# iptables -A OUTPUT -p tcp -d facebook.com -j DROP</code></p>
<p>From the iptables man page:</p>
<blockquote><p>&#8230; specifying any name to be resolved with a remote query such as DNS (e.g., facebook.com is a really bad idea), a network IP address (with /mask), or a plain IP address &#8230;</p></blockquote>
<h2>#12: Log and Drop Packets</h2>
<p>Type the following to log and block IP spoofing on public interface called eth1<br />
<code># iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j LOG --log-prefix "IP_SPOOF A: "<br />
# iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j DROP</code><br />
By default everything is logged to /var/log/messages file.<br />
<code># tail -f /var/log/messages<br />
# grep --color 'IP SPOOF' /var/log/messages</code></p>
<h2>#13: Log and Drop Packets with Limited Number of Log Entries</h2>
<p>The -m limit module can limit the number of log entries created per time. This is used to prevent flooding your log file. To log and drop spoofing per 5 minutes, in bursts of at most 7 entries .<br />
<code># iptables -A INPUT -i eth1 -s 10.0.0.0/8 -m limit --limit 5/m --limit-burst 7 -j LOG --log-prefix "IP_SPOOF A: "<br />
# iptables -A INPUT -i eth1 -s 10.0.0.0/8 -j DROP</code></p>
<h2>#14: Drop or Accept Traffic From Mac Address</h2>
<p>Use the following syntax:<br />
<code># iptables -A INPUT -m mac --mac-source 00:0F:EA:91:04:08 -j DROP<br />
## *only accept traffic for TCP port # 8080 from mac 00:0F:EA:91:04:07 * ##<br />
# iptables -A INPUT -p tcp --destination-port 22 -m mac --mac-source 00:0F:EA:91:04:07 -j ACCEPT</code></p>
<h2>#15: Block or Allow ICMP Ping Request</h2>
<p>Type the following command to block ICMP ping requests:<br />
<code># iptables -A INPUT -p icmp --icmp-type echo-request -j DROP<br />
# iptables -A INPUT -i eth1 -p icmp --icmp-type echo-request -j DROP</code><br />
Ping responses can also be limited to certain networks or hosts:<br />
<code># iptables -A INPUT -s 192.168.1.0/24 -p icmp --icmp-type echo-request -j ACCEPT</code><br />
The following only accepts limited type of ICMP requests:<br />
<code>### ** assumed that default INPUT policy set to DROP ** #############<br />
iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT<br />
iptables -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT<br />
iptables -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT<br />
## ** all our server to respond to pings ** ##<br />
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT</code></p>
<h2>#16: Open Range of Ports</h2>
<p>Use the following syntax to open a range of ports:<br />
<code>iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 7000:7010 -j ACCEPT</code></p>
<h2>#17: Open Range of IP Addresses</h2>
<p>Use the following syntax to open a range of IP address:<br />
<code>## only accept connection to tcp port 80 (Apache) if ip is between 192.168.1.100 and 192.168.1.200 ##<br />
iptables -A INPUT -p tcp --destination-port 80 -m iprange --src-range 192.168.1.100-192.168.1.200 -j ACCEPT</code></p>
<p><code>## nat example ##<br />
iptables -t nat -A POSTROUTING -j SNAT --to-source 192.168.1.20-192.168.1.25<br />
</code></p>
<h2>#17: Established Connections and Restaring The Firewall</h2>
<p>When you restart the iptables service it will drop established connections as it unload modules from the system under RHEL / Fedora / CentOS Linux. Edit, /etc/sysconfig/iptables-config and set IPTABLES_MODULES_UNLOAD as follows:</p>
<pre>IPTABLES_MODULES_UNLOAD = no</pre>
<h2>#18: Help Iptables Flooding My Server Screen</h2>
<p>Use the crit log level to send messages to a log file instead of console:<br />
<code>iptables -A INPUT -s 1.2.3.4 -p tcp --destination-port 80 -j LOG --log-level crit</code></p>
<h2>#19: Block or Open Common Ports</h2>
<p>The following shows syntax for opening and closing common TCP and UDP ports:</p>
<pre> 
Replace ACCEPT with DROP to block port:
## open port ssh tcp port 22 ##
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 22 -j ACCEPT

## open cups (printing service) udp/tcp port 631 for LAN users ##
iptables -A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 631 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 631 -j ACCEPT

## allow time sync via NTP for lan users (open udp port 123) ##
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 123 -j ACCEPT

## open tcp port 25 (smtp) for all ##
iptables -A INPUT -m state --state NEW -p tcp --dport 25 -j ACCEPT

# open dns server ports for all ##
iptables -A INPUT -m state --state NEW -p udp --dport 53 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT

## open http/https (Apache) server port to all ##
iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT

## open tcp port 110 (pop3) for all ##
iptables -A INPUT -m state --state NEW -p tcp --dport 110 -j ACCEPT

## open tcp port 143 (imap) for all ##
iptables -A INPUT -m state --state NEW -p tcp --dport 143 -j ACCEPT

## open access to Samba file server for lan users only ##
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT

## open access to proxy server for lan users only ##
iptables -A INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 3128 -j ACCEPT

## open access to mysql server for lan users only ##
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT</pre>
<h2>#20: Restrict the Number of Parallel Connections To a Server Per Client IP</h2>
<p>You can use connlimit module to put such restrictions. To allow 3 ssh connections per client host, enter:<br />
<code># iptables -A INPUT -p tcp --syn --dport 22 -m connlimit --connlimit-above 3 -j REJECT</code></p>
<p>Set HTTP requests to 20:<br />
<code># iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above 20 --connlimit-mask 24 -j DROP</code><br />
Where,</p>
<ol>
<li><strong>&#8211;connlimit-above 3</strong> : Match if the number of existing connections is above 3.</li>
<li><strong>&#8211;connlimit-mask 24</strong> : Group hosts using the prefix length. For IPv4, this must be a number between (including) 0 and 32.</li>
</ol>
<h2>#21: HowTO: Use iptables Like a Pro</h2>
<p>For more information about iptables, please see the manual page by typing man iptables from the command line:<br />
<code>$ man iptables</code><br />
You can see the help using the following syntax too:<br />
<code># iptables -h</code><br />
To see help with specific commands and targets, enter:<br />
<code># iptables -j DROP -h</code></p>
<h3>#21.1: Testing Your Firewall</h3>
<p>Find out if ports are open or not, enter:<br />
<code># netstat -tulpn</code><br />
Find out if tcp port 80 open or not, enter:<br />
<code># netstat -tulpn | grep :80</code><br />
If port 80 is not open, start the Apache, enter:<br />
<code># service httpd start</code><br />
Make sure iptables allowing access to the port 80:<br />
<code># iptables -L INPUT -v -n | grep 80</code><br />
Otherwise open port 80 using the iptables for all users:<br />
<code># iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT<br />
# service iptables save</code><br />
Use the telnet command to see if firewall allows to connect to port 80:<br />
<code>$ telnet www.cyberciti.biz 80</code><br />
Sample outputs:</p>
<pre>Trying 75.126.153.206...
Connected to www.cyberciti.biz.
Escape character is '^]'.
^]
telnet&gt; quit
Connection closed.</pre>
<p>You can use nmap to probe your own server using the following syntax:<br />
<code>$ nmap -sS -p 80 www.cyberciti.biz</code><br />
Sample outputs:</p>
<pre>Starting Nmap 5.00 ( http://nmap.org ) at 2011-12-13 13:19 IST
Interesting ports on www.cyberciti.biz (75.126.153.206:(
PORT   STATE SERVICE
80/tcp open  http
Nmap done: 1 IP address (1 host up) scanned in 1.00 seconds</pre>
<p>I also recommend you install and use sniffer such as tcpdupm and ngrep to test your firewall settings.</p>
<h4>Conclusion:</h4>
<p>This post only list basic rules for new Linux users. You can create and build more complex rules. This requires good understanding of TCP/IP, Linux kernel tuning via sysctl.conf, and good knowledge of your own setup. Stay tuned for next topics:</p>
<ul>
<li>Stateful packet inspection.</li>
<li>Using connection tracking helpers.</li>
<li>Network address translation.</li>
<li>Layer 2 filtering.</li>
<li>Firewall testing tools.</li>
<li>Dealing with VPNs, DNS, Web, Proxy, and other protocols.</li>
</ul>
<h4>Featured Articles:</h4>
<ul>
<li><a href="http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html">20 Linux System Monitoring Tools Every SysAdmin Should Know</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-security.html">20 Linux Server Hardening Security Tips</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-iptables-examples.html">Linux: 20 Iptables Examples For New SysAdmins</a> <img src="http://files.cyberciti.biz/assets/i/new_post.png" alt="" border="0" /></li>
<li><a href="http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html">My 10 UNIX Command Line Mistakes</a></li>
<li><a href="http://www.cyberciti.biz/tips/php-security-best-practices-tutorial.html">25 PHP Security Best Practices For Sys Admins</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-laptop.html">The Novice Guide To Buying A Linux Laptop</a></li>
<li><a href="http://www.cyberciti.biz/tips/download-email-client-for-linux-mac-osx-windows.html">Top 5 Email Client For Linux, Mac OS X, and Windows Users</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html">Top 20 OpenSSH Server Best Security Practices</a></li>
<li><a href="http://www.cyberciti.biz/tips/open-source-project-management-software.html">Top 10 Open Source Web-Based Project Management Software</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-6-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #5 : สร้าง swap file</title>
		<link>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-5-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-swap-file/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-5-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-swap-file/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 19:21:17 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=95</guid>
		<description><![CDATA[เจอโจทย์ใน #nlc12 มา ว่าให้สร้าง swapfile กรณีที่ swap partition ไม่พอ เลยหาในเน็ต เจอบล็อกนี้ ขอก็อปมาแปะไว้ทั้งหมดเลยล้ะกันนะครับ (ขอใครฟระ) Procedure To Add a Swap File Under Linux You need to use the dd command to create swap file. The mkswap command is used to set up &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-5-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-swap-file/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>เจอโจทย์ใน #nlc12 มา ว่าให้สร้าง swapfile กรณีที่ swap partition ไม่พอ<br />
เลยหาในเน็ต เจอ<a title="cyberciti.biz" href="http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/" target="_blank">บล็อกนี้</a><br />
ขอก็อปมาแปะไว้ทั้งหมดเลยล้ะกันนะครับ (ขอใครฟระ)<br />
<span id="more-95"></span></p>
<h2>Procedure To Add a Swap File Under Linux</h2>
<p>You need to use the dd command to create swap file. The mkswap command is used to set up a Linux swap area on a device or in a file.</p>
<h3>Step #1: Login as the Root User</h3>
<p>Open a terminal window (select Applications &gt; Accessories &gt; Terminal) or login to remote server using the ssh client. Switch to the root user by typing su &#8211; and entering the root password, when prompted</p>
<h3>Step #2: Create Storage File</h3>
<p>Type the following command to create 512MB swap file (1024 * 512MB = 524288 block size:(<br />
<code># dd if=/dev/zero of=/swapfile1 bs=1024 count=524288</code><br />
Where,</p>
<ol>
<li><strong>if=/dev/zero</strong> : Read from /dev/zero file. /dev/zero is a special file in that provides as many null characters to build storage file called /swapfile1.</li>
<li><strong>of=/swapfile1</strong> : Read from /dev/zero write stoage file to /swapfile1.</li>
<li><strong>bs=1024</strong> : Read and write 1024 BYTES bytes at a time.</li>
<li><strong>count=524288</strong> : Copy only 523288 BLOCKS input blocks.</li>
</ol>
<h3>Step #3: Set Up a Linux Swap Area</h3>
<p>Type the following command to set up a Linux swap area in a file:<br />
<code># mkswap /swapfile1</code><br />
Setup correct file permission for security reasons, enter:<br />
<code># chown root:root /swapfile1<br />
# chmod 0600 /swapfile1</code><br />
A world-readable swap file is a huge local vulnerability. The above command make sure only root user can read/write to the file. Finally, activate /swapfile1 swap space immediately, enter:<br />
<code># swapon /swapfile1</code></p>
<p>To activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using a text editor such as vi:<br />
<code># vi /etc/fstab</code></p>
<p>Append the following line:<br />
<code>/swapfile1 swap swap defaults 0 0</code><br />
Save and close the file. Next time Linux comes up after reboot, it enables the new swap file for you automatically.</p>
<h2>How do I Verify Swap is Activated or Not?</h2>
<p>Simply use the free command:<br />
<code>$ free -m</code></p>
<h4>See also:</h4>
<ul>
<li><a href="http://www.cyberciti.biz/tips/linux-display-system-hardware-status-information-gathered-from-proc-filesystem-in-easy-format.html">Linux display system hardware status information gathered from /proc filesystem in easy format (includes swap info)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2012/02/18/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-5-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-swap-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #4 : สร้าง windows 7,8 ใส่ Flash Drive ด้วย Unetbootin บน Ubuntu</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/09/24/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-4-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-windows-78-%e0%b9%83%e0%b8%aa%e0%b9%88/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/09/24/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-4-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-windows-78-%e0%b9%83%e0%b8%aa%e0%b9%88/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 07:40:38 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บันทึกกันลืม]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=59</guid>
		<description><![CDATA[วิธีนี้ผมใช้บ่อย หวังว่าน่าจะได้ประโยชน์บ้างล่ะเนอะ ต้องบอกก่อนว่า มันมีทริคนิดหน่อย เนื่องจากตัว Unetbootin เอง ไม่รองรับการสร้าง disk boot ที่เป็น ntfs เราก็ต้องหลอกมันนิดหน่อยล่ะครับ :&#8217;) วิธีทำก็ เสียบเจ้า flashdrive เข้าเครื่องไปซะ จากนั้นเรียกโปรแกรม Disk Utility ขึ้นมาเลยครับ จากนั้นก็เลือก device ฝั่งซ้ายมือ แล้วก็จัดการเลือก Format มันเป็น Fat ซะ หรือใครเป็น Fat อยู่แล้วก็เอาอีกสักที กันเหนียว :&#8217;P ทีนี้ เราก็จำ Device ตังเองกันล่ะครับ อย่างเจ้าของผมนี่อยู่ &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/09/24/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-4-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-windows-78-%e0%b9%83%e0%b8%aa%e0%b9%88/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>วิธีนี้ผมใช้บ่อย หวังว่าน่าจะได้ประโยชน์บ้างล่ะเนอะ<br />
ต้องบอกก่อนว่า มันมีทริคนิดหน่อย เนื่องจากตัว Unetbootin เอง<br />
ไม่รองรับการสร้าง disk boot ที่เป็น ntfs</p>
<p>เราก็ต้องหลอกมันนิดหน่อยล่ะครับ :&#8217;)</p>
<p>วิธีทำก็ เสียบเจ้า flashdrive เข้าเครื่องไปซะ จากนั้นเรียกโปรแกรม Disk Utility ขึ้นมาเลยครับ<br />
จากนั้นก็เลือก device ฝั่งซ้ายมือ แล้วก็จัดการเลือก Format มันเป็น Fat ซะ หรือใครเป็น Fat อยู่แล้วก็เอาอีกสักที กันเหนียว :&#8217;P<span id="more-59"></span></p>
<p><a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_047.png"><img class="alignnone size-large wp-image-60" title="Selection_047" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_047-1024x363.png" alt="" width="620" height="219" /></a><a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Format-Partition-1-of-Multi-Flash-Reader_046.png"><img class="alignnone size-full wp-image-61" title="Format Partition 1 of Multi Flash Reader_046" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Format-Partition-1-of-Multi-Flash-Reader_046.png" alt="" width="323" height="361" /></a></p>
<p>ทีนี้ เราก็จำ Device ตังเองกันล่ะครับ<br />
อย่างเจ้าของผมนี่อยู่ /dev/sdc1<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_040.png"><img class="alignnone size-full wp-image-62" title="Selection_040" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_040.png" alt="" width="1007" height="374" /></a><br />
จากนั้นก็เปิด Unetbootin เลยครับ<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_041.png"><img class="alignnone size-full wp-image-63" title="UNetbootin_041" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_041.png" alt="" width="544" height="403" /></a><br />
ส่วน Distribution เลือกเป็น Freedos และเลือก ISO ครับ<br />
ในส่วน Type เลือก Device เป็นที่ได้จำไว้เมื่อตะกี๊นี้</p>
<p>จากนั้น อย่าเพิ่งกด OKนะครับ<br />
กลับไปที่ Disk Utility ก่อน<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_042.png"><img class="alignnone size-full wp-image-64" title="Selection_042" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_042.png" alt="" width="1009" height="374" /></a><br />
จัดการ Format เป้น NTFS เลยครับ<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Format-Partition-1-of-Multi-Flash-Reader_043.png"><img class="alignnone size-full wp-image-65" title="Format Partition 1 of Multi Flash Reader_043" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Format-Partition-1-of-Multi-Flash-Reader_043.png" alt="" width="323" height="361" /></a><br />
เมื่อ Format เสร็จแล้ว ก็จัดการ Mount Partition นี้ซะนะครับ<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_044.png"><img class="alignnone size-full wp-image-66" title="Selection_044" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/Selection_044.png" alt="" width="1001" height="378" /></a></p>
<p>จากนั้นกลับไปที่ Unetbooti กด OK ได้เลย<br />
หลังจากนี้ก็ไม่ต้องทำอะไร ได้แต่รอ รอ รอ<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_045.png"><img class="alignnone size-full wp-image-67" title="UNetbootin_045" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_045.png" alt="" width="544" height="403" /></a><br />
ยังไงก็ต้องรอจนเสร็จแหละเนอะ &gt;&#8221;&lt;<br />
<a href="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_048.png"><img class="alignnone size-full wp-image-68" title="UNetbootin_048" src="http://iaeaee.skscommunity.net/blog/wp-content/uploads/2011/09/UNetbootin_048.png" alt="" width="544" height="403" /></a></p>
<p>เอาล่ะ เสร้จแล้ว รีสตาร์ทเครื่องไปลงวินโดวได้เลย</p>
<p>อ้อ ที่สำคัญ ลงวินโดวส์แล้ว อย่าลืม ubuntu ล่ะ</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/09/24/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-4-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-windows-78-%e0%b9%83%e0%b8%aa%e0%b9%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #3 : วิธี Patch Kernel 3 สำหรับ vmware player บน ubuntu</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-3-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-patch-kernel-3-%e0%b8%aa%e0%b8%b3%e0%b8%ab/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-3-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-patch-kernel-3-%e0%b8%aa%e0%b8%b3%e0%b8%ab/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 16:55:32 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บันทึกกันลืม]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=53</guid>
		<description><![CDATA[จดไว้กันลืม เผื่อเว็บต้นฉบับหาย ฮ่าาาาา &#160; How to patch VMware Player/Workstation for Linux 3.x 1. Uninstall VMware Player or Workstation, and rm -rf /usr/lib/vmware/modules/source (or if you backed up the original source .tar files, restore them now and delete any patched xxx-only &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-3-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-patch-kernel-3-%e0%b8%aa%e0%b8%b3%e0%b8%ab/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>จดไว้กันลืม เผื่อเว็บต้นฉบับหาย ฮ่าาาาา</p>
<p>&nbsp;</p>
<p>How to patch VMware Player/Workstation for Linux 3.x<span id="more-53"></span></p>
<p>1. Uninstall VMware Player or Workstation, and rm -rf /usr/lib/vmware/modules/source (or if you backed up the original source .tar files, restore them now and delete any patched xxx-only directories)<br />
2. Install VMware Player 3.1.4 or Workstation 7.1x (unless you have restored original source .tar files and deleted the prior xxxx-only directories), but don&#8217;t try to run it yet.<br />
3. Fix the issue with the kernel nomenclature change from 2.6.x to 3.x as follows in a user terminal:</p>
<div>Code:</div>
<div>
<pre>sudo sed 's/\x83\xe8\x03\x83\xf8\x01\x0f\x96\xc0/\x83\xe8\x02\x83\xf8\x01\x0f\x96\xc0/' -i /usr/lib/vmware/lib/libvmware-modconfig-console.so/libvmware-modconfig-console.so</pre>
</div>
<div>Code:</div>
<div>
<pre>sudo sed 's/\x83\xe8\x03\x83\xf8\x01\x0f\x96\xc0/\x83\xe8\x02\x83\xf8\x01\x0f\x96\xc0/' -i /usr/lib/vmware/lib/libvmware-modconfig.so/libvmware-modconfig.so</pre>
</div>
<p>4. Download the <strong>vmware2.6.39patchv3.tar.bz2</strong> patch from <a href="http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/05/vmware2.6.39patchv3.tar.bz2" target="_blank"><strong>here</strong></a>, extract and untar it (disregard/delete the script &#8220;patch-modules_2.6.39.sh&#8221; &#8212; we do not use it).  Note that the actual patch name is vmware2.6.39fixedv3.patch.<br />
5. Download the <strong>patch3031vmware741.patch</strong> file (link named &#8220;vmware fix for 3.1&#8243;) from <a href="http://weltall.heliohost.org/wordpress/2011/08/" target="_blank"><strong>here</strong></a><br />
6. Open terminal, and change directory to /usr/lib/vmware/modules/source<br />
7. Issue &#8220;ls&#8221;.  You should see the following 5 files (and nothing else):</p>
<div>Code:</div>
<div>
<pre>vmblock.tar   vmci.tar   vmmon.tar   vmnet.tar   vsock.tar</pre>
</div>
<p>8. At this point you need to change to root with &#8220;sudo su&#8221;.  Then issue</p>
<div>Code:</div>
<div>
<pre>for i in ./*.tar; do tar -xvf $i; done</pre>
</div>
<p>to untar the five .tar files.  Each one will extract into a new directory with &#8220;-only&#8221; as the directory name suffix.  When you are finished you should have, in addition to the original .tar files, the following new directories:</p>
<div>Code:</div>
<div>
<pre>vmblock-only   vmci-only   vmmon-only   vmnet-only   vsock-only</pre>
</div>
<p>9. Next, back up the original source .tar files with</p>
<div>Code:</div>
<div>
<pre>for i in ./*.tar; do mv $i $i.orginal; done</pre>
</div>
<p>10. Now copy both downloaded patch files to the current directory /usr/lib/vmware/modules/source, and &#8220;chmod +x &#8230;&#8221; each file to make it executable<br />
11. Now issue the command (the character after &#8220;-p&#8221; is the numeral one, not the letter L)</p>
<div>Code:</div>
<div>
<pre>patch -p1 &lt; vmware2.6.39fixedv3.patch</pre>
</div>
<p>It should run to completion with no error output &#8212; this replaces selected files in the -only directories.<br />
12. Next issue the command</p>
<div>Code:</div>
<div>
<pre>patch -p1 &lt; patch3031vmware741.patch</pre>
</div>
<p>which patches vmnet-only/compat_netdevice.h and should return no error<br />
13. Next, &#8220;tar cvf&#8221; all of the files in the vxxx-only subdirectories.  So, for example,</p>
<div>Code:</div>
<div>
<pre>tar cvf vmblock.tar vmblock-only/*</pre>
</div>
<p>and do this for each of the 5 vxxx-only directories.<br />
14. You are done &#8212; exit the terminal, and you can launch VMware Player now and the 3.0 kernel modules will build. When you start a VM, you will see a warning about &#8220;this version of the Linux kernel is too new&#8221;, but it does not affect the running VM (tested WinXP, Win7, and Kubuntu).</p>
<p>p.s.  This is put together from parts found in 3 different locations (Arch forum, VMware forum, &amp; weltall.heliohost.org).</p>
<p>&nbsp;</p>
<p>ที่มา : http://kubuntuforums.net/forums/index.php?topic=3118191</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a1-3-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-patch-kernel-3-%e0%b8%aa%e0%b8%b3%e0%b8%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บ่น #3 : คนขับรถจักรยานยนต์ขอบ่นสักนิด</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b9%88%e0%b8%99-3-%e0%b8%84%e0%b8%99%e0%b8%82%e0%b8%b1%e0%b8%9a%e0%b8%a3%e0%b8%96%e0%b8%88%e0%b8%b1%e0%b8%81%e0%b8%a3%e0%b8%a2%e0%b8%b2%e0%b8%99%e0%b8%a2%e0%b8%99%e0%b8%95%e0%b9%8c/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b9%88%e0%b8%99-3-%e0%b8%84%e0%b8%99%e0%b8%82%e0%b8%b1%e0%b8%9a%e0%b8%a3%e0%b8%96%e0%b8%88%e0%b8%b1%e0%b8%81%e0%b8%a3%e0%b8%a2%e0%b8%b2%e0%b8%99%e0%b8%a2%e0%b8%99%e0%b8%95%e0%b9%8c/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:22:48 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บ่นไปเรื่อย]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=44</guid>
		<description><![CDATA[ปัญหารถเยอะในกรุงเทพ ผมว่าไม่ใช่เรื่องเลยแหละ จากที่ตัวเองขับรถจักรยานยนต์ มีโอกาสปาดหน้าคันอื่นก็บ่อย ซิกแซกไปเรื่อย ๆ ก็เลยพบว่า ปัญหาส่วนใหญ่ เกิดจาก &#8220;จำนวนรถแท็กซี่ มีมากเกินไป&#8221; กับสอง &#8220;รถโดยสารประจำทาง และไม่ประจำทาง&#8221; ทั้งสองอย่าง ขับรถไม่มีมารยาท ทั้งจอดแช่เลนซ้าย ปาดขึ้นขวาและลงซ้าย ยังมีอีกหลาย ๆ ข้อที่เจอ และอีกอย่างที่ไม่พูดไม่ได้ นอกจากสองอันข้างบนก็คือ &#8220;มารยาทของคนขับรถยนต์นั่งส่วนบุคคล&#8221; ผมเชื่ออย่างนึงนะว่า ถ้า รถเมล์และแท็กซี่ หรือรถใด ๆ ที่เรียกว่า รถรับจ้าง วิ่งเฉพาะเลนซ้าย และ ให้รถยนตืนั่งส่วนบุคคล วิ่งเลนกลาง และขวา โดยเลี่ยงการ ปาดเพื่อเปลี่ยนเลนในการขับขี่ ใช้ความเร็ว เท่า &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b9%88%e0%b8%99-3-%e0%b8%84%e0%b8%99%e0%b8%82%e0%b8%b1%e0%b8%9a%e0%b8%a3%e0%b8%96%e0%b8%88%e0%b8%b1%e0%b8%81%e0%b8%a3%e0%b8%a2%e0%b8%b2%e0%b8%99%e0%b8%a2%e0%b8%99%e0%b8%95%e0%b9%8c/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>ปัญหารถเยอะในกรุงเทพ ผมว่าไม่ใช่เรื่องเลยแหละ<br />
จากที่ตัวเองขับรถจักรยานยนต์ มีโอกาสปาดหน้าคันอื่นก็บ่อย ซิกแซกไปเรื่อย ๆ</p>
<p>ก็เลยพบว่า ปัญหาส่วนใหญ่ เกิดจาก</p>
<p>&#8220;จำนวนรถแท็กซี่ มีมากเกินไป&#8221;<span id="more-44"></span></p>
<p>กับสอง</p>
<p>&#8220;รถโดยสารประจำทาง และไม่ประจำทาง&#8221;</p>
<p>ทั้งสองอย่าง ขับรถไม่มีมารยาท ทั้งจอดแช่เลนซ้าย ปาดขึ้นขวาและลงซ้าย<br />
ยังมีอีกหลาย ๆ ข้อที่เจอ</p>
<p>และอีกอย่างที่ไม่พูดไม่ได้ นอกจากสองอันข้างบนก็คือ</p>
<p>&#8220;มารยาทของคนขับรถยนต์นั่งส่วนบุคคล&#8221;</p>
<p>ผมเชื่ออย่างนึงนะว่า</p>
<p>ถ้า รถเมล์และแท็กซี่ หรือรถใด ๆ ที่เรียกว่า รถรับจ้าง<br />
วิ่งเฉพาะเลนซ้าย</p>
<p>และ ให้รถยนตืนั่งส่วนบุคคล วิ่งเลนกลาง และขวา<br />
โดยเลี่ยงการ ปาดเพื่อเปลี่ยนเลนในการขับขี่</p>
<p>ใช้ความเร็ว เท่า ๆ กันในวันหรือเวลาที่การจราจรติดขัด<br />
ผมว่ามันจะช่วยได้เยอะเลย</p>
<p>และอีกข้อ (เข้าข้างตัวเองสักนิด)<br />
ถ้ารถยนต์ส่วนบคคล หรือรถรับจ้าง ที่มากกว่าสองล้อ<br />
ไม่เปลี่ยนเลนตามใจฉัน<br />
หรือ เปลี่ยนเลนแบบไม่มั่นใจ ไปเจอรถติด<br />
รถจักรยานยนต์จะวิ่งแบบสบายใจมาก เพราะช่องว่างแต่ละเลนจะเหลือให้รถจักรยานยนต์วิ่งได้แบบไม่ต้องปาดใครเลย</p>
<p>^^</p>
<p>และผมก็เชื่อว่า กรุงเทพ ไม่ว่าจะขยายถนนสักกี่เลน<br />
ยังไงรถก็ติด เพราะปัญหา ไม่ได้มาจากถนนมีเลนน้อย หรือ รถเยอะเลย</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/09/19/%e0%b8%9a%e0%b9%88%e0%b8%99-3-%e0%b8%84%e0%b8%99%e0%b8%82%e0%b8%b1%e0%b8%9a%e0%b8%a3%e0%b8%96%e0%b8%88%e0%b8%b1%e0%b8%81%e0%b8%a3%e0%b8%a2%e0%b8%b2%e0%b8%99%e0%b8%a2%e0%b8%99%e0%b8%95%e0%b9%8c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #2 : ติดตั้ง Ubuntu ใหม่ แล้วลง package ให้เหมือนเครื่องเดิม</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/09/13/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a12-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ubuntu-%e0%b9%83/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/09/13/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a12-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ubuntu-%e0%b9%83/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 04:23:14 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บันทึกกันลืม]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=32</guid>
		<description><![CDATA[สำเนามาจาก บล็อกนี้ ขอบคุณครับ ^^ ๑. สำรอง sources.list sudo cp /etc/apt/sources.list /media/KINGSTON/sources.list ๒. สำรองรายชื่อ packages sudo dpkg --get-selections &#62; /media/KINGSTON/package.selections ๓. หลังจากลง Ubuntu ใหม่เสร็จ สั่ง sudo cp /media/KINGSTON/sources.list /etc/apt/sources.list sudo cp /media/KINGSTON/package.selections ~/ sudo apt-get update sudo dpkg --set-selections &#60; ~/package.selections &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/09/13/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a12-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ubuntu-%e0%b9%83/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<h4>สำเนามาจาก <a href="http://iake.blogspot.com/2010/07/ubuntu-package.html" target="_blank">บล็อกนี้</a> ขอบคุณครับ ^^</h4>
<h4><span id="more-32"></span></h4>
<h4>๑. สำรอง sources.list</h4>
<pre><code>sudo cp /etc/apt/sources.list /media/KINGSTON/sources.list </code></pre>
<h4>๒. สำรองรายชื่อ packages</h4>
<pre><code>sudo dpkg --get-selections &gt; /media/KINGSTON/package.selections </code></pre>
<h4>๓. หลังจากลง Ubuntu ใหม่เสร็จ สั่ง</h4>
<pre><code>sudo cp /media/KINGSTON/sources.list /etc/apt/sources.list sudo cp /media/KINGSTON/package.selections ~/ sudo apt-get update sudo dpkg --set-selections &lt; ~/package.selections sudo apt-get dselect-upgrade </code></pre>
<p>เสร็จสิ้นพิธีกรรม.</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/09/13/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a12-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ubuntu-%e0%b9%83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บ่น #2 : หมาใส่หมวก และ ด่าน กับ จักรยานยนต์</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/09/07/%e0%b8%ab%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%ab%e0%b8%a1%e0%b8%a7%e0%b8%81-%e0%b9%81%e0%b8%a5%e0%b8%b0-%e0%b8%94%e0%b9%88%e0%b8%b2%e0%b8%99-%e0%b8%81%e0%b8%b1%e0%b8%9a-%e0%b8%88/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/09/07/%e0%b8%ab%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%ab%e0%b8%a1%e0%b8%a7%e0%b8%81-%e0%b9%81%e0%b8%a5%e0%b8%b0-%e0%b8%94%e0%b9%88%e0%b8%b2%e0%b8%99-%e0%b8%81%e0%b8%b1%e0%b8%9a-%e0%b8%88/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 04:19:13 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บ่นไปเรื่อย]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=27</guid>
		<description><![CDATA[ไม่เข้าใจจริง ๆ ทำไมเวลาเจอพี่หมาตั้งด่าน ต้องไม่พ้น ทางโค้ง, ทางลงสะพาน, หรือไม่ก็ก่อนถึงทางกลับรถไม่ถึงร้อยเมตร แล้วจ้องรถวิ่งขวา ถ้าทางโค้ง ทางลงสะพาน ผมไม่ว่าหรอกถ้าจะมองรถขวา ยังไงมันก็ผิด แต่เล่นดักกันก่อยถึงทางกลับรถ ไม่คิดถึงคนที่ขึ้นขวาเพื่อจะกลับรถบ้างเหรอครับ หรือว่าต้องการเงิน 400 เท่านั้น. เอาเวลาไปจับรถยนต์นั่งส่วนบุคคลที่คุยโทรศัพท์ขณะขับรถ น่าจะดีกว่านะครับ หรือมอไซมันชนแล้วโอกาสตายมันน้อยกว่ารถที่มากกว่าสองล้อ อ้อ อีกที่ ตั้งด่านที่ป้ายรถเมล์.. พอรถเมล์เข้าป้าย รถจักรยานยนต์ก็ต้องขึ้นขวา แล้วพี่หมาก็จับ บ้าไปแล้ว&#8230; ตัวเองก็มีรถจักรยานยนต์ประจำตำแหน่ง หมวกก็ไม่ค่อยจะใส่กัน ทำไมไม่เขียนใบสั่งตัวเองด้วยล่ะครับ ถ้าใครเป็นหมาใส่หมวกตามที่เ้ขียนไว้ แล้วคิดว่ามันไม่จริงก็เถียงผมได้นะครับ]]></description>
			<content:encoded><![CDATA[<p>ไม่เข้าใจจริง ๆ<br />
ทำไมเวลาเจอพี่หมาตั้งด่าน<br />
ต้องไม่พ้น</p>
<p><strong>ทางโค้ง, ทางลงสะพาน, หรือไม่ก็ก่อนถึงทางกลับรถไม่ถึงร้อยเมตร</strong></p>
<p><span id="more-27"></span>แล้วจ้องรถวิ่งขวา<br />
ถ้าทางโค้ง ทางลงสะพาน ผมไม่ว่าหรอกถ้าจะมองรถขวา ยังไงมันก็ผิด</p>
<p>แต่เล่นดักกันก่อยถึงทางกลับรถ<br />
ไม่คิดถึงคนที่ขึ้นขวาเพื่อจะกลับรถบ้างเหรอครับ</p>
<p>หรือว่าต้องการเงิน<strong> 400</strong> เท่านั้น.</p>
<p>เอาเวลาไปจับรถยนต์นั่งส่วนบุคคลที่คุยโทรศัพท์ขณะขับรถ<br />
น่าจะดีกว่านะครับ หรือมอไซมันชนแล้วโอกาสตายมันน้อยกว่ารถที่มากกว่าสองล้อ</p>
<p>อ้อ อีกที่ ตั้งด่านที่ป้ายรถเมล์..</p>
<p>พอรถเมล์เข้าป้าย รถจักรยานยนต์ก็ต้องขึ้นขวา<br />
แล้วพี่หมาก็จับ</p>
<p>บ้าไปแล้ว&#8230; ตัวเองก็มีรถจักรยานยนต์ประจำตำแหน่ง<br />
หมวกก็ไม่ค่อยจะใส่กัน</p>
<p>ทำไมไม่เขียนใบสั่งตัวเองด้วยล่ะครับ</p>
<p>ถ้าใครเป็นหมาใส่หมวกตามที่เ้ขียนไว้ แล้วคิดว่ามันไม่จริงก็เถียงผมได้นะครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/09/07/%e0%b8%ab%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%ab%e0%b8%a1%e0%b8%a7%e0%b8%81-%e0%b9%81%e0%b8%a5%e0%b8%b0-%e0%b8%94%e0%b9%88%e0%b8%b2%e0%b8%99-%e0%b8%81%e0%b8%b1%e0%b8%9a-%e0%b8%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บ่น #1: เมื่อวันที่โทรศัพท์พัง</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/08/21/%e0%b8%9a%e0%b9%88%e0%b8%991-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%a8%e0%b8%b1%e0%b8%9e%e0%b8%97/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/08/21/%e0%b8%9a%e0%b9%88%e0%b8%991-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%a8%e0%b8%b1%e0%b8%9e%e0%b8%97/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 06:09:55 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บ่นไปเรื่อย]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=16</guid>
		<description><![CDATA[เริ่มจาก โทรศัพท์อมน้ำ อมน้ำจริง ๆ ไม่ใช่จมน้ำ วางไว้ตรงกระถางต้นไม้หน้าบ้าน แล้วก็กำลังล้างรถ มันค่อย ๆ อมน้ำไปทีละนิด ๆ มารู้ตัวอีกทีก็ &#8230; มันยังไม่ดับ ก็เลยถอดแบตออก หลังจากเช็ดอะไรเรียบร้อย ก็ดูที่หน้าจอ เจอจุดน้ำประหลาด เข้าไปอยู่ระหว่างทัชสกรีนกับหน้าจอ.. เอ้าตายห่า ทำไงล่ะทีนี้.. เลยเปิดเครื่อง พบว่า มันทัชไม่ติด ก็จับการทำต่าง ๆ นา ๆ แช่ข้าวสารบ้าง ตากแดดบ้าง มันก็ไม่หายไป เลยลองวิธีสุดท้าย ไดร์เป่าผมเป่า .. ไม่คิดไม่ฝัน ว่ามันจะแตก บ้าไปแล๊วววว จะมีอะไหล่มั้ย.. คงต้องเก็บตังซื้อใหม่ แต่ว่าเมื่อไหร่ &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/08/21/%e0%b8%9a%e0%b9%88%e0%b8%991-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%a8%e0%b8%b1%e0%b8%9e%e0%b8%97/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>เริ่มจาก โทรศัพท์อมน้ำ อมน้ำจริง ๆ ไม่ใช่จมน้ำ<br />
วางไว้ตรงกระถางต้นไม้หน้าบ้าน แล้วก็กำลังล้างรถ มันค่อย ๆ อมน้ำไปทีละนิด ๆ<br />
มารู้ตัวอีกทีก็ &#8230; มันยังไม่ดับ ก็เลยถอดแบตออก หลังจากเช็ดอะไรเรียบร้อย ก็ดูที่หน้าจอ เจอจุดน้ำประหลาด เข้าไปอยู่ระหว่างทัชสกรีนกับหน้าจอ.. เอ้าตายห่า ทำไงล่ะทีนี้..</p>
<p>เลยเปิดเครื่อง พบว่า มันทัชไม่ติด ก็จับการทำต่าง ๆ นา ๆ แช่ข้าวสารบ้าง ตากแดดบ้าง มันก็ไม่หายไป<br />
เลยลองวิธีสุดท้าย ไดร์เป่าผมเป่า<br />
.. ไม่คิดไม่ฝัน ว่ามันจะแตก</p>
<p>บ้าไปแล๊วววว</p>
<p>จะมีอะไหล่มั้ย.. คงต้องเก็บตังซื้อใหม่ แต่ว่าเมื่อไหร่ ฮือ ๆ ๆ</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/08/21/%e0%b8%9a%e0%b9%88%e0%b8%991-%e0%b9%80%e0%b8%a1%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%a8%e0%b8%b1%e0%b8%9e%e0%b8%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>บันทึกกันลืม #1 : Install WebServer in Ubuntu</title>
		<link>http://iaeaee.skscommunity.net/blog/2011/08/14/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a11-install-webserver-in-ubuntu/</link>
		<comments>http://iaeaee.skscommunity.net/blog/2011/08/14/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a11-install-webserver-in-ubuntu/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 13:43:29 +0000</pubDate>
		<dc:creator>iA++</dc:creator>
				<category><![CDATA[บันทึกกันลืม]]></category>

		<guid isPermaLink="false">http://iaeaee.skscommunity.net/blog/?p=8</guid>
		<description><![CDATA[อาจจะมีใครที่เป็นเหมือนผม เวลา ลง ubuntu ใหม่ แล้วต้องไล่ลงแพคเกจ ถ้าทำ aptoncd ไว้มันก็จะดีมาก แต่ผมไม่ค่อยอยากทำสักเท่าไหร่ อ้อ บน ubuntu 11.10 มี deja-dup มาแล้วล่ะ เดี่ยวต้องลองบ้างล้ะ บางคนก็อาจจะเขียนสคริปเอาไว้ ลงเสร็จกดรันสคริปเลย ผมก้เคยเขียนนะ แต่มันหายบ่อยมาก (เครื่องมันรกจัด) แล้วก็ ไหน ๆ ตัวเองก็มีบล็อก &#8230; ก็เลยมาเขียนไว้ จั๊กกะหน่อย วิธีลงก็ไม่มีอะไรมาก เปิด terminal แล้วก็พิมพ์ ๆ ลง Apache 2 sudo apt-get &#8230;<p class="read-more"><a href="http://iaeaee.skscommunity.net/blog/2011/08/14/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a11-install-webserver-in-ubuntu/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>อาจจะมีใครที่เป็นเหมือนผม<br />
เวลา ลง ubuntu ใหม่ แล้วต้องไล่ลงแพคเกจ</p>
<p>ถ้าทำ aptoncd ไว้มันก็จะดีมาก แต่ผมไม่ค่อยอยากทำสักเท่าไหร่</p>
<p>อ้อ บน ubuntu 11.10 มี deja-dup มาแล้วล่ะ เดี่ยวต้องลองบ้างล้ะ</p>
<p>บางคนก็อาจจะเขียนสคริปเอาไว้ ลงเสร็จกดรันสคริปเลย<br />
ผมก้เคยเขียนนะ แต่มันหายบ่อยมาก (เครื่องมันรกจัด)<span id="more-8"></span></p>
<p>แล้วก็ ไหน ๆ ตัวเองก็มีบล็อก &#8230;<br />
ก็เลยมาเขียนไว้ จั๊กกะหน่อย<br />
วิธีลงก็ไม่มีอะไรมาก<br />
เปิด terminal แล้วก็พิมพ์ ๆ</p>
<p>ลง Apache 2</p>
<div id="sph_install-apache-2">
<pre>sudo apt-get install apache2 apache2-doc apache2-utils</pre>
</div>
<p>ลง mod ต่าง ๆ + my sql + phpmyadmin</p>
<pre>sudo apt-get install libapache2-mod-ruby libapache2-mod-perl2 libapache2-mod-python python-mysqldb libapache2-mod-php5 php5 php-pear php5-xcache php5-suhosin mysql-server php5-mysql phpmyadmin</pre>
<p>แค่นี้แหละเนอะ&#8230;.<br />
ฮ่า</p>
]]></content:encoded>
			<wfw:commentRss>http://iaeaee.skscommunity.net/blog/2011/08/14/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a5%e0%b8%b7%e0%b8%a11-install-webserver-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

