<?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>ถนนเส้นนี้ กลับบ้าน &#187; ลีนุกซ์ โอเพนซอร์ส</title>
	<atom:link href="http://wutthiphan.com/category/%e0%b8%a5%e0%b8%b5%e0%b8%99%e0%b8%b8%e0%b8%81%e0%b8%8b%e0%b9%8c-%e0%b9%82%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%99%e0%b8%8b%e0%b8%ad%e0%b8%a3%e0%b9%8c%e0%b8%aa/feed/" rel="self" type="application/rss+xml" />
	<link>http://wutthiphan.com</link>
	<description>Life, Computers, Travelog, Blogging &#38; IgA Nephropathy...</description>
	<lastBuildDate>Wed, 07 Apr 2010 09:17:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>X100P โทรออกไม่ได้</title>
		<link>http://wutthiphan.com/2010/03/11/x100p-%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89/</link>
		<comments>http://wutthiphan.com/2010/03/11/x100p-%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 05:44:09 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[elastix]]></category>
		<category><![CDATA[outbound]]></category>
		<category><![CDATA[x100p]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=694</guid>
		<description><![CDATA[ไม่ได้หยิบ x100p ขึ้นมาลองเล่นนานมากแล้ว พอดีช่วงนี้มีงานเล็กๆน้อย เลยเอามาติดตั้งอีกครั้งบน elastix 1.6 จากการติดตั้งสามารถโทรเข้าได้ปกติ แต่ไม่สามารถโทรออกได้ โดยมี error ขึ้นที่ cli ดังต่อไปนี้

1
dahdi : Cannot start until a tone zone is loaded.

และที่หูโทรศัพท์จะได้ยินเสียงว่า all-circuits-busy-now pls-try-call-later
จากปัญหาข้างต้นผมแก้ปัญหาที่ไฟล์ /etc/dahdi/system.conf โดยคอมเม้นท์บรรทัด echocanceller=oslec,1 ออกตามด้านล่าง

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Autogenerated by /usr/sbin/dahdi_genconf on Wed Mar  3 16:28:54 2010
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่ได้หยิบ x100p ขึ้นมาลองเล่นนานมากแล้ว พอดีช่วงนี้มีงานเล็กๆน้อย เลยเอามาติดตั้งอีกครั้งบน elastix 1.6 จากการติดตั้งสามารถโทรเข้าได้ปกติ แต่ไม่สามารถโทรออกได้ โดยมี error ขึ้นที่ cli ดังต่อไปนี้</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sh" style="font-family:monospace;">dahdi : Cannot start until a tone zone is loaded.</pre></td></tr></table></div>

<p>และที่หูโทรศัพท์จะได้ยินเสียงว่า all-circuits-busy-now pls-try-call-later<br />
จากปัญหาข้างต้นผมแก้ปัญหาที่ไฟล์ /etc/dahdi/system.conf โดยคอมเม้นท์บรรทัด echocanceller=oslec,1 ออกตามด้านล่าง</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="sh" style="font-family:monospace;"># Autogenerated by /usr/sbin/dahdi_genconf on Wed Mar  3 16:28:54 2010
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCFXO/0 &quot;Wildcard X100P Board 1&quot; (MASTER)
fxsks=1
#echocanceller=oslec,1
&nbsp;
# Global data
&nbsp;
loadzone        = us
defaultzone     = us</pre></td></tr></table></div>

<p>จากนั้น reboot ระบบก็สามารถลองโทรออกได้แล้วครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2010/03/11/x100p-%e0%b9%82%e0%b8%97%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>การรวมไฟล์ PDF บน Ubuntu</title>
		<link>http://wutthiphan.com/2009/12/21/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a3%e0%b8%a7%e0%b8%a1%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-pdf-%e0%b8%9a%e0%b8%99-ubuntu/</link>
		<comments>http://wutthiphan.com/2009/12/21/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a3%e0%b8%a7%e0%b8%a1%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-pdf-%e0%b8%9a%e0%b8%99-ubuntu/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 11:45:31 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=678</guid>
		<description><![CDATA[สั้นๆนะ แบบจดกันลืม ทำได้โดยใช้คำสั่ง pdftk ถ้าไม่มีก็ apt-get มาอย่าให้เสีย
การใช้คำลั่งก็ตามนี้
#pdftk  filepdf1.pdf filepdf2.pdf cat output output.pdf 
ข้างบนนี้รวมไฟล์ pdf สองไฟล์ (filepdf1.pdf กับ filepdf2.pdf) ให้ออกมาเป็น output.pdf เพียงไฟล์เดียว
และก็มี PDF Reader ชื่อ FoxitReader น่าใช้เหมือนกัน
]]></description>
			<content:encoded><![CDATA[<p>สั้นๆนะ แบบจดกันลืม ทำได้โดยใช้คำสั่ง pdftk ถ้าไม่มีก็ apt-get มาอย่าให้เสีย<br />
การใช้คำลั่งก็ตามนี้<br />
<code>#pdftk  filepdf1.pdf filepdf2.pdf cat output output.pdf </code><br />
ข้างบนนี้รวมไฟล์ pdf สองไฟล์ (filepdf1.pdf กับ filepdf2.pdf) ให้ออกมาเป็น output.pdf เพียงไฟล์เดียว</p>
<p>และก็มี PDF Reader ชื่อ <a href="http://www.foxitsoftware.com/">FoxitReader</a> น่าใช้เหมือนกัน</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2009/12/21/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a3%e0%b8%a7%e0%b8%a1%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-pdf-%e0%b8%9a%e0%b8%99-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ไหงเป็นจังซี่</title>
		<link>http://wutthiphan.com/2009/01/27/%e0%b9%84%e0%b8%ab%e0%b8%87%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%88%e0%b8%b1%e0%b8%87%e0%b8%8b%e0%b8%b5%e0%b9%88/</link>
		<comments>http://wutthiphan.com/2009/01/27/%e0%b9%84%e0%b8%ab%e0%b8%87%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%88%e0%b8%b1%e0%b8%87%e0%b8%8b%e0%b8%b5%e0%b9%88/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 02:57:28 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[Kubuntu]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=611</guid>
		<description><![CDATA[
Kubuntu ที่ถูกจัดการด้านภาษาไทยมาอย่างดีจนกลายมาเป็น Suriyan ตอนนี้จัดการลงไว้ใช้งานบนnetbook lenovo รุ่น S10 ของผมเรียบร้อยแล้ว กับkernel 2.6.27-9 นั้นสามารถมองเห็นอุปกรณ์ทุกชิ้นของรุ่นนี้ ทั้งๆทีแรกกังวลใจเรื่องไวเลสและกล้อง แต่ก็สามารถเปิดใช้งานได้ทั้งหมด ลงเสร็จอัพเดทโน่นนี่ และแอบหลงไหลกับความสวยงามของ Plasma ความน่าตื่นตาของ KWin ธีมสวยๆแบบ Oxygen และอีกหลายๆอย่างบน KDE4.1.4 เรียกว่าสวยงามน่าใช้ทีเดียว
แต่ก็ติดอยู่อย่างที่เจอนี่แหละตามที่เอารูปมาให้ดู เขาคงแก้กันไปแล้วมั้งพอดีนานมากแล้วไม่ได้ใช้งานลีนุกซ์เป็นdesktopมานานเดี๋ยวคงต้องลองหาดูที่ชาวบ้านชาวช่องเขาแก้ไขไปแล้วก่อนดีกว่า..
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone" src="http://wutthiphan.com/wp-content/uploads/2009/01/kubuntu00-300x143.jpg" alt="" width="300" height="143" /></p>
<p style="text-align: left;"><a href="http://www.kubuntu.org/">Kubuntu</a> ที่ถูกจัดการด้านภาษาไทยมาอย่างดีจนกลายมาเป็น <a href="http://suriyan.in.th/">Suriyan</a> ตอนนี้จัดการลงไว้ใช้งานบนnetbook lenovo รุ่น S10 ของผมเรียบร้อยแล้ว กับkernel 2.6.27-9 นั้นสามารถมองเห็นอุปกรณ์ทุกชิ้นของรุ่นนี้ ทั้งๆทีแรกกังวลใจเรื่องไวเลสและกล้อง แต่ก็สามารถเปิดใช้งานได้ทั้งหมด ลงเสร็จอัพเดทโน่นนี่ และแอบหลงไหลกับความสวยงามของ <a href="http://plasma.kde.org/">Plasma</a> ความน่าตื่นตาของ KWin ธีมสวยๆแบบ <small><a href="http://techbase.kde.org/Projects/Oxygen">Oxygen</a> และอีกหลายๆอย่างบน <a href="http://kde.org/">KDE4.1.4</a> เรียกว่าสวยงามน่าใช้ทีเดียว</small></p>
<p style="text-align: left;">แต่ก็ติดอยู่อย่างที่เจอนี่แหละตามที่เอารูปมาให้ดู เขาคงแก้กันไปแล้วมั้งพอดีนานมากแล้วไม่ได้ใช้งานลีนุกซ์เป็นdesktopมานานเดี๋ยวคงต้องลองหาดูที่ชาวบ้านชาวช่องเขาแก้ไขไปแล้วก่อนดีกว่า..</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2009/01/27/%e0%b9%84%e0%b8%ab%e0%b8%87%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%88%e0%b8%b1%e0%b8%87%e0%b8%8b%e0%b8%b5%e0%b9%88/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ทำวิทยุออนไลน์ด้วย ffserver และ ffmpeg</title>
		<link>http://wutthiphan.com/2008/12/21/%e0%b8%97%e0%b8%b3%e0%b8%a7%e0%b8%b4%e0%b8%97%e0%b8%a2%e0%b8%b8%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ffserver-%e0%b9%81%e0%b8%a5%e0%b8%b0/</link>
		<comments>http://wutthiphan.com/2008/12/21/%e0%b8%97%e0%b8%b3%e0%b8%a7%e0%b8%b4%e0%b8%97%e0%b8%a2%e0%b8%b8%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ffserver-%e0%b9%81%e0%b8%a5%e0%b8%b0/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 00:02:52 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ระบบของผม]]></category>
		<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[อินเทอร์เน็ต]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=502</guid>
		<description><![CDATA[ไม่ได้มากระแทกคีย์บอร์ดบ่นบนบล็อกนี้นานนมและนมนาน เพราะช่วงนี้ก็หาอะไรทำไปเรื่อยส่วนใหญ่เป็นอะไรที่ยังคิดไม่เสร็จทั้งนั้น ทำไปโยนหินถามไป ได้บ้างไม่ได้บ้าง สุดแต่เรี่ยวแรงปัญญาจะนำพา
พอดีผมได้ลองทดสอบการทำวิทยุออนไลน์ โดยใช้ ffserver และ ffmpeg ในการทำงาน ซึ่งก็ได้ผลเป็นที่น่าพอใจ ตอนนี้ทำdemo เสร็จแล้ว
ผมทำไว้ที่โต๊ะทำงานในห้องนอนผมเองแหละ กะว่าจะออนไลน์กัน 24 ชั่วโมงเลย จริงๆผมทำกล้องไว้ด้วย คือออนไลน์ทั้งภาพและเสียงได้เลย แต่เรื่องกล้องนั้นยังไม่สะดวกเท่าไร เออ..คือขอขัดขี้ไคลให้ขาวๆก่อนล่ะกัน ตอนนี้ก็เอาเฉพาะเสียงเหี่ยวๆ ฟังไปล่ะกัน เผลอๆอาจจะมีเสียวๆบ้างในบางเวลา ก็ต้องขออภัย 555 ก็ว่าไปนั่น ผมเขียนเรื่องนี้ไว้หยาบๆ(หยาบจริงๆ) เข้าไปอ่านได้ ที่นี่ นะครับ ผมตั้งใจว่าถ้าผมทดลองจนเป็นที่น่าพอใจแล้วจะเปิดให้บริการ รับทำวิทยุออนไลน์ และ วีดีโอออนไลน์ สนใจมาเป็นลูกค้าผมได้นะครับ  ตอนนี้ช่วยผมเทสหน่อยล่ะกัน
เทสง่ายๆครับผมมีไมค์ตัวนึงซ่อนไว้แถวๆโต๊ะทำงานผมเองแหละ จัดการ streaming ออกไปสู่โลกภายนอกตามวิธีที่ผมเขียนไว้ กดฟังได้จากด้านล่างนี้เลยครับ

อาจจะไม่เสียว ก็ต้องขออภัย แต่จะบอกว่าตอนที่ทดลองทำออนไลน์ทั้งภาพทั้งเสียงนี้ ไม่ได้ใส่กุงเกงเลยนะเนี่ย เย็นสบายจริงๆ ผับผ่า&#8230;.
]]></description>
			<content:encoded><![CDATA[<p>ไม่ได้มากระแทกคีย์บอร์ดบ่นบนบล็อกนี้นานนมและนมนาน เพราะช่วงนี้ก็หาอะไรทำไปเรื่อยส่วนใหญ่เป็นอะไรที่ยังคิดไม่เสร็จทั้งนั้น ทำไปโยนหินถามไป ได้บ้างไม่ได้บ้าง สุดแต่เรี่ยวแรงปัญญาจะนำพา</p>
<p>พอดีผมได้ลองทดสอบการทำวิทยุออนไลน์ โดยใช้ ffserver และ ffmpeg ในการทำงาน ซึ่งก็ได้ผลเป็นที่น่าพอใจ ตอนนี้ทำdemo เสร็จแล้ว<br />
ผมทำไว้ที่โต๊ะทำงานในห้องนอนผมเองแหละ กะว่าจะออนไลน์กัน 24 ชั่วโมงเลย จริงๆผมทำกล้องไว้ด้วย คือออนไลน์ทั้งภาพและเสียงได้เลย แต่เรื่องกล้องนั้นยังไม่สะดวกเท่าไร เออ..คือขอขัดขี้ไคลให้ขาวๆก่อนล่ะกัน ตอนนี้ก็เอาเฉพาะเสียงเหี่ยวๆ ฟังไปล่ะกัน เผลอๆอาจจะมีเสียวๆบ้างในบางเวลา ก็ต้องขออภัย 555 ก็ว่าไปนั่น ผมเขียนเรื่องนี้ไว้หยาบๆ(หยาบจริงๆ) เข้าไปอ่านได้ <a href="http://project.wutthiphan.com/index.php/Friend_Audio_Video_Online">ที่นี่</a> นะครับ ผมตั้งใจว่าถ้าผมทดลองจนเป็นที่น่าพอใจแล้วจะเปิดให้บริการ รับทำวิทยุออนไลน์ และ วีดีโอออนไลน์ สนใจมาเป็นลูกค้าผมได้นะครับ  ตอนนี้ช่วยผมเทสหน่อยล่ะกัน<br />
เทสง่ายๆครับผมมีไมค์ตัวนึงซ่อนไว้แถวๆโต๊ะทำงานผมเองแหละ จัดการ streaming ออกไปสู่โลกภายนอกตามวิธีที่ผมเขียนไว้ กดฟังได้จากด้านล่างนี้เลยครับ</p>
<p><center></center></p>
<p>อาจจะไม่เสียว ก็ต้องขออภัย แต่จะบอกว่าตอนที่ทดลองทำออนไลน์ทั้งภาพทั้งเสียงนี้ ไม่ได้ใส่กุงเกงเลยนะเนี่ย เย็นสบายจริงๆ ผับผ่า&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/12/21/%e0%b8%97%e0%b8%b3%e0%b8%a7%e0%b8%b4%e0%b8%97%e0%b8%a2%e0%b8%b8%e0%b8%ad%e0%b8%ad%e0%b8%99%e0%b9%84%e0%b8%a5%e0%b8%99%e0%b9%8c%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ffserver-%e0%b9%81%e0%b8%a5%e0%b8%b0/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<enclosure url="http://61.47.7.240:8090/demo_audio.mp3" length="1" type="audio/mpeg"/>
	</item>
		<item>
		<title>Endian auto login allows reboot and reset to factory-default</title>
		<link>http://wutthiphan.com/2008/06/14/endian-auto-login-allows-reboot-and-reset-to-factory-default/</link>
		<comments>http://wutthiphan.com/2008/06/14/endian-auto-login-allows-reboot-and-reset-to-factory-default/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 18:23:47 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[รักษาความปลอดภัย]]></category>
		<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[Endian Firewall]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=320</guid>
		<description><![CDATA[ช่วงนี้ไม่ค่อยได้เขียนบทความเกี่ยวกับคอมพิวเตอร์เอาซะเลย วันนี้เลยขอปัดฝุ่นคำถามเก่าๆจากน้องคนหนึ่งที่ถามเข้ามาผ่านทาง msn จริงๆผมอยากให้ทิ้งคำถามไว้ในบล็อคนี้เลย ยังไงเสียคำถามของท่านอาจจะเป็นคำตอบของอีกหลายคนก็ได้ จะได้แบ่งๆกัน
ว่าด้วย Endian firewall กับระบบ auto login ที่เมื่อบูทระบบขึ้นมาแล้วผ่านทางหน้าจอเราจะเห็นเมนูประมาณด้านล่างนี้

0 shell
1 reset to factory default
2 reboot

เมื่อเลือกเมนู 0 ระบบมีการถาม user และ password แต่กับเมนู 1 และ 2 กลับไม่ถาม ก็ลองคิดดูว่าไฟล์วอลล์ที่ใช้ในการรักษาความปลอดภัย แต่กลับถูก reset to factory default ง่ายๆ ไม่ว่าจะผ่านคีย์บอร์ด หรือผ่าน rs232 console หรือแค่เอามือเผลอไปเฉี่ยวๆคีย์บอร์ดก็อาจจะเดี้ยงแล้ว
ผมได้แนะนำการแก้ปัญหาไปดังนี้คือ ให้ดูที่ไฟล์ /etc/inittab โดยจะมีข้อมูลอยู่ดังนี้

#
# $Id: inittab,v 1.6 2003/12/24 19:51:23 riddles Exp $
#
id:3:initdefault:
&#160;
l0:0:wait:/etc/rc.d/rc.halt halt
l6:6:wait:/etc/rc.d/rc.halt reboot
&#160;
si::sysinit:/etc/rc.d/rc.sysinit
&#160;
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-321" style="margin: 0px 5px; float: left;" title="rtemagicc_efw_community_125x125_02" src="http://wutthiphan.com/wp-content/uploads/2008/06/rtemagicc_efw_community_125x125_02.png" alt="endian firewall community" width="125" height="125" />ช่วงนี้ไม่ค่อยได้เขียนบทความเกี่ยวกับคอมพิวเตอร์เอาซะเลย วันนี้เลยขอปัดฝุ่นคำถามเก่าๆจากน้องคนหนึ่งที่ถามเข้ามาผ่านทาง msn จริงๆผมอยากให้ทิ้งคำถามไว้ในบล็อคนี้เลย ยังไงเสียคำถามของท่านอาจจะเป็นคำตอบของอีกหลายคนก็ได้ จะได้แบ่งๆกัน</p>
<p>ว่าด้วย Endian firewall กับระบบ auto login ที่เมื่อบูทระบบขึ้นมาแล้วผ่านทางหน้าจอเราจะเห็นเมนูประมาณด้านล่างนี้</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">0</span> shell
<span style="color: #000000;">1</span> reset to factory default
<span style="color: #000000;">2</span> reboot</pre></div></div>

<p>เมื่อเลือกเมนู 0 ระบบมีการถาม user และ password แต่กับเมนู 1 และ 2 กลับไม่ถาม ก็ลองคิดดูว่าไฟล์วอลล์ที่ใช้ในการรักษาความปลอดภัย แต่กลับถูก reset to factory default ง่ายๆ ไม่ว่าจะผ่านคีย์บอร์ด หรือผ่าน rs232 console หรือแค่เอามือเผลอไปเฉี่ยวๆคีย์บอร์ดก็อาจจะเดี้ยงแล้ว</p>
<p>ผมได้แนะนำการแก้ปัญหาไปดังนี้คือ ให้ดูที่ไฟล์ /etc/inittab โดยจะมีข้อมูลอยู่ดังนี้</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># $Id: inittab,v 1.6 2003/12/24 19:51:23 riddles Exp $</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #c20cb9; font-weight: bold;">id</span>:<span style="color: #000000;">3</span>:initdefault:
&nbsp;
l0:<span style="color: #000000;">0</span>:<span style="color: #7a0874; font-weight: bold;">wait</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.halt halt
l6:<span style="color: #000000;">6</span>:<span style="color: #7a0874; font-weight: bold;">wait</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.halt reboot
&nbsp;
si::sysinit:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.sysinit
&nbsp;
<span style="color: #666666; font-style: italic;"># Trap CTRL-ALT-DELETE</span>
ca::ctrlaltdel:<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>shutdown <span style="color: #660033;">-r</span> now
&nbsp;
<span style="color: #666666; font-style: italic;"># Run gettys in standard runlevels</span>
<span style="color: #000000;">1</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty1
<span style="color: #000000;">2</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty2
<span style="color: #000000;">3</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty3
<span style="color: #000000;">4</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty4
<span style="color: #000000;">5</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty5
<span style="color: #000000;">6</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty6
&nbsp;
<span style="color: #666666; font-style: italic;"># s0:2345:respawn: /sbin/agetty -n -l /usr/sbin/efw-console -L 38400 ttyS0 vt100</span></pre></div></div>

<p>จะเห็นว่ามันทำ autologin โดยผู้ใช้ root เลย แล้วก็รันสคริป /usr/sbin/efw-console เลย แก้ใหม่เป็นดังนี้<br />
<span id="more-320"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># $Id: inittab,v 1.6 2003/12/24 19:51:23 riddles Exp $</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #c20cb9; font-weight: bold;">id</span>:<span style="color: #000000;">3</span>:initdefault:
&nbsp;
l0:<span style="color: #000000;">0</span>:<span style="color: #7a0874; font-weight: bold;">wait</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.halt halt
l6:<span style="color: #000000;">6</span>:<span style="color: #7a0874; font-weight: bold;">wait</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.halt reboot
&nbsp;
si::sysinit:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.sysinit
&nbsp;
<span style="color: #666666; font-style: italic;"># Trap CTRL-ALT-DELETE</span>
ca::ctrlaltdel:<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>shutdown <span style="color: #660033;">-r</span> now
&nbsp;
<span style="color: #666666; font-style: italic;"># Run gettys in standard runlevels</span>
<span style="color: #000000;">1</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty tty1
<span style="color: #000000;">2</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty tty2
<span style="color: #000000;">3</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty tty3
<span style="color: #000000;">4</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty tty4
<span style="color: #000000;">5</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty tty5
<span style="color: #000000;">6</span>:<span style="color: #000000;">2345</span>:respawn: <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mingetty <span style="color: #660033;">--autologin</span> root <span style="color: #660033;">--loginprog</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>efw-console tty6
&nbsp;
<span style="color: #666666; font-style: italic;"># s0:2345:respawn: /sbin/agetty -n -l /usr/sbin/efw-console -L 38400 ttyS0 vt100</span></pre></div></div>

<p>จากนั้นลอง boot ใหม่ หรือรัน init q ก็จะสามารถใช้งานแก้ปัญหา autologin ได้แล้ว ผมทิ้งเทอมินอลที่ 6 ไว้เผื่อจำเป็นอยากจะ reset to factory default แบบตั้งใจด้วย หรือถ้าอยากให้แจ่มจริงๆก็ทำทั้งหมดเลยได้ครับ</p>
<p>ปล. เรื่องนี้ที่ <a href="http://bugs.endian.it/view.php?id=308">http://bugs.endian.it/</a> ก็มีคุยกันด้วยแฮะ..<br />
ปล2. ตอนนี้กำลังลอง Endian Firewall Community release 2.2.beta4 บั๊กบานเลย อ้อแล้วก็กำลังโหลด 	Endian Firewall Community 2.2 RC1 อยู่</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/06/14/endian-auto-login-allows-reboot-and-reset-to-factory-default/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>บันทึกอัพเกรดเคอเนล (Kernel 2.6)</title>
		<link>http://wutthiphan.com/2008/05/20/compile_kernel_26/</link>
		<comments>http://wutthiphan.com/2008/05/20/compile_kernel_26/#comments</comments>
		<pubDate>Mon, 19 May 2008 20:39:05 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=272</guid>
		<description><![CDATA[บันทึกกันลืมอันเนื่องมาจากงานชิ้นนี้โหดร้ายพอดู จริงๆก็เป็นการอัพเกรดเคอเนลจาก 2.4 ไปเป็น 2.6 ของลีนุกซ์ debian3.1r3 ธรรมดาๆ แต่ที่มันไม่ธรรมดาคือต้องทำผ่านเน็ตเวิร์คเลย หนักกว่านั้นคือ จากที่บ้าน รีโมทตรงๆไปที่เครื่องไม่ได้ ต้องผ่านออฟฟิศเก่าผมก่อน(โชคดีที่ vpn ยังใช้งานได้) เข้าไปพักที่เครื่อง enigma ก่อนทั้ง ssh และ scp (โชคดีที่สองที่พวกเด็กแว้นเวรวันหยุดเขาไม่โหลดบิทกันไม่งั้นจุก) ที่ลำบากอีกอย่างคือเครื่องทั้งสามตัวออกเน็ตไม่ได้ ไอ้จะ apt-get ง่ายๆก็ต้องอด
เดิมระบบลงไว้แบบสุดประหยัึด(เพราะตัวทั้งตัวเป็นลีนุกซ์ที่รันบนคอมแพคแฟลชขนาด2GB) สเปกเครื่องเป็น CPU = Celeron 400Mhz, RAM = 512MB
เริ่มจาก
1 ดาวน์โหลดไฟล์เหล่านี้จากอินเตอร์เน็ตที่ http://www.debian.org/distrib/packages

fakeroot_1.2.10_i386.deb
bzip2_1.0.2-7_i386.deb
patch_2.5.9-2_i386.deb
make_3.80-9_i386.deb
binutils_2.15-6_i386.deb
dpkg-dev_1.10.28_all.deb
kernel-kbuild-2.6-3_2.6.8-2_i386.deb
kernel-headers-2.6.8-3_2.6.8-16sarge6_i386.deb
procps_3.2.1-2_i386.deb
linux-kernel-headers_2.6.18-7_i386.deb
libc6_2.3.6.ds1-13etch5_i386.deb
libc6-dev_2.3.6.ds1-13etch5_i386.deb
cpp-3.3_3.3.5-13_i386.deb
gcc-3.3_3.3.5-13_i386.deb
cpp_3.3.5-3_i386.deb
gcc_3.3.5-3_i386.deb
kernel-package_8.135_all.deb
libncurses5-dev_5.5-5_i386.deb
module-init-tools_3.2-pre1-2_i386.deb
initrd-tools_0.1.81.1_i386.deb

อ้อ.. ลืมไป มี


linux-2.6.8.tar.bz2

2 โหลดเสร็จแล้ว tar รวมกันโยนสองต่อไปที่เครื่องปลายทาง

เครื่องผม ---FTP---&#38;gt;เครื่องenigmaที่ออฟฟิศ---SCP---&#38;gt;เครื่องปลายทางที่สาขา

3 ติดตั้งพวกที่เป็น .deb ด้วยคำสั่ง dpkg -i

dpkg -i fakeroot_1.2.10_i386.deb bzip2_1.0.2-7_i386.deb
dpkg -i patch_2.5.9-2_i386.deb make_3.80-9_i386.deb binutils_2.15-6_i386.deb dpkg-dev_1.10.28_all.deb
dpkg [...]]]></description>
			<content:encoded><![CDATA[<p>บันทึกกันลืมอันเนื่องมาจากงานชิ้นนี้โหดร้ายพอดู จริงๆก็เป็นการอัพเกรดเคอเนลจาก 2.4 ไปเป็น 2.6 ของลีนุกซ์ debian3.1r3 ธรรมดาๆ แต่ที่มันไม่ธรรมดาคือต้องทำผ่านเน็ตเวิร์คเลย หนักกว่านั้นคือ จากที่บ้าน รีโมทตรงๆไปที่เครื่องไม่ได้ ต้องผ่านออฟฟิศเก่าผมก่อน(โชคดีที่ vpn ยังใช้งานได้) เข้าไปพักที่เครื่อง enigma ก่อนทั้ง ssh และ scp (โชคดีที่สองที่พวกเด็กแว้นเวรวันหยุดเขาไม่โหลดบิทกันไม่งั้นจุก) ที่ลำบากอีกอย่างคือเครื่องทั้งสามตัวออกเน็ตไม่ได้ ไอ้จะ apt-get ง่ายๆก็ต้องอด</p>
<p>เดิมระบบลงไว้แบบสุดประหยัึด(เพราะตัวทั้งตัวเป็นลีนุกซ์ที่รันบนคอมแพคแฟลชขนาด2GB) สเปกเครื่องเป็น CPU = Celeron 400Mhz, RAM = 512MB</p>
<p>เริ่มจาก</p>
<p>1 ดาวน์โหลดไฟล์เหล่านี้จากอินเตอร์เน็ตที่ <a href="http://www.debian.org/distrib/packages" target="_blank">http://www.debian.org/distrib/packages</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">fakeroot_1.2.10_i386.deb
bzip2_1.0.2-<span style="color: #000000;">7</span>_i386.deb
patch_2.5.9-<span style="color: #000000;">2</span>_i386.deb
make_3.80-<span style="color: #000000;">9</span>_i386.deb
binutils_2.15-<span style="color: #000000;">6</span>_i386.deb
dpkg-dev_1.10.28_all.deb
kernel-kbuild-<span style="color: #000000;">2.6</span>-<span style="color: #000000;">3</span>_2.6.8-<span style="color: #000000;">2</span>_i386.deb
kernel-headers-2.6.8-<span style="color: #000000;">3</span>_2.6.8-16sarge6_i386.deb
procps_3.2.1-<span style="color: #000000;">2</span>_i386.deb
linux-kernel-headers_2.6.18-<span style="color: #000000;">7</span>_i386.deb
libc6_2.3.6.ds1-13etch5_i386.deb
libc6-dev_2.3.6.ds1-13etch5_i386.deb
cpp-<span style="color: #000000;">3.3</span>_3.3.5-<span style="color: #000000;">13</span>_i386.deb
gcc-<span style="color: #000000;">3.3</span>_3.3.5-<span style="color: #000000;">13</span>_i386.deb
cpp_3.3.5-<span style="color: #000000;">3</span>_i386.deb
gcc_3.3.5-<span style="color: #000000;">3</span>_i386.deb
kernel-package_8.135_all.deb
libncurses5-dev_5.5-<span style="color: #000000;">5</span>_i386.deb
module-init-tools_3.2-pre1-<span style="color: #000000;">2</span>_i386.deb
initrd-tools_0.1.81.1_i386.deb</pre></div></div>

<p>อ้อ.. ลืมไป มี<br />
<span id="more-272"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">linux-2.6.8.tar.bz2</pre></div></div>

<p>2 โหลดเสร็จแล้ว tar รวมกันโยนสองต่อไปที่เครื่องปลายทาง</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">เครื่องผม ---FTP---<span style="color: #000000; font-weight: bold;">&amp;</span>gt;เครื่องenigmaที่ออฟฟิศ---SCP---<span style="color: #000000; font-weight: bold;">&amp;</span>gt;เครื่องปลายทางที่สาขา</pre></div></div>

<p>3 ติดตั้งพวกที่เป็น .deb ด้วยคำสั่ง dpkg -i</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> fakeroot_1.2.10_i386.deb bzip2_1.0.2-<span style="color: #000000;">7</span>_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> patch_2.5.9-<span style="color: #000000;">2</span>_i386.deb make_3.80-<span style="color: #000000;">9</span>_i386.deb binutils_2.15-<span style="color: #000000;">6</span>_i386.deb dpkg-dev_1.10.28_all.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> kernel-kbuild-<span style="color: #000000;">2.6</span>-<span style="color: #000000;">3</span>_2.6.8-<span style="color: #000000;">2</span>_i386.deb kernel-headers-2.6.8-<span style="color: #000000;">3</span>_2.6.8-16sarge6_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> procps_3.2.1-<span style="color: #000000;">2</span>_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> linux-kernel-headers_2.6.18-<span style="color: #000000;">7</span>_i386.deb libc6_2.3.6.ds1-13etch5_i386.deb libc6-dev_2.3.6.ds1-13etch5_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> cpp-<span style="color: #000000;">3.3</span>_3.3.5-<span style="color: #000000;">13</span>_i386.deb gcc-<span style="color: #000000;">3.3</span>_3.3.5-<span style="color: #000000;">13</span>_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> cpp_3.3.5-<span style="color: #000000;">3</span>_i386.deb gcc_3.3.5-<span style="color: #000000;">3</span>_i386.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> kernel-package_8.135_all.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> libncurses5-dev_5.5-<span style="color: #000000;">5</span>_i386.deb module-init-tools_3.2-pre1-<span style="color: #000000;">2</span>_i386.deb initrd-tools_0.1.81.1_i386.deb</pre></div></div>

<p>4 ต่อไปก็คอมไฟล์เคอเนลโดยแตกไฟล์ linux-2.6.8.tar.bz2 ไปไว้ที่ /usr/src</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvfj linux-2.6.8.tar.bz2 <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux-2.6.8
<span style="color: #c20cb9; font-weight: bold;">make</span> menuconfig</pre></div></div>

<p>(ใช้ค่า default ไม่ได้คอนฟิกอะไรเลย)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">make-kpkg clean
fakeroot make-kpkg <span style="color: #660033;">--revision</span>=custom.1.0 kernel_image</pre></div></div>

<p>(หลังคำสั่งนี้ก็หาอะไรทำล่ะพี่น้องนานโคตร เครื่องนี้ประมาณชั่วโมงกว่าๆ ก็เลยแอบมาเขียนบันทึกซะ)</p>
<p>จากคำสั่งด้านบนถ้าไม่มีข้อผิดพลาด จะได้ไฟล์ชื่อ kernel-image-2.6.8_custom.1.0_i386.deb อยู่ที่ /usr/src</p>
<p>5 เมื่อได้ไฟล์ kernel-image-2.6.8_custom.1.0_i386.deb ก็ติดตั้งได้เลย</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> kernel-image-2.6.8_custom.1.0_i386.deb
<span style="color: #7a0874; font-weight: bold;">&#40;</span>จากนั้นสร้างแรมดิส<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>
mkinitrd <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.8 2.6.8</pre></div></div>

<p>6 แก้ไขบูทโหลดเดอร์ (grub) file /boot/grub/menu.lst ให้ได้ตามด้านล่างนี้</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title           Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux, kernel 2.6.8
root            <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel          <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.8 <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdc1 ro
initrd          <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.8
savedefault
boot
&nbsp;
title           Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux, kernel 2.6.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span>recovery mode<span style="color: #7a0874; font-weight: bold;">&#41;</span>
root            <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel          <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.8 <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdc1 ro single
initrd          <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.8
savedefault
boot</pre></div></div>

<p>จากนั้นสั่งแล้วบูทเครื่องเลย</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-grub
reboot</pre></div></div>

<p>7 ภาวนาให้เครื่องที่สั่ง reboot กลับคืนมาโดยเร็ว</p>
<p>8 เหงือแตก</p>
<p>9 มาล่ะ หลังรีโมทเข้าไปได้ตรวจสอบเคอเนลที่อัพเกรดดูได้ดังนี้</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gsm_modem5:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #666666; font-style: italic;"># uname -a</span>
Linux gsm_modem5 2.6.8 <span style="color: #666666; font-style: italic;">#1 Tue May 20 00:30:07 ICT 2008 i686 GNU/Linux</span></pre></div></div>

<p>10 นอนล่ะ</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/05/20/compile_kernel_26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elephants Dream</title>
		<link>http://wutthiphan.com/2008/05/17/elephants-dream/</link>
		<comments>http://wutthiphan.com/2008/05/17/elephants-dream/#comments</comments>
		<pubDate>Fri, 16 May 2008 17:41:29 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[คอมพิวเตอร์ทั่วไป]]></category>
		<category><![CDATA[ดูหนัง]]></category>
		<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=266</guid>
		<description><![CDATA[ข่าวนี้อยากจะได้ยินเหลือเกิน Elephants Dream เป็นหนังที่เกิดจาก องค์ประกอบของ open source ต่างๆมารวมกัน สรรค์สร้างงานหนัง computer graphic ออกมาได้อย่างยอดเยี่ยม ทำให้หลายๆคนได้เห็นแล้วว่า open source ทำอะไรได้บ้าง ผมไปเจอ
Elephants Dream จากblogของคุณmkเลยเอามาเล่าต่อ อย่างดีใจ ที่ขีดจำกัดของ open source เริ่มสั้นลงทุกที ดูภาพกันไปก่อน



อ้อผมลืมบอกไปใครสนใจอยากได้หนังเรื่องนี้มาดูไปดาวน์โหลดมาได้ครับ ที่ http://www.elephantsdream.org/
หรือ http://public.www.planetmirror.com/pub/blender/ED


รายนาม open source program ที่มีส่วนเข้าร่วมสังฆกรรม ในหนังเรื่อง Elephants Dream

และนี่คือส่วนหนึ่งของผู้ที่อยู่เบื่องหลังความสำเร็จของ Elephants Dream



เอาที่มีคนเขาอัพขึ้นไปไว้บนyoutubeมาให้ดูกัน
ขอบคุณรูปภาพจากBlogคุณ mk ครับ



]]></description>
			<content:encoded><![CDATA[<p>ข่าวนี้อยากจะได้ยินเหลือเกิน <a href="http://www.elephantsdream.org/" target="_blank">Elephants Dream</a> เป็นหนังที่เกิดจาก องค์ประกอบของ open source ต่างๆมารวมกัน สรรค์สร้างงานหนัง computer graphic ออกมาได้อย่างยอดเยี่ยม ทำให้หลายๆคนได้เห็นแล้วว่า open source ทำอะไรได้บ้าง ผมไปเจอ<br />
Elephants Dream จากblogของคุณ<a href="http://www.isriya.com/" target="_blank">mk</a>เลยเอามาเล่าต่อ อย่างดีใจ ที่ขีดจำกัดของ open source เริ่มสั้นลงทุกที ดูภาพกันไปก่อน</p>
<p style="text-align: center;"><a href="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream1.jpg"><img class="alignnone size-full wp-image-267 aligncenter" title="elephants_dream1" src="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream1.jpg" alt="" width="500" height="281" /></a></p>
<p style="text-align: center;"><a href="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream2.jpg"><img class="alignnone size-full wp-image-268 aligncenter" title="elephants_dream2" src="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream2.jpg" alt="" width="500" height="281" /></a></p>
<p style="text-align: center;"><a href="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream3.jpg"><img class="alignnone size-full wp-image-269 aligncenter" title="elephants_dream3" src="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream3.jpg" alt="" width="500" height="281" /></a></p>
<p>อ้อผมลืมบอกไปใครสนใจอยากได้หนังเรื่องนี้มาดูไปดาวน์โหลดมาได้ครับ ที่ <a href="http://www.elephantsdream.org/" target="_blank">http://www.elephantsdream.org/</a><br />
หรือ <a href="http://public.www.planetmirror.com/pub/blender/ED" target="_blank">http://public.www.planetmirror.com/pub/blender/ED</a></p>
<p><span id="more-266"></span></p>
<p style="text-align: center;"><a href="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream4.jpg"><img class="alignnone size-full wp-image-270 aligncenter" title="elephants_dream4" src="http://wutthiphan.com/wp-content/uploads/2008/05/elephants_dream4.jpg" alt="" width="495" height="253" /></a></p>
<p>รายนาม open source program ที่มีส่วนเข้าร่วมสังฆกรรม ในหนังเรื่อง Elephants Dream</p>
<p style="text-align: center;"><a href="http://wutthiphan.com/wp-content/uploads/2008/05/workshop.jpg"><img class="alignnone size-medium wp-image-271 aligncenter" title="workshop" src="http://wutthiphan.com/wp-content/uploads/2008/05/workshop-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>และนี่คือส่วนหนึ่งของผู้ที่อยู่เบื่องหลังความสำเร็จของ Elephants Dream</p>
<p style="text-align: center;">
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/bsGEWHNJ3s8&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/bsGEWHNJ3s8&amp;hl=en"></embed></object>
</p>
<p style="text-align: center;">เอาที่มีคนเขาอัพขึ้นไปไว้บนyoutubeมาให้ดูกัน</p>
<p>ขอบคุณรูปภาพจากBlogคุณ <a href="http://www.isriya.com/" target="_blank">mk</a> ครับ</p>
<p style="text-align: center;"><a href="http://whylink.com/?aff=21107"><br />
<img class="aligncenter" src="http://www.backlinks.com/images/468X60.jpg" border="0" alt="Monetize your web site" width="468" height="60" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/05/17/elephants-dream/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrade Ubuntu 7.10 to 8.04 (Hardy Heron)</title>
		<link>http://wutthiphan.com/2008/04/28/upgrade-ubuntu-710-to-804-hardy-heron/</link>
		<comments>http://wutthiphan.com/2008/04/28/upgrade-ubuntu-710-to-804-hardy-heron/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 05:24:46 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ระบบของผม]]></category>
		<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=214</guid>
		<description><![CDATA[เมื่อวันที่ 21 เมษายน ที่ผ่านมา Ubuntu ได้ออกเวอร์ชันใหม่มาแล้วคือ Ubuntu 8.04 (Hardy Heron) วันนี้เลยว่าจะอัพเกรดเจ้าเครื่อง osiris.wutthiphan.com ที่เป็นเว็บเซอร์เวอร์ของ wutthipan.com ซะหน่อย การอัพเกรดก็วิธีเดิมๆ ดูจากลิ้งค์นี้ คือสั่งคำสั่งสอง-สามคำสั่ง แต่ก็ต้องใช้เวลาในการรอนานหน่อย เพราะมีข้อมูลที่ต้องอัพเกรดอยู่ราวๆ 200 &#8211; 300 MB. แนะนำว่าไม่ควรทำการอัพเกรดผ่านระบบเน็ตเวิร์ค เพราะเกิดเน็ตหลุดหรือมีปัญหาในการอัพเกรดจะลำบาก (แต่ผมก็เลือกวิธีนี้     ) คำสั่งง่ายๆในการอัพเกรดตามข้างล่างครับ&#8230;
เดิมๆเวอร์ชัน 7.10 เป็นอย่างนี้อยู่

wutthiphan@osiris:~$ uname -a
Linux osiris 2.6.22-14-server #1 SMP Tue Dec 18 08:31:40 UTC 2007 i686 GNU/Linux

จากนั้นสั่ง

wutthiphan@osiris:~$ sudo apt-get update

แล้วก็ตามด้วย (หากเครื่องยังไม่มีโปรแกรม update-manager-core)

wutthiphan@osiris:~$ sudo [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-215" style="margin-left: 5px; margin-right: 5px; float: left;" title="ubuntu" src="http://wutthiphan.com/wp-content/uploads/2008/04/ubuntu.jpg" alt="" width="150" height="128" />เมื่อวันที่ 21 เมษายน ที่ผ่านมา <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> ได้ออกเวอร์ชันใหม่มาแล้วคือ Ubuntu 8.04 (Hardy Heron) วันนี้เลยว่าจะอัพเกรดเจ้าเครื่อง osiris.wutthiphan.com ที่เป็นเว็บเซอร์เวอร์ของ wutthipan.com ซะหน่อย การอัพเกรดก็วิธีเดิมๆ ดูจาก<a href="http://wutthiphan.com/index.php/2007/11/29/upgrade-ubuntu-610-server-to-ubuntu-710-server" target="_blank">ลิ้งค์นี้</a> คือสั่งคำสั่งสอง-สามคำสั่ง แต่ก็ต้องใช้เวลาในการรอนานหน่อย เพราะมีข้อมูลที่ต้องอัพเกรดอยู่ราวๆ 200 &#8211; 300 MB. แนะนำว่าไม่ควรทำการอัพเกรดผ่านระบบเน็ตเวิร์ค เพราะเกิดเน็ตหลุดหรือมีปัญหาในการอัพเกรดจะลำบาก (แต่ผมก็เลือกวิธีนี้  <img src='http://wutthiphan.com/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' />   ) คำสั่งง่ายๆในการอัพเกรดตามข้างล่างครับ&#8230;</p>
<p>เดิมๆเวอร์ชัน 7.10 เป็นอย่างนี้อยู่</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wutthiphan<span style="color: #000000; font-weight: bold;">@</span>osiris:~$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
Linux osiris 2.6.22-<span style="color: #000000;">14</span>-server <span style="color: #666666; font-style: italic;">#1 SMP Tue Dec 18 08:31:40 UTC 2007 i686 GNU/Linux</span></pre></div></div>

<p>จากนั้นสั่ง</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wutthiphan<span style="color: #000000; font-weight: bold;">@</span>osiris:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>แล้วก็ตามด้วย (หากเครื่องยังไม่มีโปรแกรม update-manager-core)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wutthiphan<span style="color: #000000; font-weight: bold;">@</span>osiris:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> update-manager-core</pre></div></div>

<p>สั่งอัพเกรดโลด</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wutthiphan<span style="color: #000000; font-weight: bold;">@</span>osiris:~$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> do-release-upgrade</pre></div></div>

<p>จากนั้นก็หากาแฟ มานั่งจิบๆรอได้เลย (กำลังจิบรอ&#8230;) ในเวลาต่อมา (สองชั่วโมงกว่าๆ) หลังจากตอบคำถามต่างๆไปเรื่อยๆ<br />
ก็ถึงตอนที่ต้องรีบูทเพื่อเริ่มระบบใหม่ และหลังจากให้ระบบรีบูทอยู่ ก็รอลุ้นอยู่เหมือนกันว่ามันจะบูทขึ้นหรือเปล่า (ใช้วิธี ping ทิ้งไว้) อ้าาา&#8230; บูทขึ้นมาแล้ว ลองเช็คดู kernel ก่อนเลย</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wutthiphan<span style="color: #000000; font-weight: bold;">@</span>osiris:~$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
Linux osiris 2.6.24-<span style="color: #000000;">16</span>-server <span style="color: #666666; font-style: italic;">#1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux</span></pre></div></div>

<p>อันนี้ก็เป็นเวอร์ชันใหม่แล้วครับ การอัพเกรดหลักๆที่เจอคือ<br />
mysql-server 5.0.45-1ubuntu3.1 ไปเป็น mysql-server_5.0.51a-3ubuntu5<br />
apache2-mpm-prefork 2.2.4-3build1 ไปเป็น apache2-mpm-prefork_2.2.8-1<br />
php5 5.2.3-1ubuntu6.3 ไปเป็น php5_5.2.4-2ubuntu5<br />
postfix 2.4.5-3ubuntu1 ไปเป็น postfix_2.5.1-2ubuntu1</p>
<p>เช็คว่าระบบทำงานได้ปกติแล้ว ก็ออกไปตากแอร์แถวๆเซ็นทรัลพระรามสองอีกดีกว่า  <img src='http://wutthiphan.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/04/28/upgrade-ubuntu-710-to-804-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ใช้งาน motion ผ่าน mod_proxy</title>
		<link>http://wutthiphan.com/2008/04/06/%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-motion-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-mod_proxy/</link>
		<comments>http://wutthiphan.com/2008/04/06/%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-motion-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-mod_proxy/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 11:07:51 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[อินเทอร์เน็ต]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_proxy]]></category>
		<category><![CDATA[motion]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/?p=204</guid>
		<description><![CDATA[โปรแกรม motion ที่ผมใช้งานอยู่นั้นเมื่อจะเอาภาพออกมาแสดงจะเป็นการ stremming ผ่านทาง TCP port เช่น 8001, 8002, 8003 เป็นต้น ซึ่งในการใช้งานก็เป็นอุปสรรคพอสมควร ถ้าหากปลายทางที่จะเรียกเข้ามาใช้งาน และที่ปลายทางแห่งนั้นมีการติดตั้งไฟร์วอลล์ ก็อาจจะไม่สามารถใช้งานได้ เพราะจากถูกปิดพอร์ท แรกๆนั้นผมใช้วีธีเขียนกำกับไว้ว่า &#8220;ถ้าหากไม่เห็นภาพเคลื่อนไหว อาจจเป็นไปได้ว่าคุณนั้นอยู่ภายใต้ไฟร์วอลล์&#8221; แน่นอนมันไม่ได้ช่วยให้เห็นภาพวีดีโอจากโปรแกรม motion เลย &#8211; -&#8221; ก็ได้ปล่อยปะละเลยมาเป็นปีๆ ไม่เคยจะแก้ไขปรับปรุงอะไร จนวันนี้มีงานชิ้นนึงทำให้ผมได้ใช้งานโมดูลของ apache ตัวหนึ่งชื่อว่า &#8220;mod_proxy&#8221; เลยคิดเอามาประยุคใช้กับโปรแกรม motion ของผมด้วยเลย
มาเริ่มต้นกันจากapache ที่ผมใช้งานเป็น apache2 (V.2.24) เริ่มโดยการโหลดโมดูล mod_proxy โดยการคัดลอกไฟล์ proxy.conf, proxy.load และ proxy_http.load จากพาร์ท mods-available มาไว้ที่พาร์ท mods-enabled จากนั้นทำการแก้ไขไฟล์ proxy.conf โดยตัวอย่างการใช้งานของผม โปรแกรม motion ทำงานอยู่บนเครื่องเดียวกันกับ apache2 [...]]]></description>
			<content:encoded><![CDATA[<p>โปรแกรม motion ที่ผมใช้งานอยู่นั้นเมื่อจะเอาภาพออกมาแสดงจะเป็นการ stremming ผ่านทาง TCP port เช่น 8001, 8002, 8003 เป็นต้น ซึ่งในการใช้งานก็เป็นอุปสรรคพอสมควร ถ้าหากปลายทางที่จะเรียกเข้ามาใช้งาน และที่ปลายทางแห่งนั้นมีการติดตั้งไฟร์วอลล์ ก็อาจจะไม่สามารถใช้งานได้ เพราะจากถูกปิดพอร์ท แรกๆนั้นผมใช้วีธีเขียนกำกับไว้ว่า &#8220;ถ้าหากไม่เห็นภาพเคลื่อนไหว อาจจเป็นไปได้ว่าคุณนั้นอยู่ภายใต้ไฟร์วอลล์&#8221; แน่นอนมันไม่ได้ช่วยให้เห็นภาพวีดีโอจากโปรแกรม motion เลย &#8211; -&#8221; ก็ได้ปล่อยปะละเลยมาเป็นปีๆ ไม่เคยจะแก้ไขปรับปรุงอะไร จนวันนี้มีงานชิ้นนึงทำให้ผมได้ใช้งานโมดูลของ apache ตัวหนึ่งชื่อว่า &#8220;<a href="http://httpd.apache.org/docs/2.0/mod/mod_proxy.html">mod_proxy</a>&#8221; เลยคิดเอามาประยุคใช้กับโปรแกรม motion ของผมด้วยเลย</p>
<p>มาเริ่มต้นกันจากapache ที่ผมใช้งานเป็น apache2 (V.2.24) เริ่มโดยการโหลดโมดูล mod_proxy โดยการคัดลอกไฟล์ proxy.conf, proxy.load และ proxy_http.load จากพาร์ท mods-available มาไว้ที่พาร์ท mods-enabled จากนั้นทำการแก้ไขไฟล์ proxy.conf โดยตัวอย่างการใช้งานของผม โปรแกรม motion ทำงานอยู่บนเครื่องเดียวกันกับ apache2 ไฟล์ proxy.conf จึงได้ตามนี้</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>ifmodule mod_proxy.c<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ProxyRequests Off
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;</span>proxy <span style="color: #000000; font-weight: bold;">*&gt;</span>
                AddDefaultCharset off
                Order deny,allow
                <span style="color: #666666; font-style: italic;">#Deny from all</span>
                Allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>proxy<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ProxyTimeout <span style="color: #000000;">30</span>
        ProxyVia On
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>live<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8001</span>
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>list
&nbsp;
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>live<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8002</span>
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>list
&nbsp;
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>live<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8003</span>
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>list
&nbsp;
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>live<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8004</span>
        ProxyPass <span style="color: #000000; font-weight: bold;">/</span>webcam<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span> http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">8000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>list
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/</span>ifmodule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>เสร็จขั้นตอนด้านบนแล้ว ก็ลองสั่งให้ apache2 reload ดู ถ้าไม่มีปัญหาลองสั่ง apache2 -M ควรจะเห็น โมดูล  proxy_module, proxy_http_module ถูกโหลดขึ้นมา</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Loaded Modules:
 core_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 log_config_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 logio_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 mpm_prefork_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 http_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 so_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>static<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 actions_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 alias_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 auth_basic_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 authn_file_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 authz_default_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 authz_groupfile_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 authz_host_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 authz_user_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 autoindex_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 cgi_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 dir_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 env_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 mime_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 negotiation_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 php5_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 proxy_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 proxy_http_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 rewrite_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 setenvif_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 ssl_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 status_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 userdir_module <span style="color: #7a0874; font-weight: bold;">&#40;</span>shared<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Syntax OK</pre></td></tr></table></div>

<p>เอาล่ะเรียบร้อย ก่อนหน้านั้นการเข้ามาดูทำได้โดยเข้ามาที่ URL เช่น http://wutthiphan.com:8001 , http://wutthiphan.com:8002 , http://wutthiphan.com:8003 , http://wutthiphan.com:8004 โดยมากถ้าที่ไหนมีไฟร์วอลล์มักจะโดนบล๊อก หลังจากทำขั้นตอนข้างบนนี้แล้วการเข้ามาดูจะสามารถเข้ามาดูผ่าน URL เช่น http://wutthiphan.com/webcam/live/1 , http://wutthiphan.com/webcam/live/2 , http://wutthiphan.com/webcam/live/3 , http://wutthiphan.com/webcam/live/4 </p>
<p>ได้อย่างนี้ อยู่ที่ไหนก็ดูได้แล้วครับ (ขอให้มีอินเตอร์เน็ตนะครับ) ลองเข้าไปดูที่ใช้งานอยู่ได้เลยครับ</p>
<p><a href="http://wutthiphan.com/index.php/candy-camera-online/camera-1">กล้องตังที่1</a> , <a href="http://wutthiphan.com/index.php/candy-camera-online/camera-2">กล้องตัวที่2</a> , <a href="http://wutthiphan.com/index.php/candy-camera-online/camera-3">กล้องตัวที่3</a> และ <a href="http://wutthiphan.com/index.php/candy-camera-online/camera-4">กล้องตัวที่4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2008/04/06/%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-motion-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-mod_proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ACPI error</title>
		<link>http://wutthiphan.com/2007/12/26/acpi-error/</link>
		<comments>http://wutthiphan.com/2007/12/26/acpi-error/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 06:09:14 +0000</pubDate>
		<dc:creator>เอเองครับ</dc:creator>
				<category><![CDATA[ระบบของผม]]></category>
		<category><![CDATA[ลีนุกซ์ โอเพนซอร์ส]]></category>
		<category><![CDATA[ACPI]]></category>

		<guid isPermaLink="false">http://wutthiphan.com/index.php/2007/12/26/acpi-error/</guid>
		<description><![CDATA[เครื่อง server ตัวหนึ่งที่ IDC pacific ของผม มีอาการแปลกๆ 3-4 วันเครื่องจะค้างไปเองเฉยๆ เซอเวอร์ตัวนี้ติดตั้ง Ubuntu 7.10 ผมลองไล่ๆดูตาม log ต่างๆเพื่อหาสาเหตุของปัญหา ปัญหานี้ก่อนหน้านี้เคยเจอว่า โดนบอมอีเมล์ครั้งใหญ่ แต่ครั้งนี้ไม่เห็นมีอะไร แต่ก็ไปสะดุดข้อมูลในไฟล์ message ตามด้านล่าง

Dec 24 08:52:01 xx kernel: &#91;   41.392787&#93; ACPI: Core revision 20070126
Dec 24 08:52:01 xx kernel: &#91;   41.395221&#93; ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
Dec 24 08:52:01 xx [...]]]></description>
			<content:encoded><![CDATA[<p>เครื่อง server ตัวหนึ่งที่ IDC pacific ของผม มีอาการแปลกๆ 3-4 วันเครื่องจะค้างไปเองเฉยๆ เซอเวอร์ตัวนี้ติดตั้ง Ubuntu 7.10 ผมลองไล่ๆดูตาม log ต่างๆเพื่อหาสาเหตุของปัญหา ปัญหานี้ก่อนหน้านี้เคยเจอว่า โดนบอมอีเมล์ครั้งใหญ่ แต่ครั้งนี้ไม่เห็นมีอะไร แต่ก็ไปสะดุดข้อมูลในไฟล์ message ตามด้านล่าง</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Dec <span style="color: #000000;">24</span> 08:<span style="color: #000000;">52</span>:01 xx kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span>   <span style="color: #000000;">41.392787</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ACPI: Core revision <span style="color: #000000;">20070126</span>
Dec <span style="color: #000000;">24</span> 08:<span style="color: #000000;">52</span>:01 xx kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span>   <span style="color: #000000;">41.395221</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ACPI: Looking <span style="color: #000000; font-weight: bold;">for</span> DSDT <span style="color: #000000; font-weight: bold;">in</span> initramfs... error, <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>DSDT.aml not found.
Dec <span style="color: #000000;">24</span> 08:<span style="color: #000000;">52</span>:01 xx kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span>   <span style="color: #000000;">41.431967</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ACPI: setting ELCR to 0200 <span style="color: #7a0874; font-weight: bold;">&#40;</span>from 0c28<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>คุ้นๆว่าตัวเองนี่แหละเป็นคนไปเปิดมัน(ACPI)ตอนติดตั้ง &#8211; -&#8221; ตอนนี้ไม่ได้อยู่หน้าเครื่องจะปิดก็ลำบาก เลยปิดมันในระดับ kernel เอาตามนี้<br />
แก้ไขไฟล์ /boot/grub/menu.lst เดิม</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title           Ubuntu <span style="color: #000000;">7.10</span>, kernel 2.6.22-<span style="color: #000000;">14</span>-server
root            <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel         <span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.22-<span style="color: #000000;">14</span>-server <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 ro quiet splash
initrd          <span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.22-<span style="color: #000000;">14</span>-server
quiet</pre></div></div>

<p>เป็น</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title           Ubuntu <span style="color: #000000;">7.10</span>, kernel 2.6.22-<span style="color: #000000;">14</span>-server
root            <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel          <span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.22-<span style="color: #000000;">14</span>-server <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 ro <span style="color: #007800;">acpi</span>=off
initrd          <span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.22-<span style="color: #000000;">14</span>-server
quiet</pre></div></div>

<p>เสร็จแล้ว เตรียมตังค์ค่าtaxi (กรณีบูทไม่ขึ้น) แน่ใจว่ามีค่ารถแล้ว ก็สั่งรีบูทเครื่องเลย ถ้าไม่มีอะไร และเครื่องบูทขึ้นมาปกติ ก็เก็บตั้งไว้เหมือนเดิม<br />
ไม่รู้ว่าจะช่วยอะไรได้หรือเปล่า เอาเป็นว่าช่วงหาข้อมูลการแก้ปัญหานี้อยู่ ก็ลองแบบนี้ไปก่อนล่ะกัน </p>
<p>ช่วงนี้ยิ่งนอนไม่ค่อยหลับอยู่ เฮ้อออ&#8230;&#8230; เซ็งจิต</p>
]]></content:encoded>
			<wfw:commentRss>http://wutthiphan.com/2007/12/26/acpi-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
