<?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>Just My Life &#187; Ubuntu</title>
	<atom:link href="http://imrgill.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://imrgill.com</link>
	<description>I&#039;m mrGilL, I&#039;m Newbie Admin</description>
	<lastBuildDate>Thu, 02 Sep 2010 08:25:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>การติดตั้ง Ultrasurf บน Ubuntu 10.04</title>
		<link>http://imrgill.com/2010/07/29/how-to-install-ultrasurf-on-ubuntu-10-04.html</link>
		<comments>http://imrgill.com/2010/07/29/how-to-install-ultrasurf-on-ubuntu-10-04.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 15:26:24 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[ultrasurf]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=586</guid>
		<description><![CDATA[สวัสดีครับ ไม่ค่อยมีเวลา update blog สักเท่าไหร่ วันนี้ว่างๆ หลังเลิกงานก็เลยมาเขียนไรเล่นซะหน่อย ติดจากที่บริษัทผม block facebook/twitter ในช่วงเวลาทำงานปกติ จะเปิดอีกทีก็โน้นหลังห้าโมงเลย แต่ทำงานบางทีมันเครียดๆ อะนะครับ อยากจะไปดูรูปสาวๆ ให้มันชื่นหัวใจ ก็ต้องหาวิธีแหกกฎกันบ้าง ก็ต้องหาโปรแกรมมาช่วยโปรแกรมยอดฮิตใน Windows คงหนีไม่ได้ Ultrasurf ใน Linux ก็มีโปรแกรมที่ทำงานคล้าย Ultrasurf เหมือนกันชื่อ tor + privoxy แต่ค่อนข้าง config ลำบากนิดนึง วันนี้ผมเลยเอา Ultrasurf ที่รันบน Windows มารันบน Ubuntu ซะเลย โดยใช้โปรแกรม Wine เข้ามาช่วย เรามาดูขั้นตอนการทำกัน 0. ติดตั้งโปรแกรม wine โดยใช้คำสั่ง mrgill@mrgill-laptop:~$ sudo apt-get install wine 1. เข้าไปในเว็บ http://www.ultrareach.com/ [...]]]></description>
			<content:encoded><![CDATA[<p>สวัสดีครับ ไม่ค่อยมีเวลา update blog สักเท่าไหร่ วันนี้ว่างๆ หลังเลิกงานก็เลยมาเขียนไรเล่นซะหน่อย ติดจากที่บริษัทผม block facebook/twitter ในช่วงเวลาทำงานปกติ จะเปิดอีกทีก็โน้นหลังห้าโมงเลย แต่ทำงานบางทีมันเครียดๆ อะนะครับ อยากจะไปดูรูปสาวๆ ให้มันชื่นหัวใจ ก็ต้องหาวิธีแหกกฎกันบ้าง ก็ต้องหาโปรแกรมมาช่วยโปรแกรมยอดฮิตใน Windows คงหนีไม่ได้ Ultrasurf ใน Linux ก็มีโปรแกรมที่ทำงานคล้าย Ultrasurf เหมือนกันชื่อ tor + privoxy แต่ค่อนข้าง config ลำบากนิดนึง วันนี้ผมเลยเอา Ultrasurf ที่รันบน Windows มารันบน Ubuntu ซะเลย โดยใช้โปรแกรม Wine เข้ามาช่วย เรามาดูขั้นตอนการทำกัน</p>
<p>0. ติดตั้งโปรแกรม wine โดยใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;">mrgill<span class="sy0">@</span>mrgill-laptop:~$ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> wine</div>
</div>
</pre>
<p>1. เข้าไปในเว็บ http://www.ultrareach.com/ จากนั้นดาวน์โหลด Ultrasurf มาโดยเวอร์ชันปัจจุบันคือ <a href="http://www.ultrareach.com/downloads/ultrasurf/u997.zip">Ultrasurf 9.97</a></p>
<p>2. เมื่อโหลดมาแล้วก็เอาไปแตกไว้ในที่เราชอบได้เลย ซึ่งเมื่อแตกไฟล์ zip ออกมาแล้วก็จะได้ไฟล์ u997.exe</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4088/4840757224_1f4bacde36.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4088/4840757224_1f4bacde36.jpg" alt="" width="358" height="239" /></a></p>
<p style="text-align: center;">เมื่อแตกไฟล์ zip ออกมาก็จะได้ไฟล์ u997.exe</p>
<p><span id="more-586"></span></p>
<p style="text-align: left;">3. กำหนดสิทธิ์ให้ไฟล์ u997.exe สามารถ execute ได้โดยคลิกขวาที่ไฟล์ u997.exe แล้วเลือก Properties &gt;&gt; Permission &gt;&gt; ให้ติ๊กที่ช่อง Allow executing file as program แล้วคลิกปุ่ม Close</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4133/4840757228_801191de17_b.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4133/4840757228_801191de17_b.jpg" alt="" width="539" height="416" /></a></p>
<p style="text-align: center;">ติ๊ก Allow executing file as program</p>
<p style="text-align: left;">4. เลือก Tab Open With เข้าไปเลือกโปรแกรม Wine Windows Program Loader</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4110/4841004156_56b6cb334b_b.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4110/4841004156_56b6cb334b_b.jpg" alt="" width="537" height="416" /></a></p>
<p style="text-align: center;">เลือก Wine Windows Program Loader</p>
<p style="text-align: left;">5. Ultrasurf จำเป็นต้องการไฟล์ mfc42.dll และ msvcp60.dll ซึ่งอยู่ใน %Systemroot%WINDOWS/System32 ของเครื่องที่มี Windows XP หรือดาวน์โหลดได้จาก<a href="http://imrgill.com/myfiles/ultrasurf_req_dll.tar.bz2">ที่นี่</a></p>
<p style="text-align: left;">6. เมื่อโหลดไฟล์ ultrasurf_req_dll.tar.bz2 มาแล้วก็แตกออกมาเลยครับ แล้วนำไฟล์ที mfc42.dll กับ msvcp60.dll ไปไว้ที่ ~/.wine/drive_c/windows/system32 โดยใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;">mrgill<span class="sy0">@</span>mrgill-laptop:~$ <span class="kw2">mv</span> <span class="sy0">*</span>.dll ~<span class="sy0">/</span>.wine<span class="sy0">/</span>drive_c<span class="sy0">/</span>windows<span class="sy0">/</span>system32<span class="sy0">/</span></div>
</div>
</pre>
<p style="text-align: left;">7. รันไฟล์ u997.exe โดยดับเบิลคลิกที่ u997.exe ได้เลย</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4087/4840757236_37be31979a.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4087/4840757236_37be31979a.jpg" alt="" width="360" height="261" /></a></p>
<p style="text-align: center;">หน้าตาโปรแกรม Ultrasurf ก็เหมือนๆ ใน Windows</p>
<p style="text-align: left;">8. ปรับแต่ง Option สักเล็กน้อยโดยคลิกที่ปุ่ม Option แล้วเข้าไปติ๊กที่ Do not use IE แล้วก็ OK</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4128/4840757238_f1c71411e3.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4128/4840757238_f1c71411e3.jpg" alt="" width="414" height="385" /></a></p>
<p style="text-align: center;">ติ๊กเลือก Do not use IE หากใครไม่ชอบให้มันแสดงรูปกุญแจสีทองก็ติ๊กเลือกที่ Hide Golden Lock ได้</p>
<p style="text-align: left;">9. โปรแกรม Ultrasurf เราก็พร้อมใช้งานแล้วที่เหลือก็เข้าไปตั้งค่าในโปรแกรม Firefox สักเล็กน้อยเพื่อให้ Firefox เราเข้าเว็บที่เค้า Block ไว้ได้โดยคลิกที่เมนู Edit &gt;&gt; Preferences &gt;&gt; Advanced &gt;&gt; Network &gt;&gt; Settings &gt;&gt; Manual proxy configuration</p>
<p style="text-align: center;"><a href="http://farm5.static.flickr.com/4085/4840149079_3c7786f8a0_b.jpg" rel="lightbox[586]"><img class="aligncenter" src="http://farm5.static.flickr.com/4085/4840149079_3c7786f8a0.jpg" alt="" width="500" height="313" /></a></p>
<p style="text-align: center;">ในช่อง HTTP Proxy กรอก localhost ส่วน Port กรอก 9666 ลงไป</p>
<p style="text-align: left;">10. เครื่องเราก็พร้อมเข้า Facebook กันแว้วววว</p>
<p style="text-align: left;">ต้องขอร้องสาวๆ แฟนคลับอย่ามาเม้นใน wall ผมเยอะนะ เดี่ยวหมี่เหลือง อิอิ</p>
<p style="text-align: left;">Enjoy with Ultrasurf <img src='http://imrgill.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2010/07/29/how-to-install-ultrasurf-on-ubuntu-10-04.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweeting แบบดิบๆ ผ่าน Linux Command Line</title>
		<link>http://imrgill.com/2009/12/30/tweeting-via-linux-command-line.html</link>
		<comments>http://imrgill.com/2009/12/30/tweeting-via-linux-command-line.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 14:58:04 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=515</guid>
		<description><![CDATA[เมื่อกี้เข้า linuxtoday.com ไปเจอทิปเด็ดๆ ใน junauza.com เรื่อง Follow Me: Tweeting from the Linux Command Line อ่านแล้วน่าสนใจดี และหลังจากลองแล้วก็ได้ผลครับเลยนำมาบอกต่อ ขั้นตอนเขามีอยู่ว่า 1. ติดตั้ง curl mrgill@mrgill-laptop:~$ sudo apt-get install curl 2. สร้างไฟล์ชื่อ twitter ไว้ใน /usr/bin/ ด้วย text editor ที่ชอบในตัวอย่างเขาใช้ gedit แต่ผมชอบ nano mrgill@mrgill-laptop:~$ sudo nano /usr/bin/twitter จากนั้นนำโค้ดด้านล่างไปวาง curl --basic --user "yourusername:yourpasswd" --data-ascii "status=`echo $@&#124;tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null; [...]]]></description>
			<content:encoded><![CDATA[<p>เมื่อกี้เข้า <a href="http://www.linuxtoday.com/">linuxtoday.com</a> ไปเจอทิปเด็ดๆ ใน <a href="http://www.junauza.com/2009/12/most-popular-tips-and-tricks-of-2009.html">junauza.com</a> เรื่อง <a href="http://www.junauza.com/2009/03/follow-me-twitting-from-linux-command.html">Follow Me: Tweeting from the Linux Command Line</a> อ่านแล้วน่าสนใจดี และหลังจากลองแล้วก็ได้ผลครับเลยนำมาบอกต่อ</p>
<p>ขั้นตอนเขามีอยู่ว่า<br />
1. ติดตั้ง curl</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo apt-get install curl</div>
</pre>
<p>2. สร้างไฟล์ชื่อ twitter ไว้ใน /usr/bin/ ด้วย text editor ที่ชอบในตัวอย่างเขาใช้ gedit แต่ผมชอบ nano</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo nano /usr/bin/twitter</div>
</pre>
<p>จากนั้นนำโค้ดด้านล่างไปวาง</p>
<pre>
<div class="codesnip-container" >curl --basic --user <em>"yourusername:yourpasswd"</em> --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null; echo Message Sent!</div>
</pre>
<p>*อย่าลืมเปลี่ยน yourusername กับ yourpasswd เป็นของ twitter ของคุณ (กด Ctrl + O เพื่อบันทึก และกด Ctrl + X เพื่อออก)</p>
<p>3. กำหนดสิทธิ์ให้ /usr/bin/twitter สามารถรันได้<br />
<span id="more-515"></span>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo chmod +x /usr/bin/twitter</div>
</pre>
<p>4. ทดลอง tweeting กันเลย โดยพิมพ์ twitter เว้นวรรค ข้อความของคุณ</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ twitter test tweet from command lind</div>
</pre>
<p style="text-align: left;"><a href="http://www.flickr.com/photos/imrgill/4228553402/sizes/o/"><img class="aligncenter" src="http://farm3.static.flickr.com/2491/4228553402_564196e4f9_o.png" alt="" width="595" height="410" /></a></p>
<p style="text-align: center;">ภาพตัวอย่างคำสั่ง twitter</p>
<p style="text-align: left;"><a href="http://www.flickr.com/photos/imrgill/4228553404/sizes/o/"><img class="aligncenter" src="http://farm3.static.flickr.com/2621/4228553404_4715fffda5_o.png" alt="" width="566" height="380" /></a></p>
<p style="text-align: center;">tweet บน twitter.com</p>
<p style="text-align: left;">5. ขอให้สนุกกับการ tweet</p>
<p style="text-align: left;">
<p style="text-align: left;">แหล่งข้อมูล : <a href="http://www.junauza.com/2009/03/follow-me-twitting-from-linux-command.html" target="_blank">http://www.junauza.com/2009/03/follow-me-twitting-from-linux-command.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/12/30/tweeting-via-linux-command-line.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Public DNS บน Ubuntu</title>
		<link>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:19:39 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google public dns]]></category>
		<category><![CDATA[nameserver]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=415</guid>
		<description><![CDATA[ไม่นานมานี้ Google เปิดให้บริการใหม่นั้นคือ Google Public DNS ซึ่งเป็นบริการสอบถามชื่อและไอพีฟรีของ Google ซึ่งสิ่งที่คุณจะได้จากบริการนี้คือ 1. ความเร็วในการใช้งานบราวเซอร์ 2. ความปลอดภัยที่ดีกว่า 3. ได้ผลลัพธิ์ทันทีโดยไม่ต้อง Redirect มาดูกันว่าเราจะใช้ Google Public DNS บน Ubuntu ได้ยังไง สำหรับใครที่ใช้ Ubuntu Desktop หรือ Linux Server ที่ Fix IP ก็สามารถเข้าไปแก้ไขไฟล์ /etc/resolv.conf ได้โดยตรง ตัวอย่าง root@mrgill-laptop:~# nano /etc/resolv.conf จากนั้นแก้ไขข้อมูลในไฟล์ /etc/resolv.conf ให้เป็น nameserver 8.8.8.8 nameserver 8.8.4.4 และสำหรับใครที่ใช้ Ubuntu Desktop แล้วรับ DHCP มาทุกครั้งที่ renew ip เราจะได้ [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่นานมานี้ Google เปิดให้บริการใหม่นั้นคือ Google Public DNS ซึ่งเป็นบริการสอบถามชื่อและไอพีฟรีของ Google ซึ่งสิ่งที่คุณจะได้จากบริการนี้คือ</p>
<p>1. ความเร็วในการใช้งานบราวเซอร์<br />
2. ความปลอดภัยที่ดีกว่า<br />
3. ได้ผลลัพธิ์ทันทีโดยไม่ต้อง Redirect</p>
<p>มาดูกันว่าเราจะใช้ Google Public DNS บน Ubuntu ได้ยังไง</p>
<p>สำหรับใครที่ใช้ Ubuntu Desktop หรือ Linux Server ที่ Fix IP ก็สามารถเข้าไปแก้ไขไฟล์ /etc/resolv.conf ได้โดยตรง</p>
<p><strong>ตัวอย่าง</strong></p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# nano /etc/resolv.conf</div>
</pre>
<p>จากนั้นแก้ไขข้อมูลในไฟล์ /etc/resolv.conf ให้เป็น</p>
<pre>
<div class="codesnip-container" >nameserver 8.8.8.8
nameserver 8.8.4.4</div>
</pre>
<p>และสำหรับใครที่ใช้ Ubuntu Desktop แล้วรับ DHCP มาทุกครั้งที่ renew ip เราจะได้ dns ที่ dhcp แจกมาให้ซึ่งวิธีแก้ไขนี้ทำได้โดย<br />
<span id="more-415"></span><br />
1. คลิกขวาที่ Applet Network Manager บริเวร Notification Area จากนั้นเลือก Edit Connections</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2536/4168637292_dd04bd71fc_o.jpg" alt="" width="421" height="177" />Edit Connections</p>
<p style="text-align: left;">2. จะปรากฎหน้าจอ Network Connections ขึ้นมา แล้วเลือก Connection ที่คุณใช้ ตัวอย่างของผมใช้ Wireless ที่มี SSID ที่ชื่อ mrgill_wifi จากนั้นคลิกที่ปุ่ม Edit</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2550/4168637294_ef0ba7574c_o.jpg" alt="" width="442" height="322" />Network Connections</p>
<p style="text-align: left;">3. จะเห็นหน้าจอ Editing</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2564/4168637304_e799e738e8_o.jpg" alt="" width="385" height="499" />Editing</p>
<p style="text-align: left;">ให้เปลี่ยน Method จาก Automatic (DHCP) เป็น Automatic (DHCP) address only</p>
<p style="text-align: left;">จากนั้นในช่อง DNS servers ให้กรอก 8.8.8.8, 8.8.4.4 ลงไป ดังรูป</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2547/4168637308_96aef2664b_o.jpg" alt="" width="385" height="500" />Editing (2)</p>
<p style="text-align: left;">จากนั้นคลิกปุ่ม Apply</p>
<p style="text-align: left;">4. สั่งให้ Ubuntu ใช้ DNS ที่เพิ่งเปลี่ยนไปโดยคลิกที่ Applet Network Manager จากนั้นเลือกเน็ตเวิร์คที่คุณใช้</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2682/4168637310_9b7be0f868_o.jpg" alt="" width="344" height="302" />เลือก Network ที่คุณใช้งาน</p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2648/4168637314_66061f8a93_o.jpg" alt="" width="346" height="174" /><img class="aligncenter" src="http://farm3.static.flickr.com/2554/4167876119_bf5ec40a5c_o.jpg" alt="" width="344" height="174" /></p>
<p style="text-align: left;">5. ดูผลที่ได้ว่า DNS เปลี่ยนเป็นที่เรากำหนดหรือยังโดยคลิกขวาที่ Applet Network Manager แล้วคลิก Connection Information</p>
<p style="text-align: left;"><img class="aligncenter" src="http://farm3.static.flickr.com/2564/4167949259_da69a2c0b2_o.jpg" alt="" width="341" height="171" /></p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2761/4168707880_caa87bdebc_o.jpg" alt="" width="368" height="433" />Connection Information</p>
<p style="text-align: left;">สังเกตตรง Primary DNS กับ Secondary DNS จะเป็น IP ของ Google Public DNS แล้ว</p>
<p style="text-align: left;">หรือใครจะใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4</div>
</pre>
<p>ก็จะได้ผลเหมือนกัน</p>
<p>6. สุดท้ายก็ทดลองเปิด Browser แล้วเข้าเว็บกันเลยครับผม</p>
<p>รายละเอียดเพิ่มเติม : <a href="http://code.google.com/speed/public-dns/" target="_blank">http://code.google.com/speed/public-dns/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/12/08/google-public-dns-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#หื่น : ดูวิว Yahoo บน Ubuntu ด้วย Gyachi (GyachE Imprived)</title>
		<link>http://imrgill.com/2009/11/26/how-to-install-gyachi-yahoo-messenger-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/26/how-to-install-gyachi-yahoo-messenger-on-ubuntu.html#comments</comments>
		<pubDate>Thu, 26 Nov 2009 12:11:38 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[gyachi]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[im]]></category>
		<category><![CDATA[instant messenger]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=377</guid>
		<description><![CDATA[โปรแกรมสำหรับ Chat Yahoo บน Ubuntu มีมากมายครับไม่ว่า Pidgin หรือ Empathy ก็สามารถใช้เล่นแทน Yahoo messenger ได้ทั้งนั้นแต่ถ้าจะใช้ Webcam ด้วยค่อนข้างจะหายาก ตัว yahoo สำหรับ linux เองก็เหมือนจะหยุดพัฒนาไปนานแล้ว วันนี้ผมเลยเอาโปรแกรม Gyachi มาแนะนำครับ รายละเอียดของโปรแกรมสามารถเข้าไปดูได้ที่ http://gyachi.sourceforge.net/ มาดูการติดตั้งบน ubuntu กันครับ ขั้นแรกเข้าไปดาวน์โหลดตัว gyachi ที่เป็น .deb ได้ที่ https://launchpad.net/~loell/+archive/ppa/+packages ผมใช้ karmic นะครับ ก็คลิกที่ gyachi &#8211; 1.2.2-2~karmic จากนั้นเราก็จะเห็นลิงค์ให้ดาวน์โหลดครับ gyachi_1.2.2-2~karmic_i386.deb ก็คลิกได้เลยไม่ต้องรอช้า โหลดมาแล้วก็ดับเบิลคลิก install ได้เลยครับ หรือจะใช้คำสั่งด้านล่างก็ได้ root@mrgill-laptop:~# dpkg -i gyachi_1.2.2-2~karmic_i386.deb Selecting previously deselected [...]]]></description>
			<content:encoded><![CDATA[<p>โปรแกรมสำหรับ Chat Yahoo บน Ubuntu มีมากมายครับไม่ว่า Pidgin หรือ Empathy ก็สามารถใช้เล่นแทน Yahoo messenger ได้ทั้งนั้นแต่ถ้าจะใช้ Webcam ด้วยค่อนข้างจะหายาก ตัว yahoo สำหรับ linux เองก็เหมือนจะหยุดพัฒนาไปนานแล้ว วันนี้ผมเลยเอาโปรแกรม Gyachi มาแนะนำครับ รายละเอียดของโปรแกรมสามารถเข้าไปดูได้ที่ <a href="http://gyachi.sourceforge.net/">http://gyachi.sourceforge.net/</a><strong> </strong></p>
<p><strong>มาดูการติดตั้งบน ubuntu กันครับ</strong><br />
ขั้นแรกเข้าไปดาวน์โหลดตัว gyachi ที่เป็น .deb ได้ที่ <a href="https://launchpad.net/~loell/+archive/ppa/+packages">https://launchpad.net/~loell/+archive/ppa/+packages</a> ผมใช้ karmic นะครับ ก็คลิกที่ gyachi &#8211; 1.2.2-2~karmic จากนั้นเราก็จะเห็นลิงค์ให้ดาวน์โหลดครับ <a href="https://launchpad.net/%7Eloell/+archive/ppa/+files/gyachi_1.2.2-2%7Ekarmic_i386.deb">gyachi_1.2.2-2~karmic_i386.deb</a> ก็คลิกได้เลยไม่ต้องรอช้า</p>
<p>โหลดมาแล้วก็ดับเบิลคลิก install ได้เลยครับ หรือจะใช้คำสั่งด้านล่างก็ได้</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# <span style="color: #ff0000;">dpkg -i gyachi_1.2.2-2~karmic_i386.deb</span>
Selecting previously deselected package gyachi.
(Reading database ... 179356 files and directories currently installed.)
Unpacking gyachi (from gyachi_1.2.2-2~karmic_i386.deb) ...
Setting up gyachi (1.2.2-2~karmic) ...
Processing triggers for desktop-file-utils ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...</div>
</pre>
<p><span id="more-377"></span><br />
ติดตั้งเสร็จแล้วก็มาใช้งานกันเลยคลิกที่ Applications &gt;&gt; Internet &gt;&gt; GYachE Improved</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2512/4135129475_6e24b3d294_o.png" alt="" width="510" height="440" />เมนู GYachE Improved</p>
<p style="text-align: left;">เมื่อคลิกแล้วก็จะมีหน้าจอให้เรา login</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/imrgill/4135129477/sizes/o/"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2796/4135129477_e5c3e5f40a_o.png" alt="" width="481" height="373" /></a>หน้าจอ login</p>
<p style="text-align: left;">ตรงนี้กรอก username ของ yahoo โดยที่ไม่ต้องใส่ @yahoo.com นะครับ จากนั้นก็กรอก password ลงไป ส่วน server ใช้ค่าที่โปรแกรมตั้งมาให้ได้เลยครับ กรอกข้อมูลเสร็จแล้วก็คลิกที่ Login ได้เลย</p>
<p style="text-align: left;">ล็อกอินเสร็จแล้วอยากคุยกับเพื่อนก็คลิกที่ Buddies ได้เลยครับ หากใครเคย add เพื่อนไว้ก็จะเป็น list ว่าใคร online อยู่บ้าง</p>
<p style="text-align: left;">มาถึงเรื่อง Webcam กันบ้าง การใช้งานก็คล้ายๆ กับ Yahoo messenger บน Windows ครับ หากต้องการเปิดกล้องของเราให้คนอื่นดูก็คลิกที่เมนู Action &gt;&gt; Start My Webcam</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2517/4135144189_b73a33b89e_o.png" alt="" width="394" height="419" />Start My Webcam</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2759/4135129479_965f4827e1_o.png" alt="" width="535" height="468" />ภาพจากกล้อง Webcam</p>
<p style="text-align: left;">หากต้องการดูกล้องของคนอื่นก็คลิกที่ Action &gt;&gt; View Webcam จากนั้นก็เอาไอดีของ(สาววิว)คนที่ต้องการจะดู มาใส่แล้วกด OK ได้เลยครับ</p>
<p style="text-align: left;">หวังว่าคงมีประโยชน์กับหาวิวทั้งหลาย อิอิ</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/26/how-to-install-gyachi-yahoo-messenger-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#หื่น : อยากดู Clip บน Ubuntu ทำไง?</title>
		<link>http://imrgill.com/2009/11/13/how-to-install-real-player-11-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/13/how-to-install-real-player-11-on-ubuntu.html#comments</comments>
		<pubDate>Fri, 13 Nov 2009 13:09:17 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[3gp]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[realplayer]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=369</guid>
		<description><![CDATA[ไม่ต้องพูดมากครับอยากดูไฟล์ .3gp ทำไง ก็โหลดตัว Real Player มาลงเลยครับ โดยเข้าไปที่ http://www.real.com/linux คลิก Download RealPlayer โลดครับ จะได้ไฟล์ RealPlayer11GOLD.bin มา(ผม save ไว้ที่ Desktop) ขั้นตอนการติดตั้ง 1. เปิด Terminal ขึ้นมา (เมนู Applications &#62;&#62; Accessories &#62;&#62; Terminal) 2. เปลี่ยนตำแหน่ง Directory ไปที่ Desktop mrgill@mrgill-laptop:~$ cd Desktop/ mrgill@mrgill-laptop:~/Desktop$ ls RealPlayer11GOLD.bin 3. กำหนด Permission ไฟล์ให้สามารถรันได้ mrgill@mrgill-laptop:~/Desktop$ chmod +x RealPlayer11GOLD.bin 4. แล้วก็มาติดตั้งกันเลย mrgill@mrgill-laptop:~/Desktop$ sudo ./RealPlayer11GOLD.bin [sudo] [...]]]></description>
			<content:encoded><![CDATA[<p>ไม่ต้องพูดมากครับอยากดูไฟล์ .3gp ทำไง ก็โหลดตัว Real Player มาลงเลยครับ<br />
โดยเข้าไปที่ <a href="http://www.real.com/linux">http://www.real.com/linux</a> คลิก <a href="http://www.real.com/realcom/R?href=http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.bin" target="_blank">Download RealPlayer</a> โลดครับ จะได้ไฟล์ RealPlayer11GOLD.bin มา(ผม save ไว้ที่ Desktop)</p>
<p>ขั้นตอนการติดตั้ง</p>
<p>1. เปิด Terminal ขึ้นมา (เมนู Applications &gt;&gt; Accessories &gt;&gt; Terminal)<br />
2. เปลี่ยนตำแหน่ง Directory ไปที่ Desktop</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ cd Desktop/
mrgill@mrgill-laptop:~/Desktop$ ls
RealPlayer11GOLD.bin</div>
</pre>
<p><span id="more-369"></span></p>
<p>3. กำหนด Permission ไฟล์ให้สามารถรันได้</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~/Desktop$ chmod +x RealPlayer11GOLD.bin</div>
</pre>
<p>4. แล้วก็มาติดตั้งกันเลย</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~/Desktop$ sudo ./RealPlayer11GOLD.bin
[sudo] password for mrgill:
Extracting files for Helix installation........................

Welcome to the RealPlayer (11.0.2.1744) Setup for UNIX
Setup will help you get RealPlayer running on your computer.
Press [Enter] to continue...
Enter the complete path to the directory where you want
RealPlayer to be installed.  You must specify the full
pathname of the directory and have write privileges to
the chosen directory.
Directory:  [/opt/real/RealPlayer]: 

You have selected the following RealPlayer configuration:

Destination:            /opt/real/RealPlayer

Enter [F]inish to begin copying files, or [P]revious to go
back to the previous prompts: [F]: 

Copying RealPlayer files...Path setup done.
Succeeded.
installing application icons resource...
installing document icons resource...
............Succeeded.
.Configuring Mozilla...
Installing .mo locale files...
.Setting selinux context...
Succeeded.

RealPlayer installation is complete.
Cleaning up installation files...
Done.</div>
</pre>
<p>เรียกใช้งานโปรแกรม RealPlayer จากเมนู Applications &gt;&gt; Sound &amp; Video &gt;&gt; RealPlayer 11<br />
หน้าตา RealPlayer บน Ubuntu</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" title="RealPlayer11" src="http://farm3.static.flickr.com/2618/4100670076_7c34c1bab2_o.png" alt="" width="322" height="357" /></p>
<p style="text-align: center;">RealPlayer 11</p>
<p>เรียบร้อยครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/13/how-to-install-real-player-11-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหาใช้คำสั่ง sudo ไม่ได้บน ubuntu</title>
		<link>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 10 Nov 2009 15:58:37 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[trobleshooting]]></category>
		<category><![CDATA[usermod]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=343</guid>
		<description><![CDATA[จะทำอย่างไรเมื่อคุณเผลอไปเปลี่ยน group ของ user ปัจจุบันของคุณ ตัวอย่างผมเผลอไปสั่ง root@mrgill-laptop:~# usermod -G vboxusers mrgill นั้นก็มีความหมายเหมือน usermod -g vboxusers mrgill เลยครับเพียง แค่ผมลืมใส่ -a เข้าไป ทำให้เกิดปัญหาเลย ปัญหาคือมันทำให้ผมหลุดออกจาก group ที่เป็น admin ทำให้ผมสั่ง sudo ไม่ได้ mrgill@mrgill-laptop:~$ sudo -s [sudo] password for mrgill: mrgill is not in the sudoers file. This incident will be reported. mrgill@mrgill-laptop:~$ วิธีแก้ก็ต้องเข้าไปใน recovery mode แล้วเข้าไปแก้ในไฟล์ /etc/group ครับ หรือจะใช้คำสั่งด้านล้างก็ได้ [...]]]></description>
			<content:encoded><![CDATA[<p>จะทำอย่างไรเมื่อคุณเผลอไปเปลี่ยน group ของ user ปัจจุบันของคุณ ตัวอย่างผมเผลอไปสั่ง</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G vboxusers mrgill</div>
</pre>
<p>นั้นก็มีความหมายเหมือน usermod -g vboxusers mrgill เลยครับเพียง แค่ผมลืมใส่ -a เข้าไป ทำให้เกิดปัญหาเลย ปัญหาคือมันทำให้ผมหลุดออกจาก group ที่เป็น admin ทำให้ผมสั่ง sudo ไม่ได้ </p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo -s
[sudo] password for mrgill:
mrgill is not in the sudoers file.  This incident will be reported.
mrgill@mrgill-laptop:~$</div>
</pre>
<p>วิธีแก้ก็ต้องเข้าไปใน recovery mode แล้วเข้าไปแก้ในไฟล์ /etc/group ครับ หรือจะใช้คำสั่งด้านล้างก็ได้</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G adm,admin -a mrgill</div>
</pre>
<p>ขั้นต้นแค่ add user ของคุณให้อยู่ใน group adm กับ admin ก็พอครับ แล้วค่อยมา add group อื่นๆ ตามในหน้า gnome ก็ได้<br />
ผลที่ได้คือ</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo -s
[sudo] password for mrgill:
root@mrgill-laptop:~#</div>
</pre>
<p>แล้วก็มา add group อื่นๆ ตามเข้าไป</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# usermod -G adm,admin,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lpadmin -a mrgill</div>
</pre>
<p>หวังว่าคงมีประโยชน์กับผู้อ่าน</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/10/how-to-troubleshooting-when-cant-use-sudo-command-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>จะเอา /var/lib/mysql บน Ubuntu ไปไว้ที่อื่นทำอย่างไร</title>
		<link>http://imrgill.com/2009/11/09/how-to-move-mysql-data-folder-to-another-path.html</link>
		<comments>http://imrgill.com/2009/11/09/how-to-move-mysql-data-folder-to-another-path.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 07:57:58 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=332</guid>
		<description><![CDATA[ต้องการเอา /var/lib/mysql ไปไว้ที่อื่นครับเพราะกลัวเวลาเครื่องมีปัญหาอาจทำให้ข้อมูลหายได้เพราะ /var/lib/mysql อยู่ใน / เลย(ไม่ได้แบ่ง partition แยกออกมา) วิธีแรกที่ผมทำเลยคือ root@ubuntu:~# mv /var/lib/mysql /data/mysql root@ubuntu:~# ln -s /data/mysql /var/lib/mysql ก็คือ move จาก /var/lib/mysql ไปไว้ที่ /data/mysql ผลคือตอน restart mysql มันจะฟ้องว่า root@ubuntu:~# /etc/init.d/mysql restart * Stopping MySQL database server mysqld [ OK ] * Starting MySQL database server mysqld [fail] ไปใน /var/log/syslog ก็เจอ error ประมาณนี้ แล้วจะทำไงดี root@ubuntu:~# [...]]]></description>
			<content:encoded><![CDATA[<p>ต้องการเอา /var/lib/mysql ไปไว้ที่อื่นครับเพราะกลัวเวลาเครื่องมีปัญหาอาจทำให้ข้อมูลหายได้เพราะ /var/lib/mysql อยู่ใน / เลย(ไม่ได้แบ่ง partition แยกออกมา) วิธีแรกที่ผมทำเลยคือ</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# mv /var/lib/mysql /data/mysql
root@ubuntu:~# ln -s /data/mysql /var/lib/mysql</div>
</pre>
<p>ก็คือ move จาก /var/lib/mysql ไปไว้ที่ /data/mysql ผลคือตอน restart mysql มันจะฟ้องว่า</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# /etc/init.d/mysql restart
* Stopping MySQL database server mysqld                                 [ OK ]
* Starting MySQL database server mysqld                                 [fail]</div>
</pre>
<p>ไปใน /var/log/syslog ก็เจอ error ประมาณนี้ แล้วจะทำไงดี</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# tail -f /var/log/syslog
Nov  9 02:36:29 ubuntu kernel: [ 2394.732730] type=1503 audit(1257752189.048:131): operation="open" pid=5484 parent=5483 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov  9 02:36:30 ubuntu kernel: [ 2395.745479] type=1503 audit(1257752190.061:132): operation="open" pid=5494 parent=5493 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov  9 02:36:31 ubuntu kernel: [ 2396.761345] type=1503 audit(1257752191.080:133): operation="open" pid=5504 parent=5503 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov  9 02:36:31 ubuntu kernel: [ 2396.774493] type=1503 audit(1257752191.092:134): operation="open" pid=5513 parent=5512 profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov  9 02:36:31 ubuntu /etc/init.d/mysql[5520]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Nov  9 02:36:31 ubuntu /etc/init.d/mysql[5520]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Nov  9 02:36:31 ubuntu /etc/init.d/mysql[5520]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Nov  9 02:36:31 ubuntu /etc/init.d/mysql[5520]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!</div>
</pre>
<p><span id="more-332"></span><br />
ผมไปเจอคำตอบที่นี่ครับ<br />
<a href="http://forums.mysql.com/read.php?24,211657,225700#msg-225700">http://forums.mysql.com/read.php?24,211657,225700#msg-225700</a><br />
เขาบอกว่าให้เข้าไปแก้ไฟล์ /etc/apparmor.d/usr.sbin.mysqld ผมก็จัดไป</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# /etc/apparmor.d/usr.sbin.mysqld</div>
</pre>
<p>โดยเปลี่ยนจาก</p>
<pre>
<div class="codesnip-container" ># vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include 

/usr/sbin/mysqld {
  #include
  #include
  #include
  #include
  #include 

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/my.cnf r,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
<span style="color: #ff0000;">  /var/lib/mysql/ r,
  /var/lib/mysql/** rwk,</span>
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
}</div>
</pre>
<p>ให้เปลี่ยนเป็น</p>
<pre>
<div class="codesnip-container" ># vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include 

/usr/sbin/mysqld {
  #include
  #include
  #include
  #include
  #include 

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/my.cnf r,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
<span style="color: #ff0000;">  /data/mysql/ r,
  /data/mysql/** rwk,</span>
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
}</div>
</pre>
<p>แต่อย่าเพิ่งลบ Symbolic Link นะครับยังจำเป็นต้องใช้<br />
จากนั้นก็สั่ง Restart Apparmor โดย</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# /etc/init.d/apparmor restart</div>
</pre>
<p>จากนั้นลองสั่ง Restart Mysql อีกครั้ง</p>
<pre>
<div class="codesnip-container" >root@ubuntu:~# /etc/init.d/mysql restart
 * Stopping MySQL database server mysqld                                [ OK ]
 * Starting MySQL database server mysqld                                [ OK ]
 * Checking for corrupt, not cleanly closed and upgrade needing tables.</div>
</pre>
<p>ก็คงจบแต่เพียงเท่านี้</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/09/how-to-move-mysql-data-folder-to-another-path.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>จะเข้า Recovery Mode บน Ubuntu 9.10 Karmic Koala ยังไง</title>
		<link>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html</link>
		<comments>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 00:13:00 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub2]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=323</guid>
		<description><![CDATA[สวัสดีตอนเช้าครับ ฮาๆ ยังไม่ได้นอนเลย เมื่อคืนนั่งลง Ubuntu Server ให้เพื่อนทั้งคืนจนถึงเช้า นั่งทำให้ Ubuntu Server หน้าตาเหมือน Ubuntu Desktop วิธีการก็ง่ายๆ ครับ $ sudo apt-get install ubuntu-desktop ก็ลงไว้ให้เพื่อนมันใช้งานง่ายๆ ครับ ลงไปลงมามีปัญหาจำเป็นต้องเข้า Recovery Mode เอ๊ะแต่เจ้า 9.10 นี่มันเข้า Boot Menu ของ Grub2 ยังไงหวา ปกติมันวิ่งๆ แล้วก็เข้าหน้า login เลย กด Esc เหมือน 9.04 แล้วก็ยังเข้าไม่ได้ ก็ลอง Search ใน Google ดูก็พบคำตอบครับคือต้องกด Shift ค้างไว้ตอน Boot มันก็จะแสดงหน้าเมนูของ Grub2 มาให้เลือกนั้นเอง]]></description>
			<content:encoded><![CDATA[<p>สวัสดีตอนเช้าครับ ฮาๆ ยังไม่ได้นอนเลย เมื่อคืนนั่งลง Ubuntu Server ให้เพื่อนทั้งคืนจนถึงเช้า นั่งทำให้ Ubuntu Server หน้าตาเหมือน Ubuntu Desktop วิธีการก็ง่ายๆ ครับ</p>
<pre>
<div class="codesnip-container" >$ sudo apt-get install ubuntu-desktop</div>
</pre>
<p>ก็ลงไว้ให้เพื่อนมันใช้งานง่ายๆ ครับ ลงไปลงมามีปัญหาจำเป็นต้องเข้า Recovery Mode เอ๊ะแต่เจ้า 9.10 นี่มันเข้า Boot Menu ของ Grub2 ยังไงหวา ปกติมันวิ่งๆ แล้วก็เข้าหน้า login เลย กด Esc เหมือน 9.04 แล้วก็ยังเข้าไม่ได้ ก็ลอง Search ใน Google ดูก็พบคำตอบครับคือต้องกด <strong><em>Shift</em></strong> ค้างไว้ตอน Boot มันก็จะแสดงหน้าเมนูของ Grub2 มาให้เลือกนั้นเอง</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/09/how-to-ubuntu-910-boot-as-recovery-mode.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง FileZilla FTP Client บน Ubuntu</title>
		<link>http://imrgill.com/2009/11/04/how-to-install-filezilla-ftp-client-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/04/how-to-install-filezilla-ftp-client-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:23:32 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[filezilla]]></category>
		<category><![CDATA[ftp client]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=311</guid>
		<description><![CDATA[เพิ่งเปิดเว็บได้ไม่นานครับ plugin สำหรับ wordpress ยังไม่ลงตัว บางทีก็ต้องนั่งแก้โน้นนี่บ้าง จะแก้ไขหรือ upload อะไรทีก็ต้องใช้ FTP ซึ่งตัว FTP Client ที่ผมใช้คือ Filezilla ครับ ติดตั้งง่าย ใช้งานง่าย แถมฟรีอีกด้วย การติดตั้งก็ง่ายอย่างที่บอกไว้ครับแค่ $ sudo apt-get install filezilla ติดตั้งแล้วเรียกโปรแกรม Filezilla โดยคลิกที่เมนู Applications &#62;&#62; Internet &#62;&#62; FileZilla การเรียกโปรแกรม FileZilla หน้าตาโปรแกรม FileZilla หน้าจอหลัก FileZilla Drag and Drop ได้เหมือนโปรแกรม FTP ทั่วไปได้เลยครับ ลองทำไปใช้กันดู]]></description>
			<content:encoded><![CDATA[<p>เพิ่งเปิดเว็บได้ไม่นานครับ plugin สำหรับ wordpress ยังไม่ลงตัว บางทีก็ต้องนั่งแก้โน้นนี่บ้าง จะแก้ไขหรือ upload อะไรทีก็ต้องใช้ FTP ซึ่งตัว FTP Client ที่ผมใช้คือ Filezilla ครับ ติดตั้งง่าย ใช้งานง่าย แถมฟรีอีกด้วย</p>
<p>การติดตั้งก็ง่ายอย่างที่บอกไว้ครับแค่</p>
<pre>
<div class="codesnip-container" >$ sudo apt-get install filezilla</div>
</pre>
<p style="text-align: left;">ติดตั้งแล้วเรียกโปรแกรม Filezilla โดยคลิกที่เมนู Applications &gt;&gt; Internet &gt;&gt; FileZilla</p>
<div style="text-align: right;"><span id="more-311"></span></div>
<p><a href="http://www.flickr.com/photos/imrgill/4072645204/sizes/o/"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2558/4072645204_6eaec7616b_o.png" alt="" width="465" height="230" /></a></p>
<p style="text-align: center;">การเรียกโปรแกรม FileZilla</p>
<p><!-- wp_ad_camp_2 --></p>
<p style="text-align: left;">หน้าตาโปรแกรม FileZilla</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/imrgill/4072682070/sizes/o/"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2574/4072682070_c45df416d0.jpg" alt="" width="500" height="432" /></a>หน้าจอหลัก FileZilla</p>
<p style="text-align: left;">Drag and Drop ได้เหมือนโปรแกรม FTP ทั่วไปได้เลยครับ ลองทำไปใช้กันดู</p>
<p><!-- wp_ad_camp_1 --></p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/04/how-to-install-filezilla-ftp-client-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emesene สำหรับคนรัก MSN</title>
		<link>http://imrgill.com/2009/11/01/how-to-install-emesene-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/11/01/how-to-install-emesene-on-ubuntu.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:07:26 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amsn]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[emesene]]></category>
		<category><![CDATA[im]]></category>
		<category><![CDATA[msn]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=276</guid>
		<description><![CDATA[ผมเคยเขียนบทความเรื่อง aMSN ทางเลือกใหม่สำหรับคนรัก MSN วันนี้ลองตัว Emesene ครับก็เป็น msn client อีกตัวซึ่งน่าสนใจดี เพื่อนๆ สามารถลองติดตั้งกันได้ง่ายๆ ครับโดย $ sudo apt-get install emesene ติดตั้งเสร็จแล้วก็เรียกโปรแกรม emesene ได้จากเมนู Applications &#62;&#62; Internet &#62;&#62; Emesene Emesene launcher หน้าตาของ Emesene หน้า Login Contact lists Chat windows โดยรวมก็สวยงาม เรียบง่าย น่าใช้ดีครับ มีฟังก์ชันการทำงานครบครัน ลองนำไปใช้กันดูครับ]]></description>
			<content:encoded><![CDATA[<p>ผมเคยเขียนบทความเรื่อง <a href="http://learners.in.th/blog/mrgill/64489">aMSN ทางเลือกใหม่สำหรับคนรัก MSN</a> วันนี้ลองตัว Emesene ครับก็เป็น msn client อีกตัวซึ่งน่าสนใจดี เพื่อนๆ สามารถลองติดตั้งกันได้ง่ายๆ ครับโดย</p>
<pre>
<div class="codesnip-container" >$ sudo apt-get install emesene</div>
</pre>
<p style="text-align: left;">ติดตั้งเสร็จแล้วก็เรียกโปรแกรม emesene ได้จากเมนู Applications &gt;&gt; Internet &gt;&gt; Emesene</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/imrgill/4064006936/"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2714/4064006936_b7a8945ddb_o.png" alt="" width="462" height="240" /></a>Emesene launcher</p>
<div style="text-align: right;"><span id="more-276"></span></div>
<p><!-- wp_ad_camp_2 --></p>
<p style="text-align: left;">หน้าตาของ Emesene</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm4.static.flickr.com/3505/4063230265_244dfe8576_o.png" alt="" width="294" height="642" /><br />
หน้า Login</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm4.static.flickr.com/3533/4063979636_e56f008860_o.png" alt="" width="293" height="641" /><br />
Contact lists</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2719/4063234741_02f816b0de_o.png" alt="" width="451" height="502" /><br />
Chat windows</p>
<p style="text-align: left;">โดยรวมก็สวยงาม เรียบง่าย น่าใช้ดีครับ มีฟังก์ชันการทำงานครบครัน ลองนำไปใช้กันดูครับ</p>
<p><!-- wp_ad_camp_1 --></p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/11/01/how-to-install-emesene-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
