<?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>Sat, 12 Jun 2010 06:40:27 +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>Deploy rails app on a suburi</title>
		<link>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/</link>
		<comments>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 09:00:30 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rails suburi]]></category>
		<category><![CDATA[relative url]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=628</guid>
		<description><![CDATA[หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน url ใด ซึ่งในส่วนของการ deploy ผมได้ deploy apache+mod_proxy+mongrel ซึ่งผมจะมาเขียนที่หลังละกันครับ สำหรับการทำให้ rails deploy บน suburi ทำได้ดังนี้ครับ โดยการแก้ไขในส่วนของ environment.rb config.action_controller.relative_url_root = &#34;/rails&#34; เป็นอันว่าเรียบร้อย Related posts:Install and Deploy Rails with Apache Modrails Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ... Related posts brought to you by Yet [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/' rel='bookmark' title='Permanent Link: Install and Deploy Rails with Apache Modrails'>Install and Deploy Rails with Apache Modrails</a> <small>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน url ใด ซึ่งในส่วนของการ deploy ผมได้ deploy apache+mod_proxy+mongrel ซึ่งผมจะมาเขียนที่หลังละกันครับ<br />
สำหรับการทำให้ rails deploy บน suburi ทำได้ดังนี้ครับ โดยการแก้ไขในส่วนของ environment.rb</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">config.<span style="color:#9900CC;">action_controller</span>.<span style="color:#9900CC;">relative_url_root</span> = <span style="color:#996600;">&quot;/rails&quot;</span></pre></div></div>

<p>เป็นอันว่าเรียบร้อย</p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/' rel='bookmark' title='Permanent Link: Install and Deploy Rails with Apache Modrails'>Install and Deploy Rails with Apache Modrails</a> <small>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install dhcp server on debian</title>
		<link>http://www.iearn.in.th/2010/03/10/install-dhcp-server-on-debian/</link>
		<comments>http://www.iearn.in.th/2010/03/10/install-dhcp-server-on-debian/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 06:39:57 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcp3]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=623</guid>
		<description><![CDATA[apt-get install dhcp3-server เป็นภาคต่อของการทำ server ของบริษัทครับ ที่จริงไม่มีอะไรหรอกแค่เอามาไว้อ่านเฉยๆ ส่วนตรงนี้จะเป็นส่วนของการ Install dhcp server ซึ่งไว้สำหรับการแจก ip ภายในครับ โดยในการแจกได้ใช้ ip ช่วงตั้งแต่ 192.168.55.100 &#8211; 192.168.55.254 แก้ไข /etc/dhcp3/dhcpd.conf subnet 192.168.55.0 netmask 255.255.255.0 &#123; #option routers 192.168.2.55 pool&#123; range 192.168.55.100 192.168.55.255; allow unknown clients; &#125; &#125; Related posts:gem update &#8211;system is disabled on Debian ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/' rel='bookmark' title='Permanent Link: gem update &#8211;system is disabled on Debian'>gem update &#8211;system is disabled on Debian</a> <small>ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update...</small></li>
<li><a href='http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/' rel='bookmark' title='Permanent Link: Install and Deploy Rails with Apache Modrails'>Install and Deploy Rails with Apache Modrails</a> <small>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dhcp3-server</pre></div></div>

<p>เป็นภาคต่อของการทำ server ของบริษัทครับ ที่จริงไม่มีอะไรหรอกแค่เอามาไว้อ่านเฉยๆ ส่วนตรงนี้จะเป็นส่วนของการ Install dhcp server ซึ่งไว้สำหรับการแจก ip ภายในครับ<br />
<span id="more-623"></span></p>
<p>โดยในการแจกได้ใช้ ip ช่วงตั้งแต่ 192.168.55.100 &#8211; 192.168.55.254 แก้ไข /etc/dhcp3/dhcpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">subnet 192.168.55.0 netmask 255.255.255.0 <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #666666; font-style: italic;">#option routers 192.168.2.55</span>
        pool<span style="color: #7a0874; font-weight: bold;">&#123;</span>
                range 192.168.55.100 192.168.55.255;
                allow unknown clients;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/' rel='bookmark' title='Permanent Link: gem update &#8211;system is disabled on Debian'>gem update &#8211;system is disabled on Debian</a> <small>ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update...</small></li>
<li><a href='http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/' rel='bookmark' title='Permanent Link: Install and Deploy Rails with Apache Modrails'>Install and Deploy Rails with Apache Modrails</a> <small>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/03/10/install-dhcp-server-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gem update &#8211;system is disabled on Debian</title>
		<link>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/</link>
		<comments>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 15:40:26 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[update gem]]></category>
		<category><![CDATA[update_rubygems]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=621</guid>
		<description><![CDATA[ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update gem เจอปัญหานี้ครับ ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. วิธีการแก้โดยการเปลี่ยนไปใช้ gem ที่ไว้สำหรับ update rubygems ทำได้ 2 วิธีครับ gem install update_rubygems cd /var/lib/gems/1.8/bin ./update_rubygems or gem install [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/10/install-dhcp-server-on-debian/' rel='bookmark' title='Permanent Link: install dhcp server on debian'>install dhcp server on debian</a> <small>apt-get install dhcp3-server เป็นภาคต่อของการทำ server ของบริษัทครับ ที่จริงไม่มีอะไรหรอกแค่เอามาไว้อ่านเฉยๆ ส่วนตรงนี้จะเป็นส่วนของการ Install dhcp...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update gem เจอปัญหานี้ครับ</p>
<pre code="bash">ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
</pre>
<p><span id="more-621"></span><br />
วิธีการแก้โดยการเปลี่ยนไปใช้ gem ที่ไว้สำหรับ update rubygems ทำได้ 2 วิธีครับ</p>
<pre code="bash">
gem install update_rubygems
cd /var/lib/gems/1.8/bin
./update_rubygems
</pre>
<p>or</p>
<pre code="bash">
gem install rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems
</pre>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/10/install-dhcp-server-on-debian/' rel='bookmark' title='Permanent Link: install dhcp server on debian'>install dhcp server on debian</a> <small>apt-get install dhcp3-server เป็นภาคต่อของการทำ server ของบริษัทครับ ที่จริงไม่มีอะไรหรอกแค่เอามาไว้อ่านเฉยๆ ส่วนตรงนี้จะเป็นส่วนของการ Install dhcp...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and Deploy Rails with Apache Modrails</title>
		<link>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/</link>
		<comments>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 18:46:19 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd config]]></category>
		<category><![CDATA[modrails]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[passenger]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=598</guid>
		<description><![CDATA[Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ อีกอย่างการ deploy ก็ทำได้ง่ายดายมาก เอาเป็นว่ามาดูวิธิการลงกันเลย Install Passenger 1. ทำการติดตั้ง passenger gem (mod_rails) gem install passenger 2. ติดตั้งเป็น module ของ apache passenger-install-apache2-module เป็นอันว่าเรียบร้อยแล้วสำหรับการลง ง่ายไหมละ Mod-rails Config 1. เปิดไฟล์ httpd.conf ของ apahce มาครับ 2. การ deploy ด้วย virtual host ServerName www.xxx.com ServerAlias www.xxxx.com xxxx.com DocumentRoot /home/xxx/app/public RailsEnv production [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/' rel='bookmark' title='Permanent Link: Deploy rails app on a suburi'>Deploy rails app on a suburi</a> <small>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/10/mod_rails.jpg"><img src="http://www.iearn.in.th/wp-content/uploads/2009/10/mod_rails-300x221.jpg" alt="mod_rails" title="mod_rails" width="300" height="221" class="aligncenter size-medium wp-image-599" /></a></p>
<p>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ อีกอย่างการ deploy ก็ทำได้ง่ายดายมาก เอาเป็นว่ามาดูวิธิการลงกันเลย<br />
<span id="more-598"></span><br />
Install Passenger<br />
1. ทำการติดตั้ง passenger gem (mod_rails)<br />
<code>gem install passenger </code><br />
2. ติดตั้งเป็น module ของ apache<br />
<code>passenger-install-apache2-module</code><br />
เป็นอันว่าเรียบร้อยแล้วสำหรับการลง ง่ายไหมละ</p>
<p>Mod-rails Config<br />
1. เปิดไฟล์ httpd.conf ของ apahce มาครับ<br />
2. การ deploy ด้วย virtual host<br />
<code><VirtualHost xx.xx.xx.xx:80><br />
ServerName www.xxx.com<br />
        ServerAlias www.xxxx.com xxxx.com<br />
        DocumentRoot /home/xxx/app/public<br />
        RailsEnv production<br />
</VirtualHost><br />
</code><br />
หลังจากนั้นทำการ reload httpd ก็เรียบร้อยครับ</p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/' rel='bookmark' title='Permanent Link: Deploy rails app on a suburi'>Deploy rails app on a suburi</a> <small>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache FancyIndex Overide Apache Icons</title>
		<link>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/</link>
		<comments>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 03:33:59 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache addicon]]></category>
		<category><![CDATA[apache index]]></category>
		<category><![CDATA[apache list file]]></category>
		<category><![CDATA[apache overide icon]]></category>
		<category><![CDATA[listfile]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=584</guid>
		<description><![CDATA[เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip #AddIconByType (TXT,/index-style/icons/text.gif) text/* AddIconByType (IMG,/index-style/icons/image2.gif) image/* AddIconByType (SND,/index-style/icons/sound2.gif) audio/* AddIconByType (VID,/index-style/icons/video.png) video/* AddIcon /index-style/icons/back.gif .. AddIcon /index-style/icons/pdf.png .pdf AddIcon [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon-300x220.png" alt="apache-index-overide-icon" title="apache-index-overide-icon" width="300" height="220" class="aligncenter size-medium wp-image-585" /></a></p>
<p>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ<br />
<span id="more-584"></span><br />
สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ<br />
<code>AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip<br />
#AddIconByType (TXT,/index-style/icons/text.gif) text/*<br />
AddIconByType (IMG,/index-style/icons/image2.gif) image/*<br />
AddIconByType (SND,/index-style/icons/sound2.gif) audio/*<br />
AddIconByType (VID,/index-style/icons/video.png) video/*<br />
AddIcon /index-style/icons/back.gif ..<br />
AddIcon /index-style/icons/pdf.png .pdf<br />
AddIcon /index-style/icons/html.png .html .xhtml .xml<br />
AddIcon /index-style/icons/html.png .txt<br />
AddIcon /index-style/icons/compressed.gif .rar .zip<br />
AddIcon /index-style/icons/dll.png .dll<br />
AddIcon /index-style/icons/shellscript.png .sh<br />
AddIcon /index-style/icons/library.png .jar .lib<br />
AddIcon /index-style/icons/msword_doc.png .doc .docx<br />
AddIcon /index-style/icons/msexcel_xls.png .xls .xlsx<br />
AddIcon /index-style/icons/msaccess_mdb.png .mdb .mdbx<br />
AddIcon /index-style/icons/doc_encrypted.png .key .csr<br />
AddIcon /index-style/icons/binary.png .bin .exe<br />
AddIcon /index-style/icons/swf.png .bin .swf<br />
AddIcon /index-style/icons/source_java.png .java<br />
AddIcon /index-style/icons/source_c.png .c<br />
AddIcon /index-style/icons/source_cpp.png .cpp<br />
AddIcon /index-style/icons/source_ruby.png .rb<br />
AddIcon /index-style/icons/xml.png .xml<br />
AddIcon /index-style/icons/properties.png .properties<br />
#AddIcon /icon/hand.right.gif README<br />
AddIcon /index-style/icons/folder.gif ^^DIRECTORY^^<br />
AddIcon /index-style/icons/blank.gif ^^BLANKICON^^<br />
DefaultIcon /index-style/icons/unknown.gif</code></p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Path On Ubuntu</title>
		<link>http://www.iearn.in.th/2009/08/23/set-path-on-ubuntu/</link>
		<comments>http://www.iearn.in.th/2009/08/23/set-path-on-ubuntu/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 05:53:34 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[classpath]]></category>
		<category><![CDATA[java_home]]></category>
		<category><![CDATA[jruby_home]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu set path]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=573</guid>
		<description><![CDATA[สำหรับบทความนี้เป็นวิธีการ set path ใน ubuntu สำหรับคนที่ยังทำไม่ค่อยจะเป็นนะครับวิธีการมี 2 วิธีคือการเปิด terminal มาแล้ว set ทุกครั้งหรือว่า ไปตั้งค่าไว้เลยให้มันจำเลย เอาเป็นว่ามาดูกันทั้ง 2 วิธีเลยครับ วิธีการ set โดยการเปิด terminal มาแล้ว set 1. เปิด terminal ขึ้นมา 2. ใช้คำสั่ง export PATH=$PATH:/home/mlri/Desktop/Work/jruby-1.1.6/bin 3. เป็นอันว่าเรียบร้อยสามารถใช้งานได้เลย วิธีการ set โดยแก้ไข .bashrc ซึ่งอยุ่ใน home 1. เปิด terminal ขึ้นมา 2. ใช้คำสั่ง nano ~/.bashrc 3. เลื่อนลงบันทัดสุดท้าย เพิ่มข้อความ PATH=$PATH:/home/mlri/Desktop/Work/jruby-1.1.6/bin 4. เสร็จแล้วลองปิดและเปิด terminal ใหม่เราก็สามารถใช้คำสั่งใน folder [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/set-path-on-ubuntu.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/08/set-path-on-ubuntu-300x184.png" alt="set-path-on-ubuntu" title="set-path-on-ubuntu" width="300" height="184" class="aligncenter size-medium wp-image-574" /></a><br />
 สำหรับบทความนี้เป็นวิธีการ set path ใน ubuntu สำหรับคนที่ยังทำไม่ค่อยจะเป็นนะครับวิธีการมี 2 วิธีคือการเปิด terminal มาแล้ว set ทุกครั้งหรือว่า ไปตั้งค่าไว้เลยให้มันจำเลย เอาเป็นว่ามาดูกันทั้ง 2 วิธีเลยครับ<br />
<span id="more-573"></span><br />
<strong>วิธีการ set โดยการเปิด terminal มาแล้ว set</strong><br />
1. เปิด terminal ขึ้นมา<br />
2. ใช้คำสั่ง<br />
<code>export PATH=$PATH:/home/mlri/Desktop/Work/jruby-1.1.6/bin</code><br />
3. เป็นอันว่าเรียบร้อยสามารถใช้งานได้เลย</p>
<p><strong>วิธีการ set โดยแก้ไข .bashrc ซึ่งอยุ่ใน home</strong><br />
1. เปิด terminal ขึ้นมา<br />
2. ใช้คำสั่ง<br />
nano ~/.bashrc<br />
3. เลื่อนลงบันทัดสุดท้าย เพิ่มข้อความ<br />
<code>PATH=$PATH:/home/mlri/Desktop/Work/jruby-1.1.6/bin</code><br />
4. เสร็จแล้วลองปิดและเปิด terminal ใหม่เราก็สามารถใช้คำสั่งใน folder นั้นได้แล้ว<br />
5. หากต้องการ set อย่างอื่นก็ทำคล้ายๆกันครับเช่น<br />
JAVA_HOME=&#8221;/usr/lib/jvm/java-6-sun&#8221;<br />
CLASSPATH=.:/usr/lib/jvm/java-6-sun<br />
JRUBY_HOME=&#8221;/home/mlri/Desktop/Work/jruby-1.1.6&#8243;<br />
ป.ล. ช่วงนี้ขอบอกว่าที่มีบทความเกี่ยวกะ ubuntu เยอะเพราะว่าหันมาอยู่ที่ ubuntu แล้วส่วนโปรแกรมบน windows ทำไงนะหรือใช้ wine เอาครับ</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/23/set-path-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ปรับเวลา windows และ Ubuntu ให้ตรงกัน</title>
		<link>http://www.iearn.in.th/2009/08/22/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2-windows-%e0%b9%81%e0%b8%a5%e0%b8%b0-ubuntu-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%95%e0%b8%a3%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99/</link>
		<comments>http://www.iearn.in.th/2009/08/22/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2-windows-%e0%b9%81%e0%b8%a5%e0%b8%b0-ubuntu-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%95%e0%b8%a3%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 00:30:13 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bios time]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=568</guid>
		<description><![CDATA[หลายคนคงเคยเจอปัญหาเรื่องของ เมื่อเราลง ubuntu และ windows เป็นแบบ dual boot จะเกิดปัญหาเรื่องเวลาที่ไม่ตรงกัน ปัญหานี้แก้ได้อย่างไร ผมลองนั่ง search ใน google ก็เจอครับเกิดจากการใช้งาน UTC ทำให้เวลาที่ได้ไม่ตรงกัน การแก้คือการ ปิดการใช้งานส่วนนี้ครับ 1.แก้ไขไฟล์ /etc/default/rcS sudo gedit /etc/default/rcS 2.แก้ไข้ค่าของ UTC=no TMPTIME=0 SULOGIN=no DELAYLOGIN=no UTC=yes VERBOSE=no FSCKFIX=no RAMRUN=yes RAMLOCK=yes 3.save และ restart เป็นอันว่าใช้งานได้เลย ที่มา http://learners.in.th/blog/mrgill/93199 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/time-diff-ubuntu-windows.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/08/time-diff-ubuntu-windows-300x187.png" alt="time-diff-ubuntu-windows" title="time-diff-ubuntu-windows" width="300" height="187" class="aligncenter size-medium wp-image-569" /></a><br />
หลายคนคงเคยเจอปัญหาเรื่องของ เมื่อเราลง ubuntu และ windows เป็นแบบ dual boot จะเกิดปัญหาเรื่องเวลาที่ไม่ตรงกัน ปัญหานี้แก้ได้อย่างไร ผมลองนั่ง search ใน google ก็เจอครับเกิดจากการใช้งาน UTC  ทำให้เวลาที่ได้ไม่ตรงกัน การแก้คือการ ปิดการใช้งานส่วนนี้ครับ<br />
<span id="more-568"></span><br />
1.แก้ไขไฟล์ /etc/default/rcS<br />
<code>sudo gedit /etc/default/rcS</code><br />
2.แก้ไข้ค่าของ UTC=no<br />
<code>TMPTIME=0<br />
SULOGIN=no<br />
DELAYLOGIN=no<br />
UTC=yes<br />
VERBOSE=no<br />
FSCKFIX=no<br />
RAMRUN=yes<br />
RAMLOCK=yes</code><br />
3.save และ restart เป็นอันว่าใช้งานได้เลย</p>
<p>ที่มา<br />
<a href="http://learners.in.th/blog/mrgill/93199">http://learners.in.th/blog/mrgill/93199</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/22/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2-windows-%e0%b9%81%e0%b8%a5%e0%b8%b0-ubuntu-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%95%e0%b8%a3%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PSU Ubuntu Repository</title>
		<link>http://www.iearn.in.th/2009/08/21/psu-ubuntu-repository/</link>
		<comments>http://www.iearn.in.th/2009/08/21/psu-ubuntu-repository/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 01:03:39 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[psu repository]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu repository]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=565</guid>
		<description><![CDATA[สำหรับใครที่อยู่ใน มอ ต้องการให้ ubuntu เราสามารถใช้งาน apt-get ได้เร็วขึ้นวันนี้มีบทความการ set repository ให้มาใช้ repository ของมหาลัยกันครับ ซึ่งการทำก็ไม่ยุ่งยากและซับซ้อนมากมายแถมง่ายมากๆ เอาเป็นว่าตอนนี้ผมใช้ 9.04 นะครับใครต้องการทำตามได้เลยหากรุ่นอื่นก็เปลี่ยนแค่โค้ดเนมครับ 1. แก้ไข source.list โดยการใช้คำสั่ง sudo gedit /etc/apt/source.list 2. เพิ่มโค้ดส่วนนี้ลงไฟใน editor ครับ deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty main multiverse restricted universe deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-backports main multiverse restricted universe deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-proposed main multiverse restricted universe deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-security main multiverse restricted universe [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/sourceslist-etc-apt-gedit.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/08/sourceslist-etc-apt-gedit-300x97.png" alt="sourceslist-etc-apt-gedit" title="sourceslist-etc-apt-gedit" width="300" height="97" class="aligncenter size-medium wp-image-566" /></a><br />
สำหรับใครที่อยู่ใน มอ ต้องการให้ ubuntu เราสามารถใช้งาน apt-get ได้เร็วขึ้นวันนี้มีบทความการ set repository ให้มาใช้ repository ของมหาลัยกันครับ ซึ่งการทำก็ไม่ยุ่งยากและซับซ้อนมากมายแถมง่ายมากๆ เอาเป็นว่าตอนนี้ผมใช้ 9.04 นะครับใครต้องการทำตามได้เลยหากรุ่นอื่นก็เปลี่ยนแค่โค้ดเนมครับ<br />
<span id="more-565"></span><br />
1. แก้ไข source.list โดยการใช้คำสั่ง<br />
<code>sudo gedit /etc/apt/source.list</code><br />
2. เพิ่มโค้ดส่วนนี้ลงไฟใน editor ครับ<br />
<code>deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty main multiverse restricted universe<br />
deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-backports main multiverse restricted universe<br />
deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-proposed main multiverse restricted universe<br />
deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-security main multiverse restricted universe<br />
deb ftp://ftp.psu.ac.th/pub/ubuntu/ jaunty-updates main multiverse restricted universe </code><br />
3. save ไฟล์นั้นครับ<br />
4. อัพเดด repository<br />
<code>sudo apt-get update</code><br />
5. ลงโปรแกรมที่เราต้องการแถมรวดเร็วมาก(หากอยู่ในมอ นะ)</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/21/psu-ubuntu-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install CUPS on Ubuntu 9.04</title>
		<link>http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/</link>
		<comments>http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 02:08:27 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Common Unix Printing system]]></category>
		<category><![CDATA[CUPS]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=554</guid>
		<description><![CDATA[Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง Cups บน Ubuntu ใน Ubuntu Desktop ให้เปิดโปรแกรม Terminal โดยไปที่เมนู Applications > Accessories > Terminal เปลี่ยนผู้ใช้งาน โดยใช้คำสั่ง $ sudo su จากนั้นอัพเดท source list ใน buntu ด้วยคำสั่ง # apt-get update ในการติดตั้งเครื่องพิมพ์บน Ubuntu จะมีการติดตั้งแพคเกจสองส่วนคือติดตั้ง Cups กับติดตั้ง Driver ของเครื่องพิมพ์ ติดตั้ง Cups โดยใช้คำสั่ง # apt-get install cupsys ghostscript cupsys-client cupsys-bsd [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/19/easy-setup-xampplampp-on-ubuntu/' rel='bookmark' title='Permanent Link: Easy Setup Xampp(lampp) on Ubuntu'>Easy Setup Xampp(lampp) on Ubuntu</a> <small>อยากจะลง php+myql สำหรับ web developer ในส่วนของ ubuntu จะต้องใช้โปรแกรมอะไร ซึ่งการลงมีได้หลายวิธีมากครับตั้งแต่การลงแยกส่วนไป ลง...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/screenshot.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/08/screenshot-300x183.png" alt="cups" title="cups" width="300" height="183" class="aligncenter size-medium wp-image-562" /></a></p>
<p>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้<br />
<span id="more-554"></span><br />
ขั้นตอนการติดตั้ง Cups บน Ubuntu<br />
ใน Ubuntu Desktop ให้เปิดโปรแกรม Terminal โดยไปที่เมนู Applications > Accessories > Terminal<br />
เปลี่ยนผู้ใช้งาน โดยใช้คำสั่ง<br />
<code>$ sudo su</code></p>
<p>จากนั้นอัพเดท source list  ใน buntu ด้วยคำสั่ง<br />
<code># apt-get update</code></p>
<p>ในการติดตั้งเครื่องพิมพ์บน Ubuntu จะมีการติดตั้งแพคเกจสองส่วนคือติดตั้ง Cups กับติดตั้ง Driver ของเครื่องพิมพ์<br />
ติดตั้ง Cups โดยใช้คำสั่ง<br />
<code># apt-get install cupsys  ghostscript cupsys-client cupsys-bsd</code></p>
<p>หมายเหตุ     cupsys คือแพคเกจของ cups ในส่วนที่เป็น Print Server<br />
                 ghostscript คือแพคเกจของตัวแปลภาษา Postscript<br />
                 cupsys-client คือแพคเกจของโปรแกรมสั่งพิมพ์<br />
                 cupsys-bsd คือแพคเกจชุดคำสั่งแบบ BSD</p>
<p>เนื่องจากใน Ubuntu มีชุด Driver สำหรับเครื่องพิมพ์หลาย package ดังนี้<br />
• gutenprint เป็น package driver สำหรับเครื่องพิมพ์ Canon, Epson, Lexmark, Sony, Olympus และเครื่องพิมพ์ PCL ซึ่งใช้งานร่วมกับโปรแกรม Ghostscript ,CUPS ,Foomatic และ GIMP<br />
• foomatic เป็น package ที่รวบรวมฐานข้อมูลเครื่องพิมพ์ชนิดต่างๆ มาสร้างเป็นไฟล์ PPD (Postscript Printer Description) นำมาทำงานร่วมกับ Ghostscript ทำให้ CUPS พิมพ์เอกสารออกจากเครื่องพิมพ์นั้นๆ ได้<br />
• hplip เป็น package driver ของเครื่องพิมพ์ HP โดยใช้งานได้กับ DeskJet, OfficeJet, Photosmart, Business Inkjet และ LaserJet บางรุ่น<br />
• cups-pdf เป็น package สร้าง Virtual PDF Printer ใช้แปลงเอกสารต่างๆ ให้เป็นไฟล์ PDF</p>
<p>ในการติดตั้ง Driver ใน Ubuntu นั้นต้องเลือกให้ถูกต้องกับชนิดเครื่องพิมพ์ที่ใช้<br />
• ติดตั้ง Driver แบบ gutenprint  ด้วยคำสั่งดังนี้<br />
# apt-get install cupsys-driver-gutenprint gutenprint-locales foomatic-db-gutenprint</p>
<p>• ติดตั้ง Driver แบบ foomatic ด้วยคำสั่งดังนี้<br />
# apt-get install foomatic-filters  foomatic-db  foomatic-db-engine  foomatic-filters</p>
<p>• ติดตั้ง Driver แบบ hplip ด้วยคำสั่งดังนี้<br />
# apt-get install hplip</p>
<p>• ติดตั้ง Driver แบบ cups-pdf ด้วยคำสั่ง<br />
# apt-get install cups-pdf</p>
<p>ในกรณีที่ไม่มี Driver สำหรับเครื่องพิมพ์ ให้เข้าไปที่เว็บไซด์</p>
<p>http://www.linuxprinting.org/printer_list.cgi</p>
<p>เลือกยี่ห้อกับรุ่นของเครื่องพิมพ์ จากนั้นดาวโหลดไฟล์ PPD ของเครื่องพิมพ์ที่เลือก มาเก็บไว้ที่ /usr/share/cups/drivers</p>
<p>สำหรับ เครื่องพิมพ์ PostScript ทุกตัว ผู้ผลิตจะให้ไฟล์ PPD ซึ่งประกอบไปด้วยรายละเอียดต่างๆ เกี่ยวกับเครื่องพิมพ์รุ่นนั้นๆ เช่น ความสามารถมาตรฐานที่เครื่องพิมพ์สามารถทำได้ ความสามารถในการพิมพ์สี Font ต่างๆ และอื่นๆ อีกมากมาย รวมถึงการตั้งค่าที่ผู้ใช้สามารถเลือกได้ เช่น ขนาดกระดาษ หรือ ความละเอียดเป็นต้น</p>
<p>เมื่อติดตั้งเสร็จให้เข้าไปที่ Firefox พิมพ์ URL: http://localhost:631/</p>
<p>การติดตั้ง Cups บน Ubuntu<br />
โดย กรรมไอทีและเด็กฝึกงานกรรมกรไอที ปี’ 52<br />
      บ้านสูงชั้น 13 ริมน้ำเจ้าพระยา</p>
<p>ที่มา<br />
<a href="http://www.oknation.net/blog/itlabour/2009/06/02/entry-3/comment">http://www.oknation.net/blog/itlabour/2009/06/02/entry-3/comment</a></p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/19/easy-setup-xampplampp-on-ubuntu/' rel='bookmark' title='Permanent Link: Easy Setup Xampp(lampp) on Ubuntu'>Easy Setup Xampp(lampp) on Ubuntu</a> <small>อยากจะลง php+myql สำหรับ web developer ในส่วนของ ubuntu จะต้องใช้โปรแกรมอะไร ซึ่งการลงมีได้หลายวิธีมากครับตั้งแต่การลงแยกส่วนไป ลง...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Setup Xampp(lampp) on Ubuntu</title>
		<link>http://www.iearn.in.th/2009/08/19/easy-setup-xampplampp-on-ubuntu/</link>
		<comments>http://www.iearn.in.th/2009/08/19/easy-setup-xampplampp-on-ubuntu/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 02:06:27 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache+mysql]]></category>
		<category><![CDATA[lamp ubuntu]]></category>
		<category><![CDATA[xampp ubuntu]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=552</guid>
		<description><![CDATA[อยากจะลง php+myql สำหรับ web developer ในส่วนของ ubuntu จะต้องใช้โปรแกรมอะไร ซึ่งการลงมีได้หลายวิธีมากครับตั้งแต่การลงแยกส่วนไป ลง apache mysql และอื่นๆ ซึ่งคิดว่ามันช้ามาก เลยหาที่เร็วกว่านี้หน่อย ตอนใช้ windows อยู่ใช้ xampp ก็เลยคิดว่าลอง xampp แต่พอเป็น Linux มันเปลี่ยนชื่อเป็น lampp มาลองดูวิธีลงกันเลยครับ วิธีการลง XAMPP 1. ดาวโหลดไฟล์มาจาก http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.2.tar.gz/download 2. แตกไฟล์ออกไปเก็บไว้ที่ /opt sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt เสร็จแล้วครับสำหรับวิธีการลง XAMPP ง่ายเหลือหลาย วิธีการ start และ stop XAMPP สำหรับการ start sudo /opt/lampp/lampp start สำหรับการ stop [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/ubuntu-xampp.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/08/ubuntu-xampp-300x270.png" alt="ubuntu-xampp" title="ubuntu-xampp" width="300" height="270" class="aligncenter size-medium wp-image-553" /></a></p>
<p>อยากจะลง php+myql สำหรับ web developer ในส่วนของ ubuntu จะต้องใช้โปรแกรมอะไร ซึ่งการลงมีได้หลายวิธีมากครับตั้งแต่การลงแยกส่วนไป ลง apache mysql และอื่นๆ ซึ่งคิดว่ามันช้ามาก เลยหาที่เร็วกว่านี้หน่อย ตอนใช้ windows อยู่ใช้ xampp ก็เลยคิดว่าลอง xampp แต่พอเป็น Linux มันเปลี่ยนชื่อเป็น lampp มาลองดูวิธีลงกันเลยครับ<br />
<span id="more-552"></span><br />
<strong>วิธีการลง XAMPP</strong><br />
1. ดาวโหลดไฟล์มาจาก <a href="http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.2.tar.gz/download">http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/xampp-linux-1.7.2.tar.gz/download</a><br />
2. แตกไฟล์ออกไปเก็บไว้ที่ /opt<br />
<code>sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt</code><br />
เสร็จแล้วครับสำหรับวิธีการลง XAMPP ง่ายเหลือหลาย</p>
<p><strong>วิธีการ start และ stop XAMPP</strong><br />
สำหรับการ start<br />
<code>sudo /opt/lampp/lampp start</code><br />
สำหรับการ stop<br />
<code>sudo /opt/lampp/lampp stop</code><br />
ดูคำสั่งต่างๆ<br />
<code>sudo /opt/lampp/lampp</code></p>
<p>วิธีการเพิ่ม Xampp Control Panel<br />
1. รันโค้ดนี้ใน terminal<br />
<code>gedit ~/.local/share/applications/xampp-control-panel.desktop</code><br />
2. เพิ่มโค้ดส่วนนี้ลงใน editor<br />
<code>[Desktop Entry]<br />
Comment=Start/Stop XAMPP<br />
Name=XAMPP Control Panel<br />
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"<br />
Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg<br />
Encoding=UTF-8<br />
Terminal=false<br />
Name[en_CA]=XAMPP Control Panel<br />
Comment[en_CA]=Start/Stop XAMPP<br />
Type=Application<br />
Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg</code></p>
<p>ง่ายมากมาย หากมีปัญหาอะไรสามารถดูเพิ่มเติมได้ที่<br />
<a href="http://ubuntuforums.org/showthread.php?t=223410">http://ubuntuforums.org/showthread.php?t=223410</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/19/easy-setup-xampplampp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
