<?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>MEMOBALL.info &#187; Linux</title>
	<atom:link href="http://www.memoball.info/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.memoball.info</link>
	<description>All of my Memories</description>
	<lastBuildDate>Thu, 22 Jul 2010 06:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>http proxy สำหรับ apt-get</title>
		<link>http://www.memoball.info/07/http-proxy-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a-apt-get/</link>
		<comments>http://www.memoball.info/07/http-proxy-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a-apt-get/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 03:27:20 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=474</guid>
		<description><![CDATA[ในกรณีที่เครื่องของเราอยู่หลังเครื่อง proxy เช่น เครื่องใน office ทั่วไป จะไม่สามารถใช้งาน apt-get ได้เนื่องจาก apt-get ต้องไปดึง file ผ่าน http ซึ่งไม่สามารวิ่งทะลุผ่าน gateway ได้โดยตรง
apt-get จึงต้องวิ่งผ่าน proxy โดยสามารถทำได้โดยเติม ใน file .bashrc ใน home directory

# apt-get proxy
export http_proxy=http://[proxy ID or domain]:[port]/
export ftp_proxy=ftp://[proxy ID or domain]:[port]/

อย่าลืม log in ใหม่
แต่ในกรณีจากการทดสอบ จะไม่สามารถใช้ sudo ได้ เพราะมันจะไม่โหลด environment ของ user ของเราไปด้วย ดังนั้นจึงต้องเข้าด้วย sudo -s เพื่อไปเป็น root ก่อน
เมื่อเข้าไปแล้วลอง export environment [...]]]></description>
			<content:encoded><![CDATA[<p>ในกรณีที่เครื่องของเราอยู่หลังเครื่อง proxy เช่น เครื่องใน office ทั่วไป จะไม่สามารถใช้งาน apt-get ได้เนื่องจาก apt-get ต้องไปดึง file ผ่าน http ซึ่งไม่สามารวิ่งทะลุผ่าน gateway ได้โดยตรง<br />
apt-get จึงต้องวิ่งผ่าน proxy โดยสามารถทำได้โดยเติม ใน file <strong>.bashrc </strong>ใน home directory<span id="more-474"></span></p>
<pre>
# apt-get proxy
export http_proxy=http://[proxy ID or domain]:[port]/
export ftp_proxy=ftp://[proxy ID or domain]:[port]/
</pre>
<p>อย่าลืม log in ใหม่<br />
แต่ในกรณีจากการทดสอบ จะไม่สามารถใช้ sudo ได้ เพราะมันจะไม่โหลด environment ของ user ของเราไปด้วย ดังนั้นจึงต้องเข้าด้วย sudo -s เพื่อไปเป็น root ก่อน<br />
เมื่อเข้าไปแล้วลอง export environment ออกมาดู จะเป็น http_proxy เป็นค่าที่เราใส่เข้าไป</p>
<pre>
user# export
</pre>
<p>จะสังเกตว่าปลายทางที่เราไปดึงข้อมูลจะเป็น ip หรือ domain ของ proxy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/07/http-proxy-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a-apt-get/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memcache &amp; MySQL PHP Session Handler</title>
		<link>http://www.memoball.info/03/memcache-mysql-php-session-handler/</link>
		<comments>http://www.memoball.info/03/memcache-mysql-php-session-handler/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 04:19:56 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=457</guid>
		<description><![CDATA[ช่วงนี้กำลังหาโซลูชั้นเพื่อที่จะทำ centralized session ตรงกลาง เพราะเนื่องจากเริ่มมี web application หลายตัว และในบางส่วนจำเป็นต้องมีการใช้ session ร่วมกัน จึงหาการแก้ปัญหาที่ตอบโจทย์ดังกล่าวว่าจะมีการรวม session มาไว้ที่เดียวกันและมีประสิทธิภาพสูงสุดได้อย่างไร ซึ่งในโซลูชั่นสุดท้ายผมคงต้องขอไม่พูดถึง เพี่อเป็นความปลอดภัยของระบบ แต่จะกล่าวแค่เฉพาะแนวคิดเฉยๆ ครับ

การทำ centralized session หรือ เซสชั่นกลางนั้น เราสามารถทำได้ง่ายๆ โดยการหาตัวมารับหน้าที่เป็น data pool หรือที่เก็บรวบรวมข้อมูลตรงกลาง ซึ่งที่ผมจะนำไปใช้คือ MySQL สำหรับ บรรจุข้อมูลตรงกลาง ทุกเครื่องสามารถนำไปใช้งานได้ โดยเป็นข้อมูลเดียวกัน แต่เนื่องจาก MySQL จะทำการ update cache ทุกครั้งที่กำการอัพเดตข้อมูล
http://pureform.wordpress.com/2009/04/08/memcache-mysql-php-session-handler/
This is protected content. Please Login or Register for access.ช่วงนี้กำลังหาโซลูชั้นเพื่อที่จะทำ centralized session ตรงกลาง เพราะเนื่องจากเริ่มมี web application หลายตัว [...]]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้กำลังหาโซลูชั้นเพื่อที่จะทำ centralized session ตรงกลาง เพราะเนื่องจากเริ่มมี web application หลายตัว และในบางส่วนจำเป็นต้องมีการใช้ session ร่วมกัน จึงหาการแก้ปัญหาที่ตอบโจทย์ดังกล่าวว่าจะมีการรวม session มาไว้ที่เดียวกันและมีประสิทธิภาพสูงสุดได้อย่างไร ซึ่งในโซลูชั่นสุดท้ายผมคงต้องขอไม่พูดถึง เพี่อเป็นความปลอดภัยของระบบ แต่จะกล่าวแค่เฉพาะแนวคิดเฉยๆ ครับ<br />
<span id="more-457"></span><br />
การทำ centralized session หรือ เซสชั่นกลางนั้น เราสามารถทำได้ง่ายๆ โดยการหาตัวมารับหน้าที่เป็น data pool หรือที่เก็บรวบรวมข้อมูลตรงกลาง ซึ่งที่ผมจะนำไปใช้คือ MySQL สำหรับ บรรจุข้อมูลตรงกลาง ทุกเครื่องสามารถนำไปใช้งานได้ โดยเป็นข้อมูลเดียวกัน แต่เนื่องจาก MySQL จะทำการ update cache ทุกครั้งที่กำการอัพเดตข้อมูล</p>
<p><a href="http://pureform.wordpress.com/2009/04/08/memcache-mysql-php-session-handler/">http://pureform.wordpress.com/2009/04/08/memcache-mysql-php-session-handler/</a><br />
<br/><div id="wp-private-box"><b>This is protected content. Please <a href="http://www.memoball.info/wp-login.php">Login</a> or <a href="http://www.memoball.info/wp-register.php">Register</a> for access.</b></div><br/><p>ช่วงนี้กำลังหาโซลูชั้นเพื่อที่จะทำ centralized session ตรงกลาง เพราะเนื่องจากเริ่มมี web application หลายตัว และในบางส่วนจำเป็นต้องมีการใช้ session ร่วมกัน จึงหาการแก้ปัญหาที่ตอบโจทย์ดังกล่าวว่าจะมีการรวม session มาไว้ที่เดียวกันและมีประสิทธิภาพสูงสุดได้อย่างไร ซึ่งในโซลูชั่นสุดท้ายผมคงต้องขอไม่พูดถึง เพี่อเป็นความปลอดภัยของระบบ แต่จะกล่าวแค่เฉพาะแนวคิดเฉยๆ ครับ<br />
<span id="more-457"></span><br />
การทำ centralized session หรือ เซสชั่นกลางนั้น เราสามารถทำได้ง่ายๆ โดยการหาตัวมารับหน้าที่เป็น data pool หรือที่เก็บรวบรวมข้อมูลตรงกลาง ซึ่งที่ผมจะนำไปใช้คือ MySQL สำหรับ บรรจุข้อมูลตรงกลาง ทุกเครื่องสามารถนำไปใช้งานได้ โดยเป็นข้อมูลเดียวกัน แต่เนื่องจาก MySQL จะทำการ update cache ทุกครั้งที่กำการอัพเดตข้อมูล</p>
<p><a href="http://pureform.wordpress.com/2009/04/08/memcache-mysql-php-session-handler/">http://pureform.wordpress.com/2009/04/08/memcache-mysql-php-session-handler/</a><br />
<!--protected--></p>
<pre>
memcache = new Memcache;
            $this-&gt;lifeTime = intval(ini_get("session.gc_maxlifetime"));
            $this-&gt;initSessionData = null;
            $this-&gt;memcache-&gt;connect("127.0.0.1",11211);

            return true;
        }

        function open($savePath,$sessionName) {
            $sessionID = session_id();
            if ($sessionID !== "") {
                $this-&gt;initSessionData = $this-&gt;read($sessionID);
            }

            return true;
        }

        function close() {
            $this-&gt;lifeTime = null;
            $this-&gt;memcache = null;
            $this-&gt;initSessionData = null;

            return true;
        }

        function read($sessionID) {
            $data = $this-&gt;memcache-&gt;get($sessionID);
            if ($data === false) {
                # Couldn't find it in MC, ask the DB for it

                $sessionIDEscaped = mysql_real_escape_string($sessionID);
                $r = mysql_query("SELECT `sessionData` FROM `tblsessions` WHERE `sessionID`='$sessionIDEscaped'");
                if (is_resource($r) &amp;&amp; (mysql_num_rows($r) !== 0)) {
                    $data = mysql_result($r,0,"sessionData");
                }

                # Refresh MC key: [Thanks Cal <img src='http://www.memoball.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ]
                $this-&gt;memcache-&gt;set($sessionID,$data,false,$this-&gt;lifeTime);
            }

            # The default miss for MC is (bool) false, so return it
            return $data;
        }

        function write($sessionID,$data) {
            # This is called upon script termination or when session_write_close() is called, which ever is first.
            $result = $this-&gt;memcache-&gt;set($sessionID,$data,false,$this-&gt;lifeTime);

            if ($this-&gt;initSessionData !== $data) {
                $sessionID = mysql_real_escape_string($sessionID);
                $sessionExpirationTS = ($this-&gt;lifeTime + time());
                $sessionData = mysql_real_escape_string($data);

                $r = mysql_query("REPLACE INTO `tblsessions` (`sessionID`,`sessionExpirationTS`,`sessionData`) VALUES('$sessionID',$sessionExpirationTS,'$sessionData')");
                $result = is_resource($r);
            }

            return $result;
        }

        function destroy($sessionID) {
            # Called when a user logs out...
            $this-&gt;memcache-&gt;delete($sessionID);
            $sessionID = mysql_real_escape_string($sessionID);
            mysql_query("DELETE FROM `tblsessions` WHERE `sessionID`='$sessionID'");

            return true;
        }

        function gc($maxlifetime) {
            # We need this atomic so it can clear MC keys as well...
            $r = mysql_query("SELECT `sessionID` FROM `tblsessions` WHERE `sessionExpirationTS`lifeTime));
            if (is_resource($r) &amp;&amp; (($rows = mysql_num_rows($r)) !== 0)) {
                for ($i=0;$idestroy(mysql_result($r,$i,"sessionID"));
                }
            }

            return true;
        }
    }

    ini_set("session.gc_maxlifetime",60 * 30); # 30 minutes
    session_set_cookie_params(0,"/",".myapp.com",false,true);
    session_name("MYAPPSESSION");
    $sessionHandler = new SessionHandler();
    session_set_save_handler(array (&amp;$sessionHandler,"open"),array (&amp;$sessionHandler,"close"),array (&amp;$sessionHandler,"read"),array (&amp;$sessionHandler,"write"),array (&amp;$sessionHandler,"destroy"),array (&amp;$sessionHandler,"gc"));
    session_start();
?&gt;
</pre>
<p><!--protected--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/03/memcache-mysql-php-session-handler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinkpad mouse x200si trackpoint</title>
		<link>http://www.memoball.info/02/thinkpad-mouse-x200si-trackpoint/</link>
		<comments>http://www.memoball.info/02/thinkpad-mouse-x200si-trackpoint/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:48:17 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=444</guid>
		<description><![CDATA[setup การใช้ thinkpad ครับ http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

This is protected content. Please Login or Register for access.
]]></description>
			<content:encoded><![CDATA[<p>setup การใช้ thinkpad ครับ <a href="http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint">http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint</a><br />
<span id="more-444"></span><br />
<br/><div id="wp-private-box"><b>This is protected content. Please <a href="http://www.memoball.info/wp-login.php">Login</a> or <a href="http://www.memoball.info/wp-register.php">Register</a> for access.</b></div><br/><!--/protected--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/thinkpad-mouse-x200si-trackpoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง (Install) Samba Server บน Ubuntu</title>
		<link>http://www.memoball.info/10/%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-install-samba-server-%e0%b8%9a%e0%b8%99-ubuntu/</link>
		<comments>http://www.memoball.info/10/%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-install-samba-server-%e0%b8%9a%e0%b8%99-ubuntu/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 17:46:45 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=416</guid>
		<description><![CDATA[นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu
วิธีทำ ก็ง่ายแสนง่าย  ดังนี้


จาก WikiBall


			
นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu





เนื้อหา


1 ติดตั้ง
2 Authentication

2.1 Config
2.2 Create a Samba User

2.2.1 สร้าง smb password
2.2.2 สร้าง smbusers file




3 สร้าง directory




 if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } 

  ติดตั้ง 
ก่อนอื่น ลง samba ก่อน


  [...]]]></description>
			<content:encoded><![CDATA[<p>นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu<br />
วิธีทำ ก็ง่ายแสนง่าย  ดังนี้<br />
<span id="more-416"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Install_Samba_Server_%E0%B8%9A%E0%B8%99_Ubuntu">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<p>นำความรู้เก่าที่การเปิดใช้งานระบบ file sharing บนวินโดว์ หรือ samba บนเครื่อง Ubuntu
</p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87" ref="toc"><span class="tocnumber">1</span> <span class="toctext">ติดตั้ง</span></a></li>
<li class="toclevel-1"><a href="./#Authentication" ref="toc"><span class="tocnumber">2</span> <span class="toctext">Authentication</span></a>
<ul>
<li class="toclevel-2"><a href="./#Config" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">Config</span></a></li>
<li class="toclevel-2"><a href="./#Create_a_Samba_User" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">Create a Samba User</span></a>
<ul>
<li class="toclevel-3"><a href="./#.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_smb_password" ref="toc"><span class="tocnumber">2.2.1</span> <span class="toctext">สร้าง smb password</span></a></li>
<li class="toclevel-3"><a href="./#.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_smbusers_file" ref="toc"><span class="tocnumber">2.2.2</span> <span class="toctext">สร้าง smbusers file</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_directory" ref="toc"><span class="tocnumber">3</span> <span class="toctext">สร้าง directory</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> ติดตั้ง </span></h2>
<p>ก่อนอื่น ลง samba ก่อน
</p>
<pre>
    sudo apt-get install samba smbfs
</pre>
<p><a name="Authentication" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Authentication </span></h2>
<p><a name="Config" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Config </span></h3>
<pre>    sudo vim /etc/samba/smb.conf
</pre>
<pre>
    ####### Authentication #######

    # “security = user” is always a good idea. This will require a Unix account
    # in this server for every user accessing the server. See
    # /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
    # in the samba-doc package for details.
   &nbsp;;  security = user
</pre>
<p>เอา comment ออก เพิ่มไปอีกบรรทัดนึง
</p>
<pre>
    security = user
    username map = /etc/samba/smbusers
</pre>
<p><a name="Create_a_Samba_User" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Create a Samba User </span></h3>
<p><a name=".E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_smb_password" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> สร้าง smb password </span></h4>
<pre>
    sudo smbpasswd -a &lt;username&gt;</pre>
<p><a name=".E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_smbusers_file" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> สร้าง smbusers file </span></h4>
<pre>
    sudo vim /etc/samba/smbusers</pre>
<p>ถ้าต้องการใช้ username ให้เหมือนที่ใช้ username ของ Ubuntu
</p>
<pre>&lt;ubuntuusername&gt; = “&lt;samba username&gt;” </pre>
<p>หรือถ้าต้องการสร้าง username ขึ้นมาใหม่โดยไม่ผูกกับ OS
</p>
<pre>    &lt;username&gt; = “&lt;username&gt;”</pre>
<p><a name=".E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_directory" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> สร้าง directory </span></h2>
<pre> sudo vim smb.conf</pre>
<pre>
[dirname]
   comment = The ball's comment
   path = /path/to/share/file
   browseable = yes
   read only = no
   guest ok = no
   write list = root, &lt;username&gt;
</pre>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 38/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:74-0!1!0!!th!2!edit=0 and timestamp 20091009174633 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Install_Samba_Server_%E0%B8%9A%E0%B8%99_Ubuntu">http://wiki.memoball.info/index.php/Install_Samba_Server_บน_Ubuntu</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Ubuntu&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Ubuntu (ยังไม่ได้สร้าง)">Ubuntu</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/10/%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-install-samba-server-%e0%b8%9a%e0%b8%99-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การติดตั้ง SVN &amp; Trac ร่วมกับ Apache ใน Ubuntu</title>
		<link>http://www.memoball.info/10/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-svn-trac-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-apache-%e0%b9%83%e0%b8%99-ubun/</link>
		<comments>http://www.memoball.info/10/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-svn-trac-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-apache-%e0%b9%83%e0%b8%99-ubun/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 09:11:46 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=411</guid>
		<description><![CDATA[ช่วงนี้กำลังปรับปรุงระบบ SVN ใหม่อยู่ โดยจะให้การทำ authen ผ่าน .htaccess เดียวกันทั้ง SVN &#38; Trac
จึงได้นำ SVN และ Trac มาผูกรวมกับ Apache ซึ่งเป็นวิธีการติดตั้งที่ง่ายกว่า และสะดวกกว่าการติดตั้งแบบที่นำเสนอครั้งก่อน โดยอาศัย dav_svn กับ mods_python เข้ามาช่วย


จาก WikiBall


			




เนื้อหา


1 ติดตั้ง Program ใน Ubuntu

1.1 SVN + Apache
1.2 Trac + Apache


2 การสร้าง project

2.1 สร้าง repository
2.2 สร้าง Trac


3 Enable apache modules
4 Apache configure

4.1 configuration file สำหรับ trac
4.2 configuration file สำหรับ subversion
4.3 Enable site


5 [...]]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้กำลังปรับปรุงระบบ SVN ใหม่อยู่ โดยจะให้การทำ authen ผ่าน .htaccess เดียวกันทั้ง SVN &amp; Trac<br />
จึงได้นำ SVN และ Trac มาผูกรวมกับ Apache ซึ่งเป็นวิธีการติดตั้งที่ง่ายกว่า และสะดวกกว่า<a href="http://www.memoball.info/01/%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89-web-interface-%E0%B8%82%E0%B8%AD%E0%B8%87-trac/">การติดตั้งแบบที่นำเสนอครั้งก่อน</a> โดยอาศัย dav_svn กับ mods_python เข้ามาช่วย<br />
<span id="more-411"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/SVN%2BTrac%2Bapache2">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Program_.E0.B9.83.E0.B8.99_Ubuntu" ref="toc"><span class="tocnumber">1</span> <span class="toctext">ติดตั้ง Program ใน Ubuntu</span></a>
<ul>
<li class="toclevel-2"><a href="./#SVN_.2B_Apache" ref="toc"><span class="tocnumber">1.1</span> <span class="toctext">SVN + Apache</span></a></li>
<li class="toclevel-2"><a href="./#Trac_.2B_Apache" ref="toc"><span class="tocnumber">1.2</span> <span class="toctext">Trac + Apache</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_project" ref="toc"><span class="tocnumber">2</span> <span class="toctext">การสร้าง project</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_repository" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">สร้าง repository</span></a></li>
<li class="toclevel-2"><a href="./#.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_Trac" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">สร้าง Trac</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#Enable_apache_modules" ref="toc"><span class="tocnumber">3</span> <span class="toctext">Enable apache modules</span></a></li>
<li class="toclevel-1"><a href="./#Apache_configure" ref="toc"><span class="tocnumber">4</span> <span class="toctext">Apache configure</span></a>
<ul>
<li class="toclevel-2"><a href="./#configuration_file_.E0.B8.AA.E0.B8.B3.E0.B8.AB.E0.B8.A3.E0.B8.B1.E0.B8.9A_trac" ref="toc"><span class="tocnumber">4.1</span> <span class="toctext">configuration file สำหรับ trac</span></a></li>
<li class="toclevel-2"><a href="./#configuration_file_.E0.B8.AA.E0.B8.B3.E0.B8.AB.E0.B8.A3.E0.B8.B1.E0.B8.9A_subversion" ref="toc"><span class="tocnumber">4.2</span> <span class="toctext">configuration file สำหรับ subversion</span></a></li>
<li class="toclevel-2"><a href="./#Enable_site" ref="toc"><span class="tocnumber">4.3</span> <span class="toctext">Enable site</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.A7.E0.B8.B4.E0.B8.98.E0.B8.B5.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_.htaccess" ref="toc"><span class="tocnumber">5</span> <span class="toctext">วิธีสร้าง .htaccess</span></a></li>
<li class="toclevel-1"><a href="./#Restart_apache" ref="toc"><span class="tocnumber">6</span> <span class="toctext">Restart apache</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89.E0.B8.87.E0.B8.B2.E0.B8.99" ref="toc"><span class="tocnumber">7</span> <span class="toctext">การใช้งาน</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Program_.E0.B9.83.E0.B8.99_Ubuntu" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ติดตั้ง Program ใน Ubuntu</span></h2>
<p><a name="SVN_.2B_Apache" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> SVN + Apache </span></h3>
<p>ติดตั้ง apache
</p>
<pre>
$ sudo apt-get install apache2
</pre>
<p>ติดตั้ง svn
</p>
<pre>
$ sudo apt-get install subversion
</pre>
<p>ติดตั้งโมดูล svn ของ apache
</p>
<pre>
$ sudo apt-get install libapache2-svn
</pre>
<p><a name="Trac_.2B_Apache" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Trac + Apache </span></h3>
<p>การติดตั้ง Trac จำเป็นต้องมี SVN อยู่ก่อนแล้ว<br />
จึงทำการติดตั้ง Trac ดังนี้<br />
ดาวโหลด trac มาใส่ไว้ในที่ไดที่หนึ่งอาจเป็น /home/user ก็ได้ หรืออาจให้ wget ดึงมาเลย
</p>
<pre>
wget http://ftp.edgewall.com/pub/trac/Trac-0.11.5.tar.gz
</pre>
<p>ระเบิดมัน
</p>
<pre>tar -xzf Trac-0.11.5.tar.gz</pre>
<p>ลง Python setup
</p>
<pre>$ sudo apt-get install python-setuptools</pre>
<p>เข้าไปที่ directory ดังกล่าว  Trac-0.11.5 แล้วทำการ install
</p>
<pre>$ sudo python ./setup.py install</pre>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_project" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การสร้าง project </span></h2>
<p><a name=".E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_repository" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> สร้าง repository </span></h3>
<p>ตัวอย่างการสร้าง
</p>
<pre>$ svnadmin create /var/svn/repository/example</pre>
<p>นำเข้า (import) project
</p>
<pre>$ svn import /path/to/projectexample file:///var/svn/repository/example/examplev1 -m&quot;initial import&quot; </pre>
<p><a name=".E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_Trac" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> สร้าง Trac </span></h3>
<p>การสร้าง project enviroment รันคำสั่ง
</p>
<pre>$ trac-admin /path/to/myproject initenv</pre>
<p>ดู option ต่างๆ ได้ที่ <a href="http://wiki.memoball.info//index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99_trac" title="การใช้งาน trac">การใช้งาน trac</a>
</p>
<p><a name="Enable_apache_modules" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Enable apache modules </span></h2>
<p>เราต้องทำการ enable apache modules โดยการทำ soft link ใน /etc/apache2/mods-enabled ไปยัง /etc/apache2/mods-available/
</p>
<pre>
$ cd /etc/apache2/mods-enabled
$ sudo ln -s ../mods-available/dav_svn.conf
$ sudo ln -s ../mods-available/dav_svn.load
$ sudo ln -s ../mods-available/mod_python.load
</pre>
<p><a name="Apache_configure" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Apache configure </span></h2>
<p>หลังจากลงโปรแกรม แล้ว เราก็จะมากทำการ config เจ้าตัว apache ของเราให้สามารถทำงานได้กัน โดยก่อนอื่นต้องเข้าไปที่ /etc/apache2/sites-available/
</p>
<p><a name="configuration_file_.E0.B8.AA.E0.B8.B3.E0.B8.AB.E0.B8.A3.E0.B8.B1.E0.B8.9A_trac" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> configuration file สำหรับ trac </span></h3>
<p>สร้าง config file ใหม่
</p>
<pre>
$sudo vim trac
</pre>
<pre>
&lt;Location /uri/path/to/trac/project&gt;
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /path/to/project/environment
        PythonOption TracUriRoot /uri/path/to/trac/project
&lt;/Location&gt;
</pre>
<p>ถ้าต้องการทำ authentication ผ่าน .htaccess ของ apache ให้เพิ่มโค้ดด้านล่าง ลงใน Location
</p>
<pre>
        AuthType Basic
        AuthName &quot;Project name&quot;
        AuthUserFile /path/to/.htaccess
        Require valid-user
</pre>
<p><a name="configuration_file_.E0.B8.AA.E0.B8.B3.E0.B8.AB.E0.B8.A3.E0.B8.B1.E0.B8.9A_subversion" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> configuration file สำหรับ subversion </span></h3>
<p>สร้าง config file ใหม่
</p>
<pre>
$sudo vim svn
</pre>
<pre>
&lt;Location /uri/path/to/svn/project&gt;
        DAV svn
        SVNPath /var/svn/repository/rddi/mailgoth/
&lt;/Location
</pre>
<p>ถ้าต้องการทำ authentication ผ่าน .htaccess ของ apache ให้เพิ่มโค้ดด้านล่าง ลงใน Location
</p>
<pre>
        AuthType Basic
        AuthName Foo
        AuthUserFile /var/svn/repository/rddi/mailgoth/.htaccess

        require valid-user
        Order deny,allow
</pre>
<p><a name="Enable_site" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Enable site </span></h3>
<p>ทำการ Enable site
</p>
<pre>
$ cd /etc/apache2/sites-enabled/
$ sudo ln -s ../sites-available/svn 002-svn
$ sudo ln -s ../sites-available/trac 002-trac
</pre>
<p><a name=".E0.B8.A7.E0.B8.B4.E0.B8.98.E0.B8.B5.E0.B8.AA.E0.B8.A3.E0.B9.89.E0.B8.B2.E0.B8.87_.htaccess" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> วิธีสร้าง .htaccess </span></h2>
<pre>htpasswd -c .htaccess username</pre>
<p><a name="Restart_apache" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Restart apache </span></h2>
<p>สั่ง restart apache
</p>
<pre> $ sudo apache2ctl restart</pre>
<p>ถ้าเข้าแล้วยังมี error อยู่ ให้ไปดูที่ /var/log/apache/error.log ว่ามี Error อะไรเกิดขึ้น
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89.E0.B8.87.E0.B8.B2.E0.B8.99" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้งาน </span></h2>
<ul>
<li>เข้าใช้งาน Trac&nbsp;: http:/site.name/uri/path/to/trac/project
</li>
<li>เข้าใช้งาน SVN&nbsp;: http:/site.name/uri/path/to/svn/project
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 75/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:73-0!1!0!!th!2!edit=0 and timestamp 20091002091041 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/SVN%2BTrac%2Bapache2">http://wiki.memoball.info/index.php/SVN+Trac+apache2</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:SVN&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:SVN (ยังไม่ได้สร้าง)">SVN</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Apache&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Apache (ยังไม่ได้สร้าง)">Apache</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Trac&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Trac (ยังไม่ได้สร้าง)">Trac</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Ubuntu&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Ubuntu (ยังไม่ได้สร้าง)">Ubuntu</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/10/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-svn-trac-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-apache-%e0%b9%83%e0%b8%99-ubun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMWare Error : Failed to lock the file.</title>
		<link>http://www.memoball.info/09/vmware-error-failed-to-lock-the-file/</link>
		<comments>http://www.memoball.info/09/vmware-error-failed-to-lock-the-file/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:42:01 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=390</guid>
		<description><![CDATA[เมื่อเปิด vmware แล้วไม่สามารถ run vm ได้ แล้วขึ้น error ดังต่อไปนี้

Error:
Cannot open the disk '/xxx/xxx/Virtual Machine/Virtual Machine.vmdk'
or one of the snapshot disks it depends on.
Reason: Failed to lock the file.


วิธีแก้ไข
ลบ directory ที่ชื่อว่า Virtual Machine.vmdk.lck ออกเสีย แล้ว start
ถ้าไม่แน่ใจให้ move ไปไว้ในชื่ออื่นหรือทำ back up ไดเรคทรอรี่นี้เสียก่อนก็ได้
]]></description>
			<content:encoded><![CDATA[<p>เมื่อเปิด vmware แล้วไม่สามารถ run vm ได้ แล้วขึ้น error ดังต่อไปนี้</p>
<pre>
Error:
Cannot open the disk '/xxx/xxx/Virtual Machine/Virtual Machine.vmdk'
or one of the snapshot disks it depends on.
Reason: Failed to lock the file.
</pre>
<p><span id="more-390"></span></p>
<h3>วิธีแก้ไข</h3>
<p>ลบ directory ที่ชื่อว่า Virtual Machine.vmdk.lck ออกเสีย แล้ว start<br />
ถ้าไม่แน่ใจให้ move ไปไว้ในชื่ออื่นหรือทำ back up ไดเรคทรอรี่นี้เสียก่อนก็ได้</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/09/vmware-error-failed-to-lock-the-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การทำ proxy tunnel โดยผ่าน ssh ใน ubuntu</title>
		<link>http://www.memoball.info/08/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-proxy-tunnel-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-ssh-%e0%b9%83%e0%b8%99-ubuntu/</link>
		<comments>http://www.memoball.info/08/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-proxy-tunnel-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-ssh-%e0%b9%83%e0%b8%99-ubuntu/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 14:34:27 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=360</guid>
		<description><![CDATA[อันนี้เขียนไว้ตั้งนานแล้ว แต่ยังไม่มีโอกาสให้เอาขึ้นมาบน memoball ซักที อยู่ใน wiki มานานมากแล้ว


จาก WikiBall


			




เนื้อหา


1 SSH
2 Browser

2.1 Firefox 3.x


3 อื่นๆ




 if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } 

  SSH
รันคำสั่งใน terminal


ssh -D port -fCqN user@XXX.XXX.XXX.XXX


 Browser

 Firefox 3.x
แก้ไขใน firefox ดังนี้


เข้าไปที่ Edit -&#62; Preference

เข้าไปที่ Advance -&#62; Tab-networking

กดปุ่ม setting จะปรากฎหน้าต่างดังรูป

แก้ไข SOCKS Host เป็น localhost และ port ตามที่เราใส่ไว้แล้วด้านบน





 อื่นๆ
Ssh [...]]]></description>
			<content:encoded><![CDATA[<p>อันนี้เขียนไว้ตั้งนานแล้ว แต่ยังไม่มีโอกาสให้เอาขึ้นมาบน memoball ซักที อยู่ใน wiki มานานมากแล้ว<br />
<span id="more-360"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3_proxy_%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B8%9C%E0%B9%88%E0%B8%B2%E0%B8%99_ssh_%E0%B9%83%E0%B8%99_ubuntu">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#SSH" ref="toc"><span class="tocnumber">1</span> <span class="toctext">SSH</span></a></li>
<li class="toclevel-1"><a href="./#Browser" ref="toc"><span class="tocnumber">2</span> <span class="toctext">Browser</span></a>
<ul>
<li class="toclevel-2"><a href="./#Firefox_3.x" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">Firefox 3.x</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.AD.E0.B8.B7.E0.B9.88.E0.B8.99.E0.B9.86" ref="toc"><span class="tocnumber">3</span> <span class="toctext">อื่นๆ</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name="SSH" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> SSH</span></h2>
<p>รันคำสั่งใน terminal
</p>
<pre>
ssh -D port -fCqN user@XXX.XXX.XXX.XXX
</pre>
<p><a name="Browser" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">Browser</span></h2>
<p><a name="Firefox_3.x" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">Firefox 3.x</span></h3>
<p>แก้ไขใน firefox ดังนี้
</p>
<ol>
<li>เข้าไปที่ Edit -&gt; Preference
</li>
<li>เข้าไปที่ Advance -&gt; Tab-networking
</li>
<li>กดปุ่ม setting จะปรากฎหน้าต่างดังรูป
</li>
<li>แก้ไข SOCKS Host เป็น localhost และ port ตามที่เราใส่ไว้แล้วด้านบน
</li>
</ol>
<p><a href="http://wiki.memoball.info//index.php/%E0%B8%A0%E0%B8%B2%E0%B8%9E:Firefox-proxy.jpg" class="image" title="ภาพ:firefox-proxy.jpg"><img alt="ภาพ:firefox-proxy.jpg" src="http://wiki.memoball.info//images/d/dc/Firefox-proxy.jpg" width="506" height="548" border="0" /></a>
</p>
<p><a name=".E0.B8.AD.E0.B8.B7.E0.B9.88.E0.B8.99.E0.B9.86" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">อื่นๆ</span></h2>
<p><a href="http://wiki.memoball.info//index.php/Ssh_tunnel_proxy_%E0%B9%83%E0%B8%99_putty" title="Ssh tunnel proxy ใน putty">Ssh tunnel proxy ใน putty</a>
</p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 8/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:14-0!1!0!!th!2!edit=0 and timestamp 20090825091056 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3_proxy_%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B8%9C%E0%B9%88%E0%B8%B2%E0%B8%99_ssh_%E0%B9%83%E0%B8%99_ubuntu">http://wiki.memoball.info/index.php/การทำ_proxy_โดยผ่าน_ssh_ใน_ubuntu</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Linux&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Linux (ยังไม่ได้สร้าง)">Linux</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:SSH&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:SSH (ยังไม่ได้สร้าง)">SSH</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Tunnel&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Tunnel (ยังไม่ได้สร้าง)">Tunnel</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Ubuntu&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Ubuntu (ยังไม่ได้สร้าง)">Ubuntu</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
<p>อันนี้เป็นของบน window โดยใช้ putty ครับ<br />
<a href="http://www.memoball.info/08/ssh-tunnels-proxy-%e0%b9%83%e0%b8%99-putty/">http://www.memoball.info/08/ssh-tunnels-proxy-ใน-puttyssh-tunnels-proxy-ใน-putty/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/08/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-proxy-tunnel-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-ssh-%e0%b9%83%e0%b8%99-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH โดยใช้ finger-print (ใส่ password อัตโนมัติ)</title>
		<link>http://www.memoball.info/08/ssh-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b9%83%e0%b8%8a%e0%b9%89-finger-print-%e0%b9%83%e0%b8%aa%e0%b9%88-password-%e0%b8%ad%e0%b8%b1%e0%b8%95%e0%b9%82%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b8%95%e0%b8%b4/</link>
		<comments>http://www.memoball.info/08/ssh-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b9%83%e0%b8%8a%e0%b9%89-finger-print-%e0%b9%83%e0%b8%aa%e0%b9%88-password-%e0%b8%ad%e0%b8%b1%e0%b8%95%e0%b9%82%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b8%95%e0%b8%b4/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 14:51:57 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=347</guid>
		<description><![CDATA[พอจะทำ rsync เลยต้องมาหาวิธีการใช้ ssh โดยไม่ต้องใส่ password จึงได้วิธีการใช้งานดังนี้


จาก WikiBall


			
ในการ login ผ่าน ssh เราสามารถใช้ fingerprint หรือลายนิ้วมืออิเล็กทรอนิกส์แทนการใช้รหัสผ่าน หรือลูกกุญแจ ซึ่งในวิธีนี้แหมาะอย่างยิ่งสำหรับการใช้สคริปต์ เช่น bash script ติดต่อผ่าน ssh เช่นการทำ rsync เป็นต้น


 ใช้ลูกกุญแจแทนพาสเวริ์ด, ssh-keygen
สร้างกุญแจสำหรับเครื่อง client ที่ต้องการ login ไปที่ server ด้วย ssh-keygen


$ ssh-keygen -t dsa
Enter file in which to save the key (/home/thespn/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your [...]]]></description>
			<content:encoded><![CDATA[<p>พอจะทำ rsync เลยต้องมาหาวิธีการใช้ ssh โดยไม่ต้องใส่ password จึงได้วิธีการใช้งานดังนี้<br />
<span id="more-347"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Ssh_fingerprint">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<p>ในการ login ผ่าน ssh เราสามารถใช้ fingerprint หรือลายนิ้วมืออิเล็กทรอนิกส์แทนการใช้รหัสผ่าน หรือลูกกุญแจ ซึ่งในวิธีนี้แหมาะอย่างยิ่งสำหรับการใช้สคริปต์ เช่น bash script ติดต่อผ่าน ssh เช่นการทำ rsync เป็นต้น
</p>
<p><a name=".E0.B9.83.E0.B8.8A.E0.B9.89.E0.B8.A5.E0.B8.B9.E0.B8.81.E0.B8.81.E0.B8.B8.E0.B8.8D.E0.B9.81.E0.B8.88.E0.B9.81.E0.B8.97.E0.B8.99.E0.B8.9E.E0.B8.B2.E0.B8.AA.E0.B9.80.E0.B8.A7.E0.B8.A3.E0.B8.B4.E0.B9.8C.E0.B8.94.2C_ssh-keygen" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใช้ลูกกุญแจแทนพาสเวริ์ด, ssh-keygen</span></h2>
<p>สร้างกุญแจสำหรับเครื่อง client ที่ต้องการ login ไปที่ server ด้วย <a href="http://www.freebsd.org/cgi/man.cgi?query=ssh-keygen&amp;sektion=1" class="external text" title="http://www.freebsd.org/cgi/man.cgi?query=ssh-keygen&amp;sektion=1" rel="nofollow">ssh-keygen</a>
</p>
<div class="infobox">
<p><strong>$ ssh-keygen -t dsa</strong><br />
Enter file in which to save the key (/home/thespn/.ssh/id_dsa): <br />
Enter passphrase (empty for no passphrase): <br />
Enter same passphrase again: <br />
Your identification has been saved in /home/thespn/.ssh/id_dsa.<br />
Your public key has been saved in /home/thespn/.ssh/id_dsa.pu<br />
The key fingerprint is:<br />
e9:9f:4e:ed:da:77:35:cb:df:3f:c8:5d:b5:94:fe:c4 thespn@thespn-laptop<br />
The key&#8217;s randomart image is:<br />
+&#8211;[ DSA 1024]&#8212;-+<br />
|                 |<br />
|                 |<br />
|                .|<br />
|         .     o.|<br />
|        S     o.o|<br />
|       .   .   +E|<br />
|        . . o +.*|<br />
|         o + o.=+|<br />
|         .=.o. .B|<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+
</p>
</div>
<p>กด enter ให้หมดสำหรับใช้ค่า default (แนะนำ)
</p>
<p><a name=".E0.B8.AA.E0.B9.88.E0.B8.87_key_.E0.B9.84.E0.B8.9B.E0.B8.97.E0.B8.B5.E0.B9.88_server" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> ส่ง key ไปที่ server </span></h2>
<p>ส่งกุญแจไปที่ server ด้วยคำสั่ง <a href="http://linux.die.net/man/1/ssh-copy-id" class="external text" title="http://linux.die.net/man/1/ssh-copy-id" rel="nofollow">ssh-copy-id</a>
</p>
<div class="infobox">
<p>ssh-copy-id [-i [identity_file]] [user@]machine
</p>
</div>
<p>พิมพ์ yes แลัวต่อไปใส่รหัสผ่าน<br />
ซึ่งในที่นี้ indentity_file ของเราก็คือ /home/user/.ssh/id_dsa
</p>
<p><a name=".E0.B8.A5.E0.B8.AD.E0.B8.87.E0.B9.80.E0.B8.82.E0.B9.89.E0.B8.B2.E0.B9.80.E0.B8.A5.E0.B8.A2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> ลองเข้าเลย </span></h2>
<div class="infobox">ssh machine -l user</div>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 28/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:63-0!1!0!!th!2!edit=0 and timestamp 20090825091056 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Ssh_fingerprint">http://wiki.memoball.info/index.php/Ssh_fingerprint</a></div>
<p>						<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/08/ssh-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b9%83%e0%b8%8a%e0%b9%89-finger-print-%e0%b9%83%e0%b8%aa%e0%b9%88-password-%e0%b8%ad%e0%b8%b1%e0%b8%95%e0%b9%82%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b8%95%e0%b8%b4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>มาเปลี่ยน Theme ใน Ubuntu 9.04 กันเถอะ</title>
		<link>http://www.memoball.info/07/%e0%b8%a1%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-theme-%e0%b9%83%e0%b8%99-ubuntu-904-%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b9%80%e0%b8%96%e0%b8%ad%e0%b8%b0/</link>
		<comments>http://www.memoball.info/07/%e0%b8%a1%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-theme-%e0%b9%83%e0%b8%99-ubuntu-904-%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b9%80%e0%b8%96%e0%b8%ad%e0%b8%b0/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 03:25:09 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=309</guid>
		<description><![CDATA[ใครเบือ Ubuntu ในรูปแบบ เดิมๆ เชิญทางนี้


แก้ไข source list (แนะนำว่าควรเก็บของเก่าเป็น backup ไว้ด้วย)
sudo gedit /etc/apt/sources.list

โดยการเพิ่ม
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main

ใส่ verification key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x1781bd45c4c3275a34bb6aec6e871c4a881574de

Update cache
sudo apt-get update

Install theme
sudo apt-get install &#60;Theme&#62;

โดยการแทนที่ &#60;Theme&#62; เป็น ธีมที่ต้องการ ดังนี้

showtime-theme
balanzan-theme
infinity-theme
wild-shine-theme
tropical-theme
bamboo-zen-theme
ubuntu-sunrise-theme
aquadreams-theme
exotic-theme


Remove theme
sudo apt-get remove &#60;Theme&#62;

และ theme อื่นๆ http://francois.vogelweith.com/?page_id=16〈=en
]]></description>
			<content:encoded><![CDATA[<p>ใครเบือ Ubuntu ในรูปแบบ เดิมๆ เชิญทางนี้</p>
<p><div class="wp-caption alignnone" style="width: 500px"><a href="http://francois.vogelweith.com/?p=1&amp;lang=en"><img title="Infinity Theme" src="http://francois.vogelweith.com/images/stories/themes_screens/infinity/infinity.jpg" alt="Infinity" width="490" height="140" /></a><p class="wp-caption-text">Infinity</p></div><br />
<span id="more-309"></span></p>
<ol>
<li>แก้ไข source list (แนะนำว่าควรเก็บของเก่าเป็น backup ไว้ด้วย)
<pre>sudo gedit /etc/apt/sources.list</pre>
</li>
<li>โดยการเพิ่ม
<pre>deb http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main</pre>
</li>
<li>ใส่ verification key
<pre>sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x1781bd45c4c3275a34bb6aec6e871c4a881574de</pre>
</li>
<li>Update cache
<pre>sudo apt-get update</pre>
</li>
<li>Install theme
<pre>sudo apt-get install &lt;Theme&gt;</pre>
</li>
<li>โดยการแทนที่ &lt;Theme&gt; เป็น ธีมที่ต้องการ ดังนี้
<ul>
<li>showtime-theme</li>
<li>balanzan-theme</li>
<li>infinity-theme</li>
<li>wild-shine-theme</li>
<li>tropical-theme</li>
<li>bamboo-zen-theme</li>
<li>ubuntu-sunrise-theme</li>
<li>aquadreams-theme</li>
<li>exotic-theme</li>
</ul>
</li>
<li>Remove theme
<pre>sudo apt-get remove &lt;Theme&gt;</pre>
</li>
<p>และ theme อื่นๆ<a href="http://francois.vogelweith.com/?page_id=16&amp;lang=en"> http://francois.vogelweith.com/?page_id=16〈=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/07/%e0%b8%a1%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-theme-%e0%b9%83%e0%b8%99-ubuntu-904-%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b9%80%e0%b8%96%e0%b8%ad%e0%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การติดตั้ง Eclipse+Subclipse ใน ubuntu แบบ manual</title>
		<link>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-eclipsesubclipse-%e0%b9%83%e0%b8%99-ubuntu-%e0%b9%81%e0%b8%9a%e0%b8%9a-manual/</link>
		<comments>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-eclipsesubclipse-%e0%b9%83%e0%b8%99-ubuntu-%e0%b9%81%e0%b8%9a%e0%b8%9a-manual/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 10:06:19 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=264</guid>
		<description><![CDATA[วันนี้ได้ทำการลง Ubuntu ในเครื่องที่ Office ใหม่ เนื่องจากอันเก่ามันแฮงค์บ่อยยังไงชอบกลก็ไม่รู้
ก็เลยต้องลง Eclipse PDT+Subclipse ใหม่อีกรอบ เลยเอามาเขียนไว้ใน wiki เพื่อกันลืม 

จาก WikiBall


			




เนื้อหา


1 แบบ synaptic
2 แบบ manual

2.1 ติดตั้ง Eclipse
2.2 ติดตั้ง Subclipse






 if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } 

  แบบ synaptic 

 เปิด synaptic Package manager

 หา Eclipse

 ลงมันซะ



  แบบ manual 

  ติดตั้ง Eclipse 

 [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้ได้ทำการลง Ubuntu ในเครื่องที่ Office ใหม่ เนื่องจากอันเก่ามันแฮงค์บ่อยยังไงชอบกลก็ไม่รู้<br />
ก็เลยต้องลง Eclipse PDT+Subclipse ใหม่อีกรอบ เลยเอามาเขียนไว้ใน wiki เพื่อกันลืม <span id="more-264"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87_Eclipse_Ganymede_PDT_%2B_Subclipse_%E0%B9%83%E0%B8%99_Ubuntu">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B9.81.E0.B8.9A.E0.B8.9A_synaptic" ref="toc"><span class="tocnumber">1</span> <span class="toctext">แบบ synaptic</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.81.E0.B8.9A.E0.B8.9A_manual" ref="toc"><span class="tocnumber">2</span> <span class="toctext">แบบ manual</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Eclipse" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">ติดตั้ง Eclipse</span></a></li>
<li class="toclevel-2"><a href="./#.E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Subclipse" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">ติดตั้ง Subclipse</span></a></li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B9.81.E0.B8.9A.E0.B8.9A_synaptic" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> แบบ synaptic </span></h2>
<ul>
<li> เปิด synaptic Package manager
</li>
<li> หา Eclipse
</li>
<li> ลงมันซะ
</li>
</ul>
<p><a name=".E0.B9.81.E0.B8.9A.E0.B8.9A_manual" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> แบบ manual </span></h2>
<p><a name=".E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Eclipse" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> ติดตั้ง Eclipse </span></h3>
<ul>
<li> Download ไฟล์ติดตั้งแบบ linux
</li>
<li> ระเบิดไฟล์ดังกล่าวออกมาไว้ใน directory ที่ต้องการ โดยส่วนมากแล้วจะเอาไว้ที่ /opt/
</li>
<li> ลง java5 runtime environment &lt;pro&gt;$sudo apt-get install java5-runtime&lt;/pre&gt;
</li>
<li> <a href="http://wiki.memoball.info//images/a/a6/EclipseIcon.svg" class="internal" title="EclipseIcon.svg">สื่อ:EclipseIcon.svg</a> icon ลงไปไว้ใน /opt/eclipse/ ที่เราสร้างและแตกไฟล์ไว้แล้ว
</li>
<li> คลิกขวาที่ Applications แล้ว Edit menus
</li>
<li> เพิ่มเมนู Eclipse แล้วใช้ ICON ที่เราโหลดไว้แล้ว
</li>
</ul>
<p><a name=".E0.B8.95.E0.B8.B4.E0.B8.94.E0.B8.95.E0.B8.B1.E0.B9.89.E0.B8.87_Subclipse" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> ติดตั้ง Subclipse </span></h3>
<ul>
<li> ติดตั้ง javaHL สำหรับ eclipse
<pre>$ sudo apt-get install libnb-svnclientadapter-java </pre>
</li>
<li> เปิด Eclipse
</li>
<li> ไปที่ Help -&gt; Software Updates&#8230;-&gt; Availble software
</li>
<li> Addsite แล้วใส่ site URL ซึ่งดูได้จากเวปของ <a href="http://subclipse.tigris.org/" class="external text" title="http://subclipse.tigris.org/" rel="nofollow">Subclipse</a> เอง (น่าจะอยู่ใน download &amp; update)
</li>
<li> คลิกที่ site แล้วสั่ง install
</li>
<li> ปภิบัติตามขึ้นตอนที่ปรากฎ
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 8/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:47-0!1!0!!th!2!edit=0 and timestamp 20090825190454 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87_Eclipse_Ganymede_PDT_%2B_Subclipse_%E0%B9%83%E0%B8%99_Ubuntu">http://wiki.memoball.info/index.php/การติดตั้ง_Eclipse_Ganymede_PDT_+_Subclipse_ใน_Ubuntu</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Ubuntu&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Ubuntu (ยังไม่ได้สร้าง)">Ubuntu</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-eclipsesubclipse-%e0%b9%83%e0%b8%99-ubuntu-%e0%b9%81%e0%b8%9a%e0%b8%9a-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
