<?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; Linux</title>
	<atom:link href="http://www.iearn.in.th/category/linuxs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10: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>คำสั่งสำหรับลงเครื่องมือในการ compile ทั้งหมด</title>
		<link>http://www.iearn.in.th/2011/08/05/%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%a5%e0%b8%87%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%a1/</link>
		<comments>http://www.iearn.in.th/2011/08/05/%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%a5%e0%b8%87%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%a1/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 15:10:12 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=724</guid>
		<description><![CDATA[2 คำสั่งเป็นอันว่าพร้อมในการ make yum groupinstall 'Development Tools' yum groupinstall 'Development Libraries' 11 views]]></description>
			<content:encoded><![CDATA[<p>2 คำสั่งเป็นอันว่าพร้อมในการ make<br />
<code>yum groupinstall 'Development Tools'<br />
yum groupinstall 'Development Libraries'</code></p>

<p class="sayac_bilgi">11 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/08/05/%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%a5%e0%b8%87%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centos Install ImageMagick and rmagick gem</title>
		<link>http://www.iearn.in.th/2011/07/30/centos-install-imagemagick-and-rmagick-gem/</link>
		<comments>http://www.iearn.in.th/2011/07/30/centos-install-imagemagick-and-rmagick-gem/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 04:37:35 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=719</guid>
		<description><![CDATA[wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz cd ImageMagick-6-?? ./configure make make install gem install rmagick แถมตัวอย่างการใช้งาน http://beatz.tistory.com/entry/Ruby-on-Rails-and-Rmagick-Crop-Resize-Rotate-Thumbnail-and-Upload-Images 12 views]]></description>
			<content:encoded><![CDATA[<p><code>wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz<br />
cd ImageMagick-6-??<br />
./configure<br />
make<br />
make install<br />
gem install rmagick</code><br />
<span id="more-719"></span></p>
<p>แถมตัวอย่างการใช้งาน</p>
<p>http://beatz.tistory.com/entry/Ruby-on-Rails-and-Rmagick-Crop-Resize-Rotate-Thumbnail-and-Upload-Images</p>

<p class="sayac_bilgi">12 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/07/30/centos-install-imagemagick-and-rmagick-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Deploy permission denied</title>
		<link>http://www.iearn.in.th/2011/07/28/rails-deploy-permission-denied/</link>
		<comments>http://www.iearn.in.th/2011/07/28/rails-deploy-permission-denied/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 09:59:51 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=714</guid>
		<description><![CDATA[ถ้าหากเจอปัญหาเมื่อมีการ deploy rails ใน /home/xxx/** แล้วเจอ permission denied ให้ทำการเพิ่ม permission ให้ /home/xxx ดังนี้ครับ chmod 755 /home/xxx 5 views]]></description>
			<content:encoded><![CDATA[<p>ถ้าหากเจอปัญหาเมื่อมีการ deploy rails ใน /home/xxx/** แล้วเจอ permission denied ให้ทำการเพิ่ม permission ให้ /home/xxx ดังนี้ครับ<br />
<code>chmod 755 /home/xxx</code></p>

<p class="sayac_bilgi">5 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/07/28/rails-deploy-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing GIT Repository to Centos</title>
		<link>http://www.iearn.in.th/2011/07/28/installing-git-repository-to-centos/</link>
		<comments>http://www.iearn.in.th/2011/07/28/installing-git-repository-to-centos/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 08:26:16 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=712</guid>
		<description><![CDATA[yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel cd /usr/local/src wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.gz tar xzvf git-1.7.5.tar.gz cd git-1.7.5 make prefix=/usr/local all make prefix=/usr/local install 3 views]]></description>
			<content:encoded><![CDATA[<p><code>yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel<br />
cd /usr/local/src<br />
wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.gz<br />
tar xzvf git-1.7.5.tar.gz<br />
cd git-1.7.5<br />
make prefix=/usr/local all<br />
make prefix=/usr/local install</code></p>

<p class="sayac_bilgi">3 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/07/28/installing-git-repository-to-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and change file ownership</title>
		<link>http://www.iearn.in.th/2011/07/07/find-and-change-file-ownership/</link>
		<comments>http://www.iearn.in.th/2011/07/07/find-and-change-file-ownership/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 23:29:04 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=709</guid>
		<description><![CDATA[สำหรับใครที่ต้องการแก้ ownership ต่างๆ # Change the ownership of all files owned by one user. # Finds all files in /home owned by UID 1056 and changes to 2056. # See: http://www.commandlinefu.com/commands/view/892/change-the-ownership-of-all-files-owned-by-one-user. find /home -uid 1056 -exec chown 2056 {} \; # Changing files ownership in a directory recursivley from a user to another # See: [...]]]></description>
			<content:encoded><![CDATA[<p>สำหรับใครที่ต้องการแก้ ownership ต่างๆ<br />
<code># Change the ownership of all files owned by one user.<br />
# Finds all files in /home owned by UID 1056 and changes to 2056.<br />
# See: http://www.commandlinefu.com/commands/view/892/change-the-ownership-of-all-files-owned-by-one-user.<br />
find /home -uid 1056 -exec chown 2056 {} \;</p>
<p># Changing files ownership in a directory recursivley from a user to another<br />
# See: http://www.commandlinefu.com/commands/view/414/recursive-ownership-change</p>
<p>chown -cR --from=olduser:oldgroup newuser:newgroup *</p>
<p>find path/to/dir -user fred -exec chown barney '{}' \;</p>
<p># Or, if you wish to change also the group name of the file's ownership<br />
# to match the new user name, find the new user's group name and plug it into this:</p>
<p>find path/to/dir -user fred -exec chown barney:barneygroup '{}' \;</p>
<p># Caveats:<br />
# 1. Not only will this change the files under the specified directory,<br />
#    but it will change the directory itself, if the ownership matches.<br />
# 2. Changing files owned by root can hose your system.<br />
# See: http://www.linuxforums.org/forum/linux-programming-scripting/132312-changing-all-files-owned-root-assigned-other-user.html</code></p>

<p class="sayac_bilgi">15 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/07/07/find-and-change-file-ownership/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing tiny proxy centos VPS</title>
		<link>http://www.iearn.in.th/2011/06/21/installing-tiny-proxy-centos-vps/</link>
		<comments>http://www.iearn.in.th/2011/06/21/installing-tiny-proxy-centos-vps/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 17:45:47 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=707</guid>
		<description><![CDATA[ง่ายกับโค้ดแบบเดิมคือ wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/tinyproxy-1.8.2-1.el5.kb.3.i386.rpm rpm -Uvh tinyproxy-1.8.2-1.el5.kb.3.i386.rpm กรณี้ต้องใช้งานใน vps vi /etc/tinyproxy/tinyproxy.conf Allow vps_ip_address 31 views]]></description>
			<content:encoded><![CDATA[<p>ง่ายกับโค้ดแบบเดิมคือ<br />
<code>wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/tinyproxy-1.8.2-1.el5.kb.3.i386.rpm<br />
rpm -Uvh tinyproxy-1.8.2-1.el5.kb.3.i386.rpm</code><br />
<span id="more-707"></span></p>
<p>กรณี้ต้องใช้งานใน vps<br />
<code>vi /etc/tinyproxy/tinyproxy.conf<br />
Allow vps_ip_address</code></p>

<p class="sayac_bilgi">31 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2011/06/21/installing-tiny-proxy-centos-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Subversion and Run as Service</title>
		<link>http://www.iearn.in.th/2010/12/09/install-subversion-and-run-as-service/</link>
		<comments>http://www.iearn.in.th/2010/12/09/install-subversion-and-run-as-service/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 18:03:46 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=673</guid>
		<description><![CDATA[ไม่มีไรมากครับ yum install subversion เมื่อลงเสร็จแล้วก็เลือกที่ไว้ svn ผมเลือกไว้ที่ /var/svn จากนั้นก็สร้าง repository cd /var/svn svnadmin create websites ถัดจากนั้นก็เข้าไปแก้ config ในส่วนของ passwd ทำตามตัวอย่างเลยครับ จากนั้นเอา comment หน้า password-db ออกครับ ทดสอบดูได้โดย /usr/bin/svnserve -d -r /var/svn/ สามารถเข้าใช้งาน repository ได้ที่ svn://ip/website ถัดไปเป็นโค้ดส่วนของการรันเป็น service#!/bin/bash # # /etc/rc.d/init.d/subversion # # Starts the Subversion Daemon # # chkconfig: 345 90 10 # description: Subversion Daemon [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่มีไรมากครับ<br />
<code>yum install subversion</code><br />
เมื่อลงเสร็จแล้วก็เลือกที่ไว้ svn ผมเลือกไว้ที่ /var/svn<br />
จากนั้นก็สร้าง repository<br />
<code>cd /var/svn<br />
svnadmin create websites</code><br />
ถัดจากนั้นก็เข้าไปแก้ config ในส่วนของ passwd ทำตามตัวอย่างเลยครับ จากนั้นเอา comment หน้า password-db ออกครับ<br />
ทดสอบดูได้โดย<br />
<code>/usr/bin/svnserve -d -r /var/svn/</code><br />
สามารถเข้าใช้งาน repository ได้ที่ svn://ip/website<br />
<span id="more-673"></span><br />
ถัดไปเป็นโค้ดส่วนของการรันเป็น service#!/bin/bash<br />
<code>#<br />
# /etc/rc.d/init.d/subversion<br />
#<br />
# Starts the Subversion Daemon<br />
#<br />
# chkconfig: 345 90 10<br />
# description: Subversion Daemon</p>
<p># processname: svnserve</p>
<p>source /etc/rc.d/init.d/functions</p>
<p>[ -x /usr/bin/svnserve ] || exit 1</p>
<p># To pass additional options (for instace, -r root of directory to server) to<br />
# the svnserve binary at startup, set OPTIONS here.<br />
OPTIONS="-r /var/svn"<br />
RETVAL=0<br />
prog="svnserve"<br />
desc="Subversion Daemon"</p>
<p>start() {<br />
   echo -n "Starting $desc ($prog):"<br />
   daemon $prog -d $OPTIONS<br />
   RETVAL=$?<br />
   [ $RETVAL -eq 0 ] &#038;&#038; touch /var/lock/subsys/$prog<br />
   echo<br />
}</p>
<p>stop() {<br />
   echo -n "Shutting down $desc ($prog):"<br />
   killproc $prog<br />
   RETVAL=$?<br />
   [ $RETVAL -eq 0 ] &#038;&#038; success || failure<br />
   echo<br />
   [ $RETVAL -eq 0 ] &#038;&#038; rm -f /var/lock/subsys/$prog<br />
   return $RETVAL<br />
}</p>
<p>case "$1" in<br />
   start)<br />
      start<br />
      ;;<br />
   stop)<br />
      stop<br />
      ;;<br />
   restart)<br />
      stop<br />
      start<br />
      RETVAL=$?<br />
      ;;<br />
   condrestart)<br />
      [ -e /var/lock/subsys/$prog ] &#038;&#038; restart<br />
      RETVAL=$?<br />
      ;;<br />
   *)<br />
   echo $"Usage: $0 {start|stop|restart|condrestart}"<br />
   RETVAL=1<br />
esac</p>
<p>exit $RETVAL<br />
</code></p>
<p>การใช้งานก็ง่ายมากครับ /etc/init.d/subversion start</p>
<p>ที่มา <a href="http://blog.webramz.com/install-subversion-on-centos-cpanel-vps-with-autostart-script-on-reboot/">http://blog.webramz.com/install-subversion-on-centos-cpanel-vps-with-autostart-script-on-reboot/</a></p>

<p class="sayac_bilgi">30 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/12/09/install-subversion-and-run-as-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Svn: warning: cannot set LC CTYPE locale</title>
		<link>http://www.iearn.in.th/2010/11/22/svn-warning-cannot-set-lc-ctype-locale/</link>
		<comments>http://www.iearn.in.th/2010/11/22/svn-warning-cannot-set-lc-ctype-locale/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 01:25:09 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=665</guid>
		<description><![CDATA[ปัญหา error ของ svn svn: warning: cannot set LC_CTYPE locale svn: warning: environment variable LANG is en_US.UTF-8 svn: warning: please check that your locale name is correct Type 'svn help' for usage. แก้โดย echo "export LC_ALL=C" >> /etc/profile export LC_ALL=C 17 views]]></description>
			<content:encoded><![CDATA[<p>ปัญหา error ของ svn<br />
<code>svn: warning: cannot set LC_CTYPE locale<br />
svn: warning: environment variable LANG is en_US.UTF-8<br />
svn: warning: please check that your locale name is correct<br />
Type 'svn help' for usage.</code></p>
<p>แก้โดย<br />
<code>echo "export LC_ALL=C" >> /etc/profile<br />
export LC_ALL=C</code></p>

<p class="sayac_bilgi">17 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/11/22/svn-warning-cannot-set-lc-ctype-locale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing apache and php5</title>
		<link>http://www.iearn.in.th/2010/11/22/installing-apache-and-php5/</link>
		<comments>http://www.iearn.in.th/2010/11/22/installing-apache-and-php5/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 01:06:02 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=663</guid>
		<description><![CDATA[ลง apache+php5 ด้วย apt apt-get install apache2 php5 libapache2-mod-php5 เพิ่ม mysql.so ให้กับ php gedit /etc/php5/apache2/php.ini extension=mysql.so 5 views]]></description>
			<content:encoded><![CDATA[<p>ลง apache+php5 ด้วย apt<br />
<code>apt-get install apache2 php5 libapache2-mod-php5</code><br />
เพิ่ม mysql.so ให้กับ php<br />
<code>gedit /etc/php5/apache2/php.ini<br />
extension=mysql.so<br />
</code></p>

<p class="sayac_bilgi">5 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/11/22/installing-apache-and-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto mount ntfs drive on boot</title>
		<link>http://www.iearn.in.th/2010/11/20/auto-mount-ntfs-drive-on-boot/</link>
		<comments>http://www.iearn.in.th/2010/11/20/auto-mount-ntfs-drive-on-boot/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 06:26:01 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[ntfs auto mount]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=661</guid>
		<description><![CDATA[ขั้นตอนมีไม่เยอะ sudo fdisk -l สังเกตตรง /dev/sda? ที่คุณต้องการ sudo gedit /etc/fstab แก้ไขตามด้านล่าง /dev/sda3 /media/work ntfs-3g defaults, locale=eng_US.utf8 0 0 อันแรกเลยคือ partitions ที่ต้องการ auto mount และส่วน /media/work คือ mount point สุดท้ายก็สร้าง mount point sudo mkdir -p /media/work เพิ่มเติม https://help.ubuntu.com/community/MountingWindowsPartitions?action=show&#038;redirect=MountingWindowsPartitions/ThirdPartyNTFS3G 9 views]]></description>
			<content:encoded><![CDATA[<p>ขั้นตอนมีไม่เยอะ<br />
<code>sudo fdisk -l</code><br />
สังเกตตรง /dev/sda? ที่คุณต้องการ</p>
<p><code>sudo gedit /etc/fstab</code><br />
แก้ไขตามด้านล่าง<br />
<code>/dev/sda3  /media/work  ntfs-3g defaults, locale=eng_US.utf8 0 0</code><br />
อันแรกเลยคือ partitions ที่ต้องการ auto mount และส่วน /media/work คือ mount point สุดท้ายก็สร้าง mount point<br />
<code>sudo mkdir -p /media/work</code></p>
<p>เพิ่มเติม <a href="https://help.ubuntu.com/community/MountingWindowsPartitions?action=show&#038;redirect=MountingWindowsPartitions/ThirdPartyNTFS3G">https://help.ubuntu.com/community/MountingWindowsPartitions?action=show&#038;redirect=MountingWindowsPartitions/ThirdPartyNTFS3G</a></p>

<p class="sayac_bilgi">9 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/11/20/auto-mount-ntfs-drive-on-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

