<?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>Web Server linux Centos Games &#187; Linux</title>
	<atom:link href="http://www.webserverthai.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webserverthai.com</link>
	<description>Web Server linux Centos blog game</description>
	<lastBuildDate>Sun, 04 Sep 2011 05:27:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>เกมส์โบวลิ่งออนไลน์</title>
		<link>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%aa%e0%b9%8c%e0%b9%82%e0%b8%9a%e0%b8%a7%e0%b8%a5%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%aa%e0%b9%8c%e0%b9%82%e0%b8%9a%e0%b8%a7%e0%b8%a5%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 02:10:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[เกมส์]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=245</guid>
		<description><![CDATA[วันนี้บังเอิญได้ไปเจอเว็บนึงซึ่งมีเกมส์ออนไลน์แบบไทยๆ เกมส์ที่เป็นเกมส์ล่าสุดคือ เกมส์โบวลิ่ง ก็นับว่าทำได้ดีและสนุกมากทีเดียว รูปข้างล่างนี้เป็นหน้าแรกของเกมส์ครับ จะว่าไปโบวลิ่งก็เป็นที่นิยมพอสมควรเลยในบ้านเรา เล่นกันมาหลายสิบปีแล้ว ปัจจุบันที่นิยมก็เห็นจะเป็นโบวลิ่งที่อยู่ตามห้างต่างๆโดยมักจะเป็นเจ้าของเดียวกับโรงหนัง กติกาโบวลิ่งก็ไม่ยาก โยนไปเก็บพินให้หมด โดย 1 ตา โยนได้ 2 ครั่ง ถ้าเก็บหมดในครั้งเดียวเรียกว่า Strike ถ้าเก็บหมดใน 2 ครั้งเรียกว่า Spare ในการเล่นก็ต้องพยายามเก็บให้ได้มากที่สุดนั่นเอง คะแนนสูงสุดในเกมส์โบวลิ่ง คือ 300 คะแนน นั่นหมายความว่าต้องเก็บ Strike ให้ได้ทุกเกมส์นั่นเอง สำหรับในเวอร์ชั่นของ เกมส์โบวลิ่งออนไลน์ ที่ทำออกมาก็ถือว่าง่ายครับ เรียนรู้แป๊บเดียวก็เก่งได้แล้ว จะทำ Strike Spare ก็จัดได้ว่าง่าย ใครสนใจเล่นเกมส์โบวลิ่งออนไลน์ ก็ไปที่เว็บนี้ครับ http://game.meemodel.com สนุกมากๆ นอกจาก เกมส์โบวลิ่งออนไลน์แล้วก็ยังมี เกม อีกมากมายเลยทีเดียว ลองดู ของคนไทยครับ &#160;]]></description>
			<content:encoded><![CDATA[<p>วันนี้บังเอิญได้ไปเจอเว็บนึงซึ่งมีเกมส์ออนไลน์แบบไทยๆ เกมส์ที่เป็นเกมส์ล่าสุดคือ <a target="_blank" title="เกมส์โบวลิ่ง" href="http://game.meemodel.com/bowling/" target="_blank">เกมส์โบวลิ่ง</a> ก็นับว่าทำได้ดีและสนุกมากทีเดียว รูปข้างล่างนี้เป็นหน้าแรกของเกมส์ครับ</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2011/09/game1.jpg"><img class="aligncenter size-full wp-image-247" title="เกมส์โบวลิ่ง" src="http://www.webserverthai.com/wp-content/uploads/2011/09/game1.jpg" alt="" width="600" height="397" /></a></p>
<p>จะว่าไปโบวลิ่งก็เป็นที่นิยมพอสมควรเลยในบ้านเรา เล่นกันมาหลายสิบปีแล้ว ปัจจุบันที่นิยมก็เห็นจะเป็นโบวลิ่งที่อยู่ตามห้างต่างๆโดยมักจะเป็นเจ้าของเดียวกับโรงหนัง</p>
<p>กติกาโบวลิ่งก็ไม่ยาก โยนไปเก็บพินให้หมด โดย 1 ตา โยนได้ 2 ครั่ง ถ้าเก็บหมดในครั้งเดียวเรียกว่า Strike ถ้าเก็บหมดใน 2 ครั้งเรียกว่า Spare ในการเล่นก็ต้องพยายามเก็บให้ได้มากที่สุดนั่นเอง</p>
<p>คะแนนสูงสุดในเกมส์โบวลิ่ง คือ 300 คะแนน นั่นหมายความว่าต้องเก็บ Strike ให้ได้ทุกเกมส์นั่นเอง</p>
<p>สำหรับในเวอร์ชั่นของ <a target="_blank" title="เกมส์โบวลิ่งออนไลน์" href="http://game.meemodel.com/bowling/" target="_blank">เกมส์โบวลิ่งออนไลน์</a> ที่ทำออกมาก็ถือว่าง่ายครับ เรียนรู้แป๊บเดียวก็เก่งได้แล้ว จะทำ Strike Spare ก็จัดได้ว่าง่าย</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2011/09/game2.jpg"><img class="aligncenter size-full wp-image-249" title="เกมส์โบวลิ่ง 2" src="http://www.webserverthai.com/wp-content/uploads/2011/09/game2.jpg" alt="" width="600" height="397" /></a></p>
<p>ใครสนใจเล่นเกมส์โบวลิ่งออนไลน์ ก็ไปที่เว็บนี้ครับ http://game.meemodel.com สนุกมากๆ นอกจาก เกมส์โบวลิ่งออนไลน์แล้วก็ยังมี <a target="_blank" title="เกม" href="http://game.meemodel.com" target="_blank">เกม</a> อีกมากมายเลยทีเดียว ลองดู ของคนไทยครับ</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%aa%e0%b9%8c%e0%b9%82%e0%b8%9a%e0%b8%a7%e0%b8%a5%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การ yum จากแผ่น cd dvd CentOS</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-yum-%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b9%81%e0%b8%9c%e0%b9%88%e0%b8%99-cd-dvd-centos/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-yum-%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b9%81%e0%b8%9c%e0%b9%88%e0%b8%99-cd-dvd-centos/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 01:55:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=236</guid>
		<description><![CDATA[ปกติเวลาที่เราต้องการลงโปรแกรมอะไรเพิ่มใน CentOS เราคงคุ้นเคยกับการใช้คำสั่ง yum เช่น yum install httpd yum install mysqld นี่คือในกรณีที่เราสามารถต่อ internet ได้ แต่ในกรณีที่เราไม่สามารถเชื่อมต่อกับ internet ได้ แต่เรามีแผ่น  cd/dvd ของ OS เราก็สามารถใช้คำสั่ง yum ได้เช่นกัน โดยมีขั้นตอนดังนี้ ขั้นที่ 1 ใส่แผ่น cd dvd แล้ว mount ใ้ห้เรียบร้อย # mount /dev/cdrom /media/cdrom ขั้นที่ 2 แก้ไขไฟล์ CentOS-Media.repo เพื่อให้สามารถใช้คำสั่ง yum โดยตรงจากแผ่น cd หรือ dvd ได้ # vi /etc/yum.repos.d/CentOS-Media.repo แก้ไขบรรทัดนี้ให้ ตามนี้ enabled=1 จากนั้น [...]]]></description>
			<content:encoded><![CDATA[<p>ปกติเวลาที่เราต้องการลงโปรแกรมอะไรเพิ่มใน CentOS เราคงคุ้นเคยกับการใช้คำสั่ง yum เช่น</p>
<p>yum install httpd</p>
<p>yum install mysqld</p>
<p>นี่คือในกรณีที่เราสามารถต่อ internet ได้ แต่ในกรณีที่เราไม่สามารถเชื่อมต่อกับ internet ได้ แต่เรามีแผ่น  cd/dvd ของ OS เราก็สามารถใช้คำสั่ง yum ได้เช่นกัน โดยมีขั้นตอนดังนี้</p>
<p><strong>ขั้นที่ 1</strong> ใส่แผ่น cd dvd แล้ว mount ใ้ห้เรียบร้อย</p>
<p># mount /dev/cdrom /media/cdrom</p>
<p><strong>ขั้นที่ 2</strong> แก้ไขไฟล์ CentOS-Media.repo เพื่อให้สามารถใช้คำสั่ง yum โดยตรงจากแผ่น cd หรือ dvd ได้</p>
<p># vi /etc/yum.repos.d/CentOS-Media.repo</p>
<p>แก้ไขบรรทัดนี้ให้ ตามนี้</p>
<p>enabled=1</p>
<p>จากนั้น save ไฟล์</p>
<p><strong>ขั้นที่ 3</strong> ใช้คำสั่ง yum</p>
<p># yum &#8211;disablerepo=\* &#8211;enablerepo=c5-media install pacakge-name</p>
<p>หรือก็เหมือนกับคำสั่ง yum ทั่วไป สามารถใช้ group install ได้</p>
<p># yum &#8211;disablerepo=\* &#8211;enablerepo=c5-media groupinstall &#8216;Virtualization&#8217;</p>
<p>เท่านี้ก็เป็นอันเรียบร้อย</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3-yum-%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b9%81%e0%b8%9c%e0%b9%88%e0%b8%99-cd-dvd-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>โปรแกรมอัดเสียง บันทึก/ตกแต่งเสียงบน Linux</title>
		<link>http://www.webserverthai.com/linux/%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b8%a3%e0%b8%a1%e0%b8%ad%e0%b8%b1%e0%b8%94%e0%b9%80%e0%b8%aa%e0%b8%b5%e0%b8%a2%e0%b8%87-%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%95/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b8%a3%e0%b8%a1%e0%b8%ad%e0%b8%b1%e0%b8%94%e0%b9%80%e0%b8%aa%e0%b8%b5%e0%b8%a2%e0%b8%87-%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%95/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 10:35:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[อัดเสียง]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=221</guid>
		<description><![CDATA[ผมได้ยินคำถามบ่อยๆ ว่าบน Linux มีโปรแกรมประเภทอัดเสียง บันทึกเสียง ตกแต่งเสียงดีๆไหม วันนี้ผมเลยมีโปรแกรมตัวหนึ่งเอามาฝาก ที่สำคัญฟรี ด้วยครับ Audacity เป็นโปรแกรม freeware ที่มีความสามารถสูง มีการพัฒนาต่อเนื่องยาวนาน ความสามารถหลักๆ อัดเสียงสด. บันทึกเสียงจาก tape เป็น digital หรือ CDs. สามารถแก้ไขไฟล์ Ogg Vorbis, MP3, WAV หรือ AIFF. ตัดต่อและมิกซ์เสียง เปลี่ยนความเร็วและระดับความสูงต่ำของเสียงได้. มี effect ให้ใช้ ได้แก่ Echo, Phaser, Wahwah, Reverse อัดได้สูงสุด 96 kHz. ใครอยากใช้โปรแกรมฟรีดีๆในการอัดเสียง ลองโหลดไปใช้ได้จากเว็บ http://audacity.sourceforge.net/ สำหรับคนที่อยากได้งานแบบมืออาชีพ แนะนำ ห้องอัดเสียง Amore Studio ของรุ่นพี่ผมครับ]]></description>
			<content:encoded><![CDATA[<p>ผมได้ยินคำถามบ่อยๆ ว่าบน Linux มีโปรแกรมประเภทอัดเสียง บันทึกเสียง ตกแต่งเสียงดีๆไหม วันนี้ผมเลยมีโปรแกรมตัวหนึ่งเอามาฝาก ที่สำคัญฟรี ด้วยครับ</p>
<p>Audacity เป็นโปรแกรม freeware ที่มีความสามารถสูง มีการพัฒนาต่อเนื่องยาวนาน</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2011/03/audacity-linux-small.jpg"><img class="aligncenter size-full wp-image-222" title="audacity-linux-small" src="http://www.webserverthai.com/wp-content/uploads/2011/03/audacity-linux-small.jpg" alt="" width="209" height="185" /></a></p>
<p>ความสามารถหลักๆ</p>
<ul>
<li>อัดเสียงสด.</li>
<li>บันทึกเสียงจาก tape เป็น digital หรือ CDs.</li>
<li>สามารถแก้ไขไฟล์ Ogg Vorbis, MP3, WAV หรือ AIFF.</li>
<li>ตัดต่อและมิกซ์เสียง</li>
<li>เปลี่ยนความเร็วและระดับความสูงต่ำของเสียงได้.</li>
<li>มี effect ให้ใช้ ได้แก่ Echo, Phaser, Wahwah, Reverse</li>
<li>อัดได้สูงสุด 96 kHz.</li>
</ul>
<p>ใครอยากใช้โปรแกรมฟรีดีๆในการอัดเสียง ลองโหลดไปใช้ได้จากเว็บ http://audacity.sourceforge.net/</p>
<p>สำหรับคนที่อยากได้งานแบบมืออาชีพ แนะนำ <a target="_blank" title="ห้องอัดเสียง" href="http://amore-studio.com" target="_blank">ห้องอัดเสียง</a> Amore Studio ของรุ่นพี่ผมครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b8%a3%e0%b8%a1%e0%b8%ad%e0%b8%b1%e0%b8%94%e0%b9%80%e0%b8%aa%e0%b8%b5%e0%b8%a2%e0%b8%87-%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%97%e0%b8%b6%e0%b8%81%e0%b8%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tcpdump คำสั่ง debug ปัญหาใน network</title>
		<link>http://www.webserverthai.com/linux/tcpdump-%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-debug-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%83%e0%b8%99-network/</link>
		<comments>http://www.webserverthai.com/linux/tcpdump-%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-debug-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%83%e0%b8%99-network/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 07:42:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[debug]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=214</guid>
		<description><![CDATA[สำหรับใครก็ตามที่ทำงานทางด้าน network คงคุ้นเคยกับโปรแกรม Wireshark ( ชื่อเดิม Ethereal ) เป็นอย่างดี เนื่องจากเป็นโปรแกรมที่ต้องมีเอาไว้ใช้ดูรายละเอียดของข้อมูลใน packet tcp ว่าเป็นยังไง ถูกต้องไหม ใน Linux ก็มี tool คล้ายๆกัน แถมยังเป็นคำสั่งพื้นฐานที่ติดมาให้โดย default อยู่แล้ว ถือได้ว่าสะดวกมาก คำสั่งนั้นก็คือ tcpdump นั่นเอง Option ต่างๆของคำสั่ง tcpdump -i ชื่อ interface : Capture ทุก packet ที่วิ่งผ่าน interface -n : ไม่ต้อง resolve hostnames. -nn : ไม่ต้อง resolve hostnames หรือ port names. -X : แสดง  packet [...]]]></description>
			<content:encoded><![CDATA[<p>สำหรับใครก็ตามที่ทำงานทางด้าน network คงคุ้นเคยกับโปรแกรม Wireshark ( ชื่อเดิม Ethereal ) เป็นอย่างดี เนื่องจากเป็นโปรแกรมที่ต้องมีเอาไว้ใช้ดูรายละเอียดของข้อมูลใน packet tcp ว่าเป็นยังไง ถูกต้องไหม</p>
<p>ใน Linux ก็มี tool คล้ายๆกัน แถมยังเป็นคำสั่งพื้นฐานที่ติดมาให้โดย default อยู่แล้ว ถือได้ว่าสะดวกมาก</p>
<p>คำสั่งนั้นก็คือ tcpdump นั่นเอง</p>
<p><span style="text-decoration: underline;">Option ต่างๆของคำสั่ง tcpdump</span></p>
<div id="_mcePaste">-i ชื่อ interface : Capture ทุก packet ที่วิ่งผ่าน interface</div>
<div id="_mcePaste">-n : ไม่ต้อง resolve hostnames.</div>
<div id="_mcePaste">-nn : ไม่ต้อง resolve hostnames หรือ port names.</div>
<div id="_mcePaste">-X : แสดง  packet contents ทั้งในรูปฐาน 16 และ ASCII.</div>
<div id="_mcePaste">-XX : เหมือน -X, แต่แสดง ethernet header ด้วย.</div>
<div id="_mcePaste">-v, -vv, -vvv : เพิ่มรายละเอียดของ packet.</div>
<div id="_mcePaste">-c : ระบุจำนวน  packets เมื่อครบแล้วหยุด.</div>
<div id="_mcePaste">-S : แสดง absolute sequence numbers.</div>
<div id="_mcePaste">-e : แสดง  ethernet header.</div>
<div id="_mcePaste">-q : แสดง protocol information น้อยลง.</div>
<div id="_mcePaste">-E : ถอดรหัส IPSEC traffic โดยระบุ encryption key.</div>
<div id="_mcePaste">-s : ตั้งค่าความยาวของ packet (bytes).</div>
<p><span style="text-decoration: underline;">ตัวอย่างการใช้งาน</span></p>
<p><span style="color: #ff6600;">## Capture ทุก packet ที่วิ่งผ่าน eth0</span></p>
<p>tcpdump -i eth0</p>
<p><span style="color: #ff6600;">## Capture ทุก packet ที่วิ่งผ่าน eth0 ที่ส่งมาหรือส่งไป ip 192.168.1.1</span></p>
<p>tcpdump -i eth0 host 192.168.1.1</p>
<p><span style="color: #ff6600;">## Capture ทุก packet ที่วิ่งผ่าน eth0 ที่ส่งผ่าน port 80</span></p>
<p>tcpdump -i eth0 port 192.168.1.1</p>
<p><span style="color: #ff6600;">## Capture ทุก packet ที่วิ่งผ่าน eth0 ที่ส่งผ่าน port 80 ของ host 192.168.1.1</span></p>
<p>tcpdump -i eth0 port 192.168.1.1 and host 192.168.1.1</p>
<p><span style="color: #ff6600;">## ถ้ามีหลายเงื่อนไข</span></p>
<p>tcpdump -i eth0 &#8216;host 203.192.33.106 and (port 1812 or 1813)&#8217;</p>
<p><span style="color: #ff6600;">## Cature เป็นไฟล์</span></p>
<p>tcpdump -i eth0 -w (file name)</p>
<p><span style="color: #ff6600;">## Cature ทั้งหมด ทั้ง header และ data เป็นไฟล์</span></p>
<p>tcpdump -i eth0 -s 65535 -w (file name)</p>
<p><span style="color: #ff6600;">## อ่านไฟล์ ที่ Capture</span></p>
<p>tcpdump -r (file name)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/tcpdump-%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-debug-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%83%e0%b8%99-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>สร้างข้อความต้อนรับ เวลา SSH</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%99%e0%b8%a3%e0%b8%b1%e0%b8%9a-%e0%b9%80%e0%b8%a7%e0%b8%a5/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%99%e0%b8%a3%e0%b8%b1%e0%b8%9a-%e0%b9%80%e0%b8%a7%e0%b8%a5/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 07:33:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=208</guid>
		<description><![CDATA[หลายๆคนคงสงสัยว่าในบ้างครั้ง เวลาที่เรา ssh เข้าไปที่ที่ server เครื่องหนึ่ง บางครั้งมีข้อความต้อนรับปรากฏขึ้นแสดงด้วย ดังภาพตัวอย่าง เราสามารถสร้างขึ้นมาได้อย่างง่ายดายโดยการแก้ไขไฟล์ที่มีชื่อว่า /etc/motd จากนั้นจะใส่อะไรก็ได้เลยครับ]]></description>
			<content:encoded><![CDATA[<p>หลายๆคนคงสงสัยว่าในบ้างครั้ง เวลาที่เรา ssh เข้าไปที่ที่ server เครื่องหนึ่ง บางครั้งมีข้อความต้อนรับปรากฏขึ้นแสดงด้วย ดังภาพตัวอย่าง</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2011/01/imgres.jpg"><img class="aligncenter size-full wp-image-209" title="ssh welcome" src="http://www.webserverthai.com/wp-content/uploads/2011/01/imgres.jpg" alt="" width="283" height="178" /></a></p>
<p>เราสามารถสร้างขึ้นมาได้อย่างง่ายดายโดยการแก้ไขไฟล์ที่มีชื่อว่า /etc/motd</p>
<p>จากนั้นจะใส่อะไรก็ได้เลยครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%ad%e0%b8%99%e0%b8%a3%e0%b8%b1%e0%b8%9a-%e0%b9%80%e0%b8%a7%e0%b8%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache คือ ? คำถามที่ได้ยินบ่อย</title>
		<link>http://www.webserverthai.com/linux/apache-%e0%b8%84%e0%b8%b7%e0%b8%ad-%e0%b8%84%e0%b8%b3%e0%b8%96%e0%b8%b2%e0%b8%a1%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%a2%e0%b8%b4%e0%b8%99%e0%b8%9a%e0%b9%88%e0%b8%ad%e0%b8%a2/</link>
		<comments>http://www.webserverthai.com/linux/apache-%e0%b8%84%e0%b8%b7%e0%b8%ad-%e0%b8%84%e0%b8%b3%e0%b8%96%e0%b8%b2%e0%b8%a1%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%a2%e0%b8%b4%e0%b8%99%e0%b8%9a%e0%b9%88%e0%b8%ad%e0%b8%a2/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 09:37:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=202</guid>
		<description><![CDATA[apache คืออะไร ? สำหรับคนที่ไม่เคยทำ server คงเคยได้ยินชื่อนี้จากหนังสงคราม ( เฮลิคอร์ปเตอร์ รุ่นหนึ่ง ) แต่โดยปกติแล้ว apache ที่เราได้ใช้กันบ่อยๆจริงๆ คงเป็นเจ้าตัวโปรแกรม web server ตัวหนึ่ง ( โปรแกรมที่ทำให้เครื่องเราบริการเว็บเพจได้ ) ซึ่งเป็นโปรแกรมแบบ open source ( นำไปใช้และปรับแต่งได้ฟรี ภายใต้เงื่อนไข ) และเป็นโปรแกรมที่นิยมใช้กันอย่างที่สุดก็ว่าได้ เนื่องจากมันฟรี ดี เสถียร จนได้กลายเป็นมาตรฐานไปแล้ว ( กว่า 60 % ของเครื่องให้บริการเว็บเพจ ใช้ apache ) apache มีทั้ง version ที่ลงบน Windows และ Linux และทำงานเข้ากันได้กับภาษาที่เป็นที่นิยมอย่าง php รวมทั้ง database mysql ใครสนใจตัว apache สามารถดาวโหลดและใช้งานได้ฟรีจากเว็บ [...]]]></description>
			<content:encoded><![CDATA[<p>apache คืออะไร ? สำหรับคนที่ไม่เคยทำ server คงเคยได้ยินชื่อนี้จากหนังสงคราม ( เฮลิคอร์ปเตอร์ รุ่นหนึ่ง )</p>
<p>แต่โดยปกติแล้ว apache ที่เราได้ใช้กันบ่อยๆจริงๆ คงเป็นเจ้าตัวโปรแกรม web server ตัวหนึ่ง ( โปรแกรมที่ทำให้เครื่องเราบริการเว็บเพจได้ ) ซึ่งเป็นโปรแกรมแบบ open source ( นำไปใช้และปรับแต่งได้ฟรี ภายใต้เงื่อนไข ) และเป็นโปรแกรมที่นิยมใช้กันอย่างที่สุดก็ว่าได้ เนื่องจากมันฟรี ดี เสถียร จนได้กลายเป็นมาตรฐานไปแล้ว ( กว่า 60 % ของเครื่องให้บริการเว็บเพจ ใช้ apache )</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2011/01/apache.gif"><img class="aligncenter size-full wp-image-206" title="apache" src="http://www.webserverthai.com/wp-content/uploads/2011/01/apache.gif" alt="" width="203" height="61" /></a></p>
<p>apache มีทั้ง version ที่ลงบน Windows และ Linux และทำงานเข้ากันได้กับภาษาที่เป็นที่นิยมอย่าง php รวมทั้ง database mysql</p>
<p>ใครสนใจตัว apache สามารถดาวโหลดและใช้งานได้ฟรีจากเว็บ http://www.apache.org ครับ</p>
<p>สำหรับใครที่ใช้ Linux ในแผ่นจะมี apache อยู่แล้ว โดยเลือกลงโปรแกรม web server หรือใครไม่มีลอง yum install httpd ก็ได้ (ตระกูล Redhat , CentOS )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/apache-%e0%b8%84%e0%b8%b7%e0%b8%ad-%e0%b8%84%e0%b8%b3%e0%b8%96%e0%b8%b2%e0%b8%a1%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%a2%e0%b8%b4%e0%b8%99%e0%b8%9a%e0%b9%88%e0%b8%ad%e0%b8%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CPAN ตัวรวบรวม library ภาษา Perl</title>
		<link>http://www.webserverthai.com/linux/cpan-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%a3%e0%b8%a7%e0%b8%9a%e0%b8%a3%e0%b8%a7%e0%b8%a1-library-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2-perl/</link>
		<comments>http://www.webserverthai.com/linux/cpan-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%a3%e0%b8%a7%e0%b8%9a%e0%b8%a3%e0%b8%a7%e0%b8%a1-library-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2-perl/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 16:25:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=178</guid>
		<description><![CDATA[CPAN เป็นที่รวบรวมมอดูลและไลบรารีต่างๆ ให้ภาษา Perl สามารถใช้ในการติดตั้ง packages ต่างของภาษา Perl ได้อย่างง่ายดาย CPAN คล้ายกับ PEAR ของ PHP นั่นเอง การติดตั้ง cpan ใน CentOS สามารถใช้คำสั่ง yum install perl-libwww-perl เพื่อน install ตัว cpan ได้เลย ตัวอย่างการเข้า shell ของ cpan [root@serverscripts]# cpan cpan&#62; เมื่อต้องการ install package ใดๆ ก็ใช้คำสั่ง cpan&#62;install Archive::Tar เมื่อต้องการออกจาก cpan shell ให้ใช้คำสั่ง exit นอกจากนี้ที่ prompt ของ system สามารถ สั่งงานได้เลยโดยไม่ต้องเข้า shell ของ [...]]]></description>
			<content:encoded><![CDATA[<p>CPAN เป็นที่รวบรวมมอดูลและไลบรารีต่างๆ ให้ภาษา Perl สามารถใช้ในการติดตั้ง packages ต่างของภาษา Perl ได้อย่างง่ายดาย</p>
<p>CPAN คล้ายกับ PEAR ของ PHP นั่นเอง</p>
<p>การติดตั้ง cpan</p>
<p>ใน CentOS สามารถใช้คำสั่ง</p>
<p>yum install perl-libwww-perl</p>
<p>เพื่อน install ตัว cpan ได้เลย</p>
<p><span style="text-decoration: underline;">ตัวอย่างการเข้า shell ของ cpan</span></p>
<div id="_mcePaste"><span style="color: #ff0000;">[root@serverscripts]# cpan</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">cpan&gt;</span></div>
<p>เมื่อต้องการ install package ใดๆ ก็ใช้คำสั่ง</p>
<p><span style="color: #ff0000;"><span>cpan&gt;i</span>nstall Archive::Tar</span></p>
<p>เมื่อต้องการออกจาก cpan shell ให้ใช้คำสั่ง exit</p>
<p>นอกจากนี้ที่ prompt ของ system สามารถ สั่งงานได้เลยโดยไม่ต้องเข้า shell ของ CPAN เช่น</p>
<p><span style="color: #ff0000;">[root@serverscripts]#cpan install Archive::Tar Digest::SHA IP::Country Razor2 Net::Ident Mail::DKIM</span></p>
<p><span style="color: #000000;">ตัวนี้จะจำเป็นเวลาที่เราต้องการลงโปรแกรมที่ใช้ libraries ต่างๆของ Perl จำนวนมาก เช่น Spamassasin เป็นต้น</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/cpan-%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b8%a3%e0%b8%a7%e0%b8%9a%e0%b8%a3%e0%b8%a7%e0%b8%a1-library-%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ปรับแต่ง kernel รีดพลังให้ Linux</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-kernel-%e0%b8%a3%e0%b8%b5%e0%b8%94%e0%b8%9e%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b9%89-linux/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-kernel-%e0%b8%a3%e0%b8%b5%e0%b8%94%e0%b8%9e%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b9%89-linux/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 08:16:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=173</guid>
		<description><![CDATA[โดยปกติแล้วโดย default Linux จะตั้งค่าของ kernel มาให้แล้ว แต่แน่นอนว่าจะเป็นค่ากลางๆ สำหรับ hardware แบบกลางๆ ถ้าหากเราต้องการรีดพลังให้สูงสุด เราสามารถทำได้ดังนี้ 1. แก้ไขไฟล์ /etc/sysctl.conf ตัวอย่างไฟล์ sysctl แบบที่ปรับแต่งแล้ว # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls [...]]]></description>
			<content:encoded><![CDATA[<p>โดยปกติแล้วโดย default Linux จะตั้งค่าของ kernel มาให้แล้ว แต่แน่นอนว่าจะเป็นค่ากลางๆ สำหรับ hardware แบบกลางๆ</p>
<div>ถ้าหากเราต้องการรีดพลังให้สูงสุด เราสามารถทำได้ดังนี้</div>
<div>1. แก้ไขไฟล์ /etc/sysctl.conf</div>
<div>ตัวอย่างไฟล์ sysctl แบบที่ปรับแต่งแล้ว</div>
<div><span style="color: #ff0000;"># Kernel sysctl configuration file for Red Hat Linux</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">#</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># sysctl.conf(5) for more details.</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls IP packet forwarding</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.ip_forward = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls source route verification</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Do not accept source routing</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the System Request debugging functionality of the kernel</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.sysrq = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls whether core dumps will append the PID to the core filename</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Useful for debugging multi-threaded applications</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.core_uses_pid = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the use of TCP syncookies</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_syncookies = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the maximum size of a message, in bytes</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.msgmnb = 65536</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the default maxmimum size of a mesage queue</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.msgmax = 65536</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the maximum shared segment size, in bytes</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.shmmax = 4294967295</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Controls the maximum number of shared memory segments, in pages</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.shmall = 268435456</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disables packet forwarding</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.ip_forward=0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disables IP source routing</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Enable IP spoofing protection, turn on source route verification</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disable ICMP Redirect Acceptance</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disables IP source routing</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.accept_source_route = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Enable IP spoofing protection, turn on source route verification</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.rp_filter = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disable ICMP Redirect Acceptance</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.lo.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.eth0.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.default.accept_redirects = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Disables the magic-sysrq key</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">kernel.sysrq = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Decrease the time default value for tcp_fin_timeout connection</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_fin_timeout = 15</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Decrease the time default value for tcp_keepalive_time connection</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_keepalive_time = 1200</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Turn off the tcp_window_scaling</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_window_scaling = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Turn off the tcp_sack</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_sack = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Turn off the tcp_timestamps</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_timestamps = 0</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_syncookies = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Enable ignoring broadcasts request</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.icmp_echo_ignore_broadcasts = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Enable bad error message Protection</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.icmp_ignore_bogus_error_responses = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Log Spoofed Packets, Source Routed Packets, Redirect Packets</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.conf.all.log_martians = 1</span></div>
<div id="_mcePaste"><span style="color: #ff0000;"># Increases the size of the socket queue (effectively, q0).</span></div>
<div id="_mcePaste"><span style="color: #ff0000;">net.ipv4.tcp_max_syn_backlog = 1024</span></div>
<p><span style="color: #ff0000;"># Kernel sysctl configuration file for Red Hat Linux## For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and# sysctl.conf(5) for more details.<br />
# Controls IP packet forwardingnet.ipv4.ip_forward = 0<br />
# Controls source route verificationnet.ipv4.conf.default.rp_filter = 1<br />
# Do not accept source routingnet.ipv4.conf.default.accept_source_route = 0<br />
# Controls the System Request debugging functionality of the kernelkernel.sysrq = 0<br />
# Controls whether core dumps will append the PID to the core filename# Useful for debugging multi-threaded applicationskernel.core_uses_pid = 1<br />
# Controls the use of TCP syncookiesnet.ipv4.tcp_syncookies = 1<br />
# Controls the maximum size of a message, in byteskernel.msgmnb = 65536<br />
# Controls the default maxmimum size of a mesage queuekernel.msgmax = 65536<br />
# Controls the maximum shared segment size, in byteskernel.shmmax = 4294967295<br />
# Controls the maximum number of shared memory segments, in pageskernel.shmall = 268435456<br />
# Disables packet forwardingnet.ipv4.ip_forward=0<br />
# Disables IP source routingnet.ipv4.conf.all.accept_source_route = 0net.ipv4.conf.lo.accept_source_route = 0net.ipv4.conf.eth0.accept_source_route = 0net.ipv4.conf.default.accept_source_route = 0<br />
# Enable IP spoofing protection, turn on source route verificationnet.ipv4.conf.all.rp_filter = 1net.ipv4.conf.lo.rp_filter = 1net.ipv4.conf.eth0.rp_filter = 1net.ipv4.conf.default.rp_filter = 1<br />
# Disable ICMP Redirect Acceptancenet.ipv4.conf.all.accept_redirects = 0net.ipv4.conf.lo.accept_redirects = 0net.ipv4.conf.eth0.accept_redirects = 0net.ipv4.conf.default.accept_redirects = 0</span></p>
<p><span style="color: #ff0000;"># Disables IP source routingnet.ipv4.conf.all.accept_source_route = 0net.ipv4.conf.lo.accept_source_route = 0net.ipv4.conf.eth0.accept_source_route = 0net.ipv4.conf.default.accept_source_route = 0<br />
# Enable IP spoofing protection, turn on source route verificationnet.ipv4.conf.all.rp_filter = 1net.ipv4.conf.lo.rp_filter = 1net.ipv4.conf.eth0.rp_filter = 1net.ipv4.conf.default.rp_filter = 1<br />
# Disable ICMP Redirect Acceptancenet.ipv4.conf.all.accept_redirects = 0net.ipv4.conf.lo.accept_redirects = 0net.ipv4.conf.eth0.accept_redirects = 0net.ipv4.conf.default.accept_redirects = 0<br />
# Disables the magic-sysrq keykernel.sysrq = 0<br />
# Decrease the time default value for tcp_fin_timeout connectionnet.ipv4.tcp_fin_timeout = 15<br />
# Decrease the time default value for tcp_keepalive_time connectionnet.ipv4.tcp_keepalive_time = 1200<br />
# Turn off the tcp_window_scalingnet.ipv4.tcp_window_scaling = 0<br />
# Turn off the tcp_sacknet.ipv4.tcp_sack = 0<br />
# Turn off the tcp_timestampsnet.ipv4.tcp_timestamps = 0<br />
net.ipv4.tcp_syncookies = 1<br />
# Enable ignoring broadcasts requestnet.ipv4.icmp_echo_ignore_broadcasts = 1<br />
# Enable bad error message Protectionnet.ipv4.icmp_ignore_bogus_error_responses = 1<br />
# Log Spoofed Packets, Source Routed Packets, Redirect Packetsnet.ipv4.conf.all.log_martians = 1<br />
# Increases the size of the socket queue (effectively, q0).net.ipv4.tcp_max_syn_backlog = 10242.</span></p>
<p>2. หลังจากนั้นใช้คำสั่ง sysctl -p เพื่อใช้ค่าใหม่โดยไม่ต้อง boot เครื่อง หรือ reboot เครื่องใหม่เลยก็ได้</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-kernel-%e0%b8%a3%e0%b8%b5%e0%b8%94%e0%b8%9e%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b9%89-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เทคนิดการลบ file ใน Linux กรณีไฟล์เยอะๆ</title>
		<link>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%97%e0%b8%84%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%9a-file-%e0%b9%83%e0%b8%99-linux-%e0%b8%81%e0%b8%a3%e0%b8%93%e0%b8%b5%e0%b9%84%e0%b8%9f%e0%b8%a5/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%97%e0%b8%84%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%9a-file-%e0%b9%83%e0%b8%99-linux-%e0%b8%81%e0%b8%a3%e0%b8%93%e0%b8%b5%e0%b9%84%e0%b8%9f%e0%b8%a5/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 08:31:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=156</guid>
		<description><![CDATA[ในบางครั้ง files ใน directory ของเราอาจจะมีจำนวนมาก จนกระทั่งเมื่อเราต้องการลบโดยคำสั่ง rm -f (ชื่อไฟล์) จะไม่สามารถลบได้ ( error จะขึ้นว่า /bin/rm: Argument list too long ) ให้ใช้คำสั่ง find แทน แล้วตามด้วย argument xargs rm -f ก็จะสามารถลบได้ ตัวอย่างคำสั่ง find . -name spam* &#124; xargs rm -f อีกเทคนิคนึงที่ผมชอบใช้คือ ในกรณีที่ต้องการลบไฟล์ทั้งหมดใน directory นั้น ก็ลบ directory ทิ้ง แล้วค่อยสร้างขึ้นมาใหม่ก็ได้]]></description>
			<content:encoded><![CDATA[<p>ในบางครั้ง files ใน directory ของเราอาจจะมีจำนวนมาก จนกระทั่งเมื่อเราต้องการลบโดยคำสั่ง rm -f (ชื่อไฟล์) จะไม่สามารถลบได้ ( error จะขึ้นว่า /bin/rm: Argument list too long )</p>
<p>ให้ใช้คำสั่ง find แทน แล้วตามด้วย argument xargs rm -f ก็จะสามารถลบได้</p>
<p>ตัวอย่างคำสั่ง find . -name spam* | xargs rm -f</p>
<p>อีกเทคนิคนึงที่ผมชอบใช้คือ ในกรณีที่ต้องการลบไฟล์ทั้งหมดใน directory นั้น ก็ลบ directory ทิ้ง แล้วค่อยสร้างขึ้นมาใหม่ก็ได้</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b9%80%e0%b8%97%e0%b8%84%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%9a-file-%e0%b9%83%e0%b8%99-linux-%e0%b8%81%e0%b8%a3%e0%b8%93%e0%b8%b5%e0%b9%84%e0%b8%9f%e0%b8%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การทำ sub-interface บน Linux</title>
		<link>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-sub-interface-%e0%b8%9a%e0%b8%99-linux/</link>
		<comments>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-sub-interface-%e0%b8%9a%e0%b8%99-linux/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 15:47:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=146</guid>
		<description><![CDATA[ในบางครั้งเรามีความต้องการที่จะให้ 1 interface มีหลาย ip เพื่อประโยชน์บางอย่าง เช่น ใช้ Linux เป็น Router , ให้บริการ network หลายๆวง ฯลฯ กรณีต้องการทำ sub interface ( 1 interface มีหลาย ip ) มีขั้นตอนดังนี้ 1. copy file /etc/sysconfig/network-scripts/ifcfg-eth0 ( กรณีเป็น Ethernet 0 ) ไปเป็น /etc/sysconfig/network-scripts/ifcfg-eth0:1 2. ใช้โปรแกรม vi editor แก้ไขไฟล์ /etc/sysconfig/network-scripts/ifcfg-eth0:1 3. แก้บรรทัดที่เขียนว่า DEVICE=eth0 เป็น DEVICE=eth0:1 4. แก้ไข ip address และ parameters อื่นๆให้เรียบร้อย 5. Restart [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">ในบางครั้งเรามีความต้องการที่จะให้ 1 interface มีหลาย ip เพื่อประโยชน์บางอย่าง เช่น ใช้ Linux เป็น Router , ให้บริการ network หลายๆวง ฯลฯ</div>
<div><strong>กรณีต้องการทำ sub interface</strong> ( 1 interface มีหลาย ip ) มีขั้นตอนดังนี้</div>
<div>1. copy file /etc/sysconfig/network-scripts/ifcfg-eth0 ( กรณีเป็น Ethernet 0 ) ไปเป็น /etc/sysconfig/network-scripts/ifcfg-eth0:1</div>
<div id="_mcePaste">2. ใช้โปรแกรม vi editor แก้ไขไฟล์ /etc/sysconfig/network-scripts/ifcfg-eth0:1</div>
<div>3. แก้บรรทัดที่เขียนว่า DEVICE=eth0 เป็น DEVICE=eth0:1</div>
<div>4. แก้ไข ip address และ parameters อื่นๆให้เรียบร้อย</div>
<div>5. Restart network service ด้วยคำสั่ง service network restart</div>
<div>6. ใช้คำสั่ง ifconfig เพื่อเช็คดู interface ที่สร้างขึ้นใหม่</div>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2010/12/ifconfig.png"><img class="aligncenter size-full wp-image-147" title="ifconfig" src="http://www.webserverthai.com/wp-content/uploads/2010/12/ifconfig.png" alt="" width="320" height="240" /></a></p>
<p>7. ทดลอง ping ไป ที่ ip ของเครื่องในวงเดียวกันกับ sub interface</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/linux/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-sub-interface-%e0%b8%9a%e0%b8%99-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

