<?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>Dexdev &#187; FreeBSD</title>
	<atom:link href="http://www.dexdev.com/category/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dexdev.com</link>
	<description>เป็นโปรแกรมเมอร์มันไม่ง่าย แต่ก็ทำเป็นอยู่อย่างเดียวนี่แหละ</description>
	<lastBuildDate>Fri, 27 Aug 2010 11:44:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>stop and restart mysql</title>
		<link>http://www.dexdev.com/freebsd/stop-and-restart-mysql/</link>
		<comments>http://www.dexdev.com/freebsd/stop-and-restart-mysql/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 08:27:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=273</guid>
		<description><![CDATA[start /usr/local/etc/rc.d/mysql-server start stop /usr/local/etc/rc.d/mysql-server stop restart /usr/local/etc/rc.d/mysql-server restart]]></description>
			<content:encoded><![CDATA[<p>start</p>
<blockquote><p>/usr/local/etc/rc.d/mysql-server start</p></blockquote>
<p>stop</p>
<blockquote><p>/usr/local/etc/rc.d/mysql-server stop</p></blockquote>
<p>restart</p>
<blockquote><p>/usr/local/etc/rc.d/mysql-server restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/freebsd/stop-and-restart-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg</title>
		<link>http://www.dexdev.com/freebsd/ffmpeg/</link>
		<comments>http://www.dexdev.com/freebsd/ffmpeg/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 16:38:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=98</guid>
		<description><![CDATA[ffmpeg คืออะไร ffmpeg คือ opensorce ที่มีความสามารถในการแปลง video เป็น format ต่างๆตามต้องการ อ่านต่อได้ที่ http://ffmpeg.mplayerhq.hu/ ละกันอิอิ ติดตั้ง ffmpeg #cd /usr/ports/multimedia/ffmpeg #make WITH_LAME=yes install clean กด enter เสร็จไปนอนก่อนเลยครับนานมากกกก ใครไม่มี server ลองเวอร์ชั่น window Download ได้ที่นี่ครับ วิธีใช้ ffmpeg สำหรับการเรียกใช้งานนั้นง่ายมากสามารถเรียกใช้ผ่าน command line ได้เลยตามนี้ครับ #ffmpeg -i input.mov output.flv ใครอยากใส่ parameter ยังไงลองตาม manual เลยฮ่า บทความต่อไปจะเขียน ffmpeg_php เอา php เรียกใช้งานซะเลย 555+]]></description>
			<content:encoded><![CDATA[<p><strong>ffmpeg คืออะไร</strong><br />
ffmpeg คือ opensorce ที่มีความสามารถในการแปลง video เป็น format ต่างๆตามต้องการ อ่านต่อได้ที่ <a href="http://ffmpeg.mplayerhq.hu/">http://ffmpeg.mplayerhq.hu/</a> ละกันอิอิ<br />
<strong><br />
ติดตั้ง ffmpeg</strong></p>
<blockquote><p>#cd /usr/ports/multimedia/ffmpeg<br />
#make WITH_LAME=yes install clean</p></blockquote>
<p>กด enter เสร็จไปนอนก่อนเลยครับนานมากกกก<br />
ใครไม่มี server ลองเวอร์ชั่น window <a title="ffmpeg for window" href="http://www.videohelp.com/tools/ffmpeg" target="_blank">Download</a> ได้ที่นี่ครับ</p>
<p><strong>วิธีใช้ ffmpeg<br />
</strong>สำหรับการเรียกใช้งานนั้นง่ายมากสามารถเรียกใช้ผ่าน command line ได้เลยตามนี้ครับ</p>
<blockquote><p>#ffmpeg -i input.mov output.flv</p></blockquote>
<p>ใครอยากใส่ parameter ยังไงลองตาม manual เลยฮ่า</p>
<p>บทความต่อไปจะเขียน ffmpeg_php เอา php เรียกใช้งานซะเลย 555+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/freebsd/ffmpeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nohup แล้วไปนอน</title>
		<link>http://www.dexdev.com/freebsd/nohup/</link>
		<comments>http://www.dexdev.com/freebsd/nohup/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 16:08:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=11</guid>
		<description><![CDATA[หลายครั้งที่ผม remote ไปรัน command ที่ server เพราะเป็น process ที่สำคัญจริงยกตัวอย่าง ส่ง enews หมื่นฉบับ, download backup จากอีก server จ๊าก!&#8230;หลังจาก run command ไปแล้วต้องรอจนมันทำงานเสร็จ ในระหว่างนี้ผมจะต้องนั่งอยู่หน้าจอตลอดเลยหรือนี่ แล้วถ้ามันใช้เวลา 3 ชั่วโมงไม่ต้องหาคนมาเปลี่ยนผลัดเลยเหรอ 555+ เอาน่าทนหน่อย 90% แล้ว&#8230;!!เจี๊ยก!!&#8230; เครื่องแฮงค์ เน็ตหลุด พี่น้องครับถ้านี่ไม่ใช่แค่การสมมุติผมคงทุบ router ไปแล้วเพราะรอมาพักใหญ่ เทคนิคที่จะ run command โดยไม่ต้องคอยดูจนกว่า process จะจบก็คือการใช้ nohup nohup คืออะไร ? เอาแบบไม่ทฤษฎีอะไรมากก็คือ รัน command นี้จนกว่าจะจบนั่นเอง nohup is a Unix command that is used [...]]]></description>
			<content:encoded><![CDATA[<p>หลายครั้งที่ผม remote ไปรัน command ที่ server เพราะเป็น process ที่สำคัญจริงยกตัวอย่าง ส่ง enews หมื่นฉบับ, download backup จากอีก server</p>
<p>จ๊าก!&#8230;หลังจาก run command ไปแล้วต้องรอจนมันทำงานเสร็จ<br />
ในระหว่างนี้ผมจะต้องนั่งอยู่หน้าจอตลอดเลยหรือนี่ แล้วถ้ามันใช้เวลา 3 ชั่วโมงไม่ต้องหาคนมาเปลี่ยนผลัดเลยเหรอ 555+</p>
<p>เอาน่าทนหน่อย 90% แล้ว&#8230;!!เจี๊ยก!!&#8230; เครื่องแฮงค์ เน็ตหลุด พี่น้องครับถ้านี่ไม่ใช่แค่การ<strong>สมมุต</strong>ิผมคงทุบ router ไปแล้วเพราะรอมาพักใหญ่</p>
<p>เทคนิคที่จะ run command โดยไม่ต้องคอยดูจนกว่า process จะจบก็คือการใช้ <strong>nohup </strong><br />
<span id="more-11"></span><br />
<strong>nohup</strong> คืออะไร ?<br />
เอาแบบไม่ทฤษฎีอะไรมากก็คือ รัน command นี้จนกว่าจะจบนั่นเอง</p>
<blockquote>
<p>nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in the background as daemons. Output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.</p>
</blockquote>
<p><strong>วิธีใช้</strong></p>
<blockquote><p>
nohup wget http://www.unzeen.com/xxx.tar.gz &amp;</p>
</blockquote>
<p>แค่เพิ่ม <strong>nohup </strong>เข้าไปข้างหน้า command ที่เราจะ run ครับโดยเพิ่ม <strong>&amp;</strong> เข้าไปเพื่อให้ run เป็น background<br />
หลังจากใช้ nohup แล้วเราสามารถ logout ได้โดยที่ process จะยังทำงานต่อไปเรื่อยๆจนกว่าจะเสร็จครับ</p>
<p>ปล. เวลาที่เหลือเอาไปทำไรดี <img src='http://www.dexdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/freebsd/nohup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Directadmin on FreeBSD7</title>
		<link>http://www.dexdev.com/freebsd/directadmin-freebsd7/</link>
		<comments>http://www.dexdev.com/freebsd/directadmin-freebsd7/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 17:04:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=6</guid>
		<description><![CDATA[เขียนเผื่อ server ใครอยากลง directadmin บน freeBSD7 ขั้นตอน ชื้อ license ให้เรียบร้อย ลง freeBSD ใหม่ ลง wget ผ่าน port ในเว็บบอกใช้ fetch ได้แต่ผมลองแล้วไม่ได้ #cd /usr/ports/ftp/wget #make install clean ขอลง nano ด้วย&#8230;แบบว่าไม่ถนัด vi #cd /usr/ports/editors/nano #make install clean เพิ่ม AllowUsers username ใน /etc/ssh/sshd_config *ข้อนี้สำคัญมาก พลาดไปถึง format ลง directadmin กันเลย #wget http://www.directadmin.com/setup.sh # chmod 755 setup.sh # ./setup.sh ขั้นตอนสุดท้ายหลังจากลง directadmin [...]]]></description>
			<content:encoded><![CDATA[<p>เขียนเผื่อ server ใครอยากลง directadmin บน freeBSD7</p>
<p><span id="more-6"></span></p>
<p>ขั้นตอน</p>
<ol>
<li>ชื้อ license ให้เรียบร้อย</li>
<li>ลง freeBSD ใหม่</li>
<li>ลง wget ผ่าน port ในเว็บบอกใช้ fetch ได้แต่ผมลองแล้วไม่ได้<br />
<blockquote><p>#cd /usr/ports/ftp/wget<br />
#make install clean</p></blockquote>
</li>
<li>ขอลง nano ด้วย&#8230;แบบว่าไม่ถนัด vi<br />
<blockquote><p>#cd /usr/ports/editors/nano<br />
#make install clean</p></blockquote>
</li>
<li>เพิ่ม AllowUsers username ใน /etc/ssh/sshd_config *ข้อนี้สำคัญมาก พลาดไปถึง format</li>
<li>ลง directadmin กันเลย<br />
<blockquote><p>#wget http://www.directadmin.com/setup.sh<br />
# chmod 755 setup.sh<br />
# ./setup.sh</p></blockquote>
</li>
<li>ขั้นตอนสุดท้ายหลังจากลง directadmin แล้วอย่า logout จาก root เด็ดขาดให้ reinstall libiconv ก่อน<br />
<blockquote><p>#cd /usr/ports/converters/libiconv<br />
#make deinstall reinstall clean</p></blockquote>
</li>
</ol>
<p>ที่ต้องลง libiconv ใหม่เพราะ csh พัง ทำให้ login เป็น root ไม่ได้<br />
<strong>directadmin มันทำอะไรกับเครื่องตูมั่งเนี่ย</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/freebsd/directadmin-freebsd7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
