<?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/tag/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>การเขียน bash script เบื้องต้น</title>
		<link>http://www.memoball.info/02/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99-bash-script-%e0%b9%80%e0%b8%9a%e0%b8%b7%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%95%e0%b9%89%e0%b8%99/</link>
		<comments>http://www.memoball.info/02/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99-bash-script-%e0%b9%80%e0%b8%9a%e0%b8%b7%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%95%e0%b9%89%e0%b8%99/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 03:04:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=176</guid>
		<description><![CDATA[วันนี้จะทำเรื่อง svn export ก็เลยต้องมานั่งเขียน Bash script เพื่อสั่งให้ server มันไปดูดข้อมูลมา จึงได้ค้นหา website พวก tutorial เลยเอามาทำเป็นรายการรวมไว้ไน wiki ซะเลย กันลืม (เพิ่งหาได้อันเดียว) 


จาก WikiBall


			




เนื้อหา


1 การเขียน bash script อย่างง่าย

1.1 การประกาศตัวแปร
1.2 Argument


2 Tutorial Link




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

  การเขียน bash script อย่างง่าย 

  การประกาศตัวแปร 
ประการโดยการใช้ ชื่อแปร=ค่า
เรียกให้ได้โดยการใส่ $ ไว้ข้างหน้า


PROC=svn
echo $PROC


 [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้จะทำเรื่อง svn export ก็เลยต้องมานั่งเขียน Bash script เพื่อสั่งให้ server มันไปดูดข้อมูลมา จึงได้ค้นหา website พวก tutorial เลยเอามาทำเป็นรายการรวมไว้ไน wiki ซะเลย กันลืม (เพิ่งหาได้อันเดียว) <img src='http://www.memoball.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
<span id="more-176"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Bash-Scripting_tutorial">จาก 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.81.E0.B8.B2.E0.B8.A3.E0.B9.80.E0.B8.82.E0.B8.B5.E0.B8.A2.E0.B8.99_bash_script_.E0.B8.AD.E0.B8.A2.E0.B9.88.E0.B8.B2.E0.B8.87.E0.B8.87.E0.B9.88.E0.B8.B2.E0.B8.A2" ref="toc"><span class="tocnumber">1</span> <span class="toctext">การเขียน bash script อย่างง่าย</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.9B.E0.B8.A3.E0.B8.B0.E0.B8.81.E0.B8.B2.E0.B8.A8.E0.B8.95.E0.B8.B1.E0.B8.A7.E0.B9.81.E0.B8.9B.E0.B8.A3" ref="toc"><span class="tocnumber">1.1</span> <span class="toctext">การประกาศตัวแปร</span></a></li>
<li class="toclevel-2"><a href="./#Argument" ref="toc"><span class="tocnumber">1.2</span> <span class="toctext">Argument</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#Tutorial_Link" ref="toc"><span class="tocnumber">2</span> <span class="toctext">Tutorial Link</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.81.E0.B8.B2.E0.B8.A3.E0.B9.80.E0.B8.82.E0.B8.B5.E0.B8.A2.E0.B8.99_bash_script_.E0.B8.AD.E0.B8.A2.E0.B9.88.E0.B8.B2.E0.B8.87.E0.B8.87.E0.B9.88.E0.B8.B2.E0.B8.A2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การเขียน bash script อย่างง่าย </span></h2>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.9B.E0.B8.A3.E0.B8.B0.E0.B8.81.E0.B8.B2.E0.B8.A8.E0.B8.95.E0.B8.B1.E0.B8.A7.E0.B9.81.E0.B8.9B.E0.B8.A3" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การประกาศตัวแปร </span></h3>
<p>ประการโดยการใช้ ชื่อแปร=ค่า<br />
เรียกให้ได้โดยการใส่ $ ไว้ข้างหน้า
</p>
<pre>
PROC=svn
echo $PROC
</pre>
<p><a name="Argument" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Argument </span></h3>
<ul>
<li> <i>$0, $1, $2&#8242;,&#8230;&#8217; &#8212; แทน argument ตัวที่ 1,2,3,&#8230;</i>
</li>
<li> <i>$*</i> &#8212; จำนวน argument
</li>
<li> <i>$#</i> &#8212; เหมือนกับ $* แต่จะต่างกันเรื่องการใส่ quote เวลาเรียกใช้งาน
</li>
</ul>
<pre>
if [&nbsp;! -n &quot;$1&quot; ]
then
  echo &quot;Usage: `basename $0` argument1 argument2 etc.&quot;
  exit $E_BADARGS
fi  
</pre>
<p>ref: <a href="http://tldp.org/LDP/abs/html/internalvariables.html#ARGLIST" class="external text" title="http://tldp.org/LDP/abs/html/internalvariables.html#ARGLIST" rel="nofollow">Positional Parameters</a>
</p>
<p><a name="Tutorial_Link" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Tutorial Link </span></h2>
<ul>
<li> <a href="http://tldp.org/LDP/abs/html/" class="external text" title="http://tldp.org/LDP/abs/html/" rel="nofollow">Advanced Bash-Scripting Guide</a>
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 11/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:20-0!1!0!!th!2!edit=0 and timestamp 20090824163426 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Bash-Scripting_tutorial">http://wiki.memoball.info/index.php/Bash-Scripting_tutorial</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></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99-bash-script-%e0%b9%80%e0%b8%9a%e0%b8%b7%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%95%e0%b9%89%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ปัญหาการใช้ web interface ของ trac</title>
		<link>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/</link>
		<comments>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/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 06:32:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Trac & SVN]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=124</guid>
		<description><![CDATA[หลังจากสร้าง wiki เป็นของตัวเอง จึงได้รวบรวมปัญหา และการติดตั้งเป็นอันเดียวกันใน wiki
โดยมีวิธีการที่ง่าย และสะดวกกว่าที่ การติดตั้ง SVN &#38; Trac ร่วมกับ Apache ใน Ubuntu


จาก WikiBall


			




เนื้อหา


1 การติดตั้ง
2 การสร้าง project enviroment
3 การทำ Authentication

3.1 การสร้างแบบ .htpasswd
3.2 การสร้างแบบ .htdigest


4 การรัน Service ของ trac

4.1 การรันโดยใช้ Basic Authentiction
4.2 การรันโดยใช้ Digest Authentiction
4.3 การรันแบบ Multiple Project
4.4 Service tracd


5 การทำ NGINX + TRAC
6 การสร้าง Repository
7 Troubleshooting

7.1 โหลดโปรเจคไม่ขึ้น
7.2 admin tab ไม่ขึ้น
7.3 login ไม่ได้
7.4 repository [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากสร้าง wiki เป็นของตัวเอง จึงได้รวบรวมปัญหา และการติดตั้งเป็นอันเดียวกันใน wiki<br />
<strong>โดยมีวิธีการที่ง่าย และสะดวกกว่าที่</strong> <strong></strong><strong><a title="Edit “การติดตั้ง SVN &amp; Trac ร่วมกับ Apache ใน Ubuntu”" href="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/">การติดตั้ง SVN &amp; Trac ร่วมกับ Apache ใน Ubuntu</a></strong><br />
<span id="more-124"></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_trac_%E0%B8%9A%E0%B8%99_linux_%28Ubuntu%29">จาก 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.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" ref="toc"><span class="tocnumber">1</span> <span class="toctext">การติดตั้ง</span></a></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_enviroment" ref="toc"><span class="tocnumber">2</span> <span class="toctext">การสร้าง project enviroment</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.97.E0.B8.B3_Authentication" ref="toc"><span class="tocnumber">3</span> <span class="toctext">การทำ Authentication</span></a>
<ul>
<li class="toclevel-2"><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.E0.B9.81.E0.B8.9A.E0.B8.9A_.htpasswd" ref="toc"><span class="tocnumber">3.1</span> <span class="toctext">การสร้างแบบ .htpasswd</span></a></li>
<li class="toclevel-2"><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.E0.B9.81.E0.B8.9A.E0.B8.9A_.htdigest" ref="toc"><span class="tocnumber">3.2</span> <span class="toctext">การสร้างแบบ .htdigest</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99_Service_.E0.B8.82.E0.B8.AD.E0.B8.87_trac" ref="toc"><span class="tocnumber">4</span> <span class="toctext">การรัน Service ของ trac</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.82.E0.B8.94.E0.B8.A2.E0.B9.83.E0.B8.8A.E0.B9.89_Basic_Authentiction" ref="toc"><span class="tocnumber">4.1</span> <span class="toctext">การรันโดยใช้ Basic Authentiction</span></a></li>
<li class="toclevel-2"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.82.E0.B8.94.E0.B8.A2.E0.B9.83.E0.B8.8A.E0.B9.89_Digest_Authentiction" ref="toc"><span class="tocnumber">4.2</span> <span class="toctext">การรันโดยใช้ Digest Authentiction</span></a></li>
<li class="toclevel-2"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.81.E0.B8.9A.E0.B8.9A_Multiple_Project" ref="toc"><span class="tocnumber">4.3</span> <span class="toctext">การรันแบบ Multiple Project</span></a></li>
<li class="toclevel-2"><a href="./#Service_tracd" ref="toc"><span class="tocnumber">4.4</span> <span class="toctext">Service tracd</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.97.E0.B8.B3_NGINX_.2B_TRAC" ref="toc"><span class="tocnumber">5</span> <span class="toctext">การทำ NGINX + TRAC</span></a></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_Repository" ref="toc"><span class="tocnumber">6</span> <span class="toctext">การสร้าง Repository</span></a></li>
<li class="toclevel-1"><a href="./#Troubleshooting" ref="toc"><span class="tocnumber">7</span> <span class="toctext">Troubleshooting</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B9.82.E0.B8.AB.E0.B8.A5.E0.B8.94.E0.B9.82.E0.B8.9B.E0.B8.A3.E0.B9.80.E0.B8.88.E0.B8.84.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B8.82.E0.B8.B6.E0.B9.89.E0.B8.99" ref="toc"><span class="tocnumber">7.1</span> <span class="toctext">โหลดโปรเจคไม่ขึ้น</span></a></li>
<li class="toclevel-2"><a href="./#admin_tab_.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B8.82.E0.B8.B6.E0.B9.89.E0.B8.99" ref="toc"><span class="tocnumber">7.2</span> <span class="toctext">admin tab ไม่ขึ้น</span></a></li>
<li class="toclevel-2"><a href="./#login_.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B9.84.E0.B8.94.E0.B9.89" ref="toc"><span class="tocnumber">7.3</span> <span class="toctext">login ไม่ได้</span></a></li>
<li class="toclevel-2"><a href="./#repository_.26_SVN_error" ref="toc"><span class="tocnumber">7.4</span> <span class="toctext">repository &amp; SVN error</span></a></li>
<li class="toclevel-2"><a href="./#HTML_preview_not_available" ref="toc"><span class="tocnumber">7.5</span> <span class="toctext">HTML preview not available</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#Plugin" ref="toc"><span class="tocnumber">8</span> <span class="toctext">Plugin</span></a></li>
<li class="toclevel-1"><a href="./#Reference" ref="toc"><span class="tocnumber">9</span> <span class="toctext">Reference</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.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" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การติดตั้ง </span></h2>
<p>ขั้นแรกติดตั้ง apache, sqlite
</p>
<p>ต่อไป download source จาก&lt;a href=&#8221;http://&#8221;&gt; <a href="http://trac.edgewall.org/wiki/TracDownload" class="external free" title="http://trac.edgewall.org/wiki/TracDownload" rel="nofollow">http://trac.edgewall.org/wiki/TracDownload</a>&lt;/a&gt;<br />
ระเบิด(Extract) มันออกมา (ถ้าเป็น tar.gz)
</p>
<pre>$ tar -xzf trac.tar.gz</pre>
<p>เข้าไปยัง source ที่ระเบิดได้<br />
ถ้ายังไม่มี python ก็ในลง python ก่อน แต่ Ubuntu ตัวใหม่ๆ จะมีมาให้อยู่แล้วแต่ยังไม่มี setuptools ตังนั้น ใช้คำสั่งนี้ลงได้ทีเดียวเลยครับ
</p>
<pre>$ sudo apt-get install python-setuptools</pre>
<p>ต่อไป compile เลย
</p>
<pre>$ sudo python ./setup.py install</pre>
<p>ดูเพิ่มเติมได้ที่ &gt; <a href="http://trac.edgewall.org/wiki/TracInstall" class="external text" title="http://trac.edgewall.org/wiki/TracInstall" rel="nofollow">การติดตั้ง Trac</a>
</p>
<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_enviroment" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การสร้าง project enviroment </span></h2>
<p>รันคำสั่ง
</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#initenv" class="external text" title="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#initenv" rel="nofollow">initenv</a>]
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.97.E0.B8.B3_Authentication" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การทำ Authentication </span></h2>
<p>trac นั้นจะใช้การ Authentication ผ่าน apache จะง่ายกว่ามากครับ<br />
โดยในที่นี้จะกล่าวถึงเฉพาะ tracd หรือ Trac แบบ standalone เท่านั้นโดยมีวิธีทำดังนี้
</p>
<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.E0.B9.81.E0.B8.9A.E0.B8.9A_.htpasswd" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การสร้างแบบ .htpasswd </span></h3>
<pre>htpasswd -c /path/to/env/.htpasswd username</pre>
<p>เพิ่ม user ที่ต้องการ
</p>
<pre>sudo htpasswd /path/to/env/.htpasswd username2</pre>
<p>รัน tracd โดยใช้ option &#8211; -basic-auth
</p>
<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.E0.B9.81.E0.B8.9A.E0.B8.9A_.htdigest" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การสร้างแบบ .htdigest </span></h3>
<pre>htdigest -c /path/to/env/.htpasswd realm username</pre>
<p>เพิ่ม user ที่ต้องการ
</p>
<pre>htdigest /path/to/env/.htpasswd realm username</pre>
<p>รัน tracd โดยใช้ option &#8211; -auth
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99_Service_.E0.B8.82.E0.B8.AD.E0.B8.87_trac" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การรัน Service ของ trac </span></h2>
<p>การรัน Service ของ trac นั้นจะแบ่งเป็น 2 ลักษณะคือ
</p>
<ol>
<li>Standalone&nbsp;: รันบน tracd พอร์ต(port) 8000 ซึ่งสามารถวิ่งใช้บน localhost ได้สบายๆ<br />
<a href="http://trac.mailgothai.net/demo/wiki/TracStandalone" class="external text" title="http://trac.mailgothai.net/demo/wiki/TracStandalone" rel="nofollow">standalone</a></li>
<li>WebService&nbsp;: รันบน <a href="http://trac.edgewall.org/wiki/TracCgi" class="external text" title="http://trac.edgewall.org/wiki/TracCgi" rel="nofollow">TracCgi</a> หรือ <a href="http://trac.edgewall.org/wiki/TracModPython" class="external text" title="http://trac.edgewall.org/wiki/TracModPython" rel="nofollow">TracModPython</a>
</li>
</ol>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.82.E0.B8.94.E0.B8.A2.E0.B9.83.E0.B8.8A.E0.B9.89_Basic_Authentiction" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การรันโดยใช้ Basic Authentiction </span></h3>
<pre>tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname
</pre>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.82.E0.B8.94.E0.B8.A2.E0.B9.83.E0.B8.8A.E0.B9.89_Digest_Authentiction" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การรันโดยใช้ Digest Authentiction </span></h3>
<pre>$ tracd -p port --auth=base_project_dir,password_file_path,realm project_path</pre>
<ul>
<li><strong>base_project_dir </strong>คือ directory หลักของ project (ตัวเล็กใหญ่มีผล)</li>
<li><strong>password_file_path</strong> คือ path ที่อยู่ของไฟล์รหัสผ่าน</li>
<li><strong>realm</strong> คือ ชื่อที่อยู่ของโปรเจค (URL)</li>
<li><strong>project_path</strong> คือ ที่อยู่ของ project</li>
</ul>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.A3.E0.B8.B1.E0.B8.99.E0.B9.81.E0.B8.9A.E0.B8.9A_Multiple_Project" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> การรันแบบ Multiple Project </span></h3>
<pre>$ tracd -p 8080 \
   --auth=project1,/path/to/users.htdigest,mycompany.com /path/to/project1
</pre>
<pre>$ tracd -p 8080 \
   --auth=project1,/path/to/users.htdigest,mycompany.com \
   --auth=project2,/path/to/users.htdigest,mycompany.com \
   /path/to/project1 /path/to/project2
</pre>
<pre>$ tracd -p 8080 \
   --auth=&quot;*&quot;,/path/to/users.htdigest,mycompany.com \
   /path/to/project1 /path/to/project2
</pre>
<p><b>ระวังห้ามใส่ตัวใหญ่</b>
</p>
<p><a name="Service_tracd" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Service tracd </span></h3>
<p>ใส่ script ดังนี้ใน /etc/init.d/tracd
</p>
<pre>
#! /bin/sh
#
# tracd		Trac standalone server daemon
#
# Author:	cocoaberry
#

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC=&quot;Trac standalone server&quot;
NAME=tracd
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

# defaults for tracd
TRACD_PORT=8080
TRACD_BIND_ADDRESS=0.0.0.0
TRACD_EXTRA_OPTS=

# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
	. /etc/default/$NAME
fi

#
#	Function that starts the daemon/service.
#
d_start() {
	start-stop-daemon --start --background --make-pidfile --quiet \
		--pidfile $PIDFILE --chuid $TRACD_USER \
		--exec $DAEMON -- $TRACD_EXTRA_OPTS --port $TRACD_PORT --hostname $TRACD_BIND_ADDRESS $TRACD_ENVIRONMENTS
}

#
#	Function that stops the daemon/service.
#
d_stop() {
	start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
		--name $NAME
}

case &quot;$1&quot; in
  start)
	echo -n &quot;Starting $DESC: $NAME&quot;
	d_start
	echo &quot;.&quot;
	;;
  stop)
	echo -n &quot;Stopping $DESC: $NAME&quot;
	d_stop
	echo &quot;.&quot;
	;;
  restart|force-reload)
	#
	#	If the &quot;reload&quot; option is implemented, move the &quot;force-reload&quot;
	#	option to the &quot;reload&quot; entry above. If not, &quot;force-reload&quot; is
	#	just the same as &quot;restart&quot;.
	#
	echo -n &quot;Restarting $DESC: $NAME&quot;
	d_stop
	sleep 1
	d_start
	echo &quot;.&quot;
	;;
  *)
	echo &quot;Usage: $SCRIPTNAME {start|stop|restart|force-reload}&quot; &gt;&amp;2
	exit 1
	;;
esac

exit 0
</pre>
<p>โดยตั้งค่าไหม่ดังตัวอย่าง
</p>
<pre>
TRACD_USER=tracd
 # The environments that tracd manages. If more than one, separate
 # with spaces
TRACD_ENVIRONMENTS=/home/tracd/trac-env
 # Extra options to tracd
TRACD_EXTRA_OPTS=&quot;--auth *,/home/tracd/trac.htdigest,TracRealm&quot;
</pre>
<p>ref&nbsp;: <a href="http://codesnippets.joyent.com/tag/tracd" class="external free" title="http://codesnippets.joyent.com/tag/tracd" rel="nofollow">http://codesnippets.joyent.com/tag/tracd</a>
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B8.97.E0.B8.B3_NGINX_.2B_TRAC" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การทำ NGINX + TRAC </span></h2>
<p>แต่ในที่นี้จะกล่าวถึงการใช้ Standalone บนโดยใช้ nginx มาวิ่งเป็น webservice แบบ proxy<br />
ต่อไป ทำการสร้าง project environment
</p>
<pre>$ trac-admin /path/to/myproject initenv</pre>
<p>รันแบบ standalone ได้เลย
</p>
<pre>tracd --port 8000 /path/to/myproject</pre>
<p>จากนั้นไป set ใน nginx ให้ ทำ proxy มาที่ service ที่เราใส่ไว้
</p>
<pre>
    server {
        listen       80;
        server_name  trac.xxxxxxxxxx.com;

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #

        location /OC/report {
            root /var/trac/test/htdocs;
            autoindex on;
        }

        location / {
            proxy_pass   http://127.0.0.1:8001;
        }

        location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
            proxy_pass   http://127.0.0.1:8001;

            #root /var/trac/test/htdocs;
        }

        location /munin/ {
            root /var/trac/test/htdocs;
        }
    }
</pre>
<p>ดูเพิ่มเติมได้ที่&nbsp;: <a href="http://wiki.memoball.info//index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A_nginx_%28Nginx_configuration%29" title="การตั้งค่าสำหรับ nginx (Nginx configuration)">การตั้งค่าสำหรับ_nginx_(Nginx_configuration)</a>
</p>
<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_Repository" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การสร้าง Repository </span></h2>
<p>เนื่องจาก trac เองเป็นแค่หน้ากากครอบตัว svn อยู่เท่านั้น ดังนั้นเราจึงต้องสร้าง repository ผ่านท่าง <a href="http://wiki.memoball.info//index.php/Subversion" title="Subversion">subversion</a> เท่านั้น
</p>
<p><a name="Troubleshooting" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Troubleshooting </span></h2>
<p><a name=".E0.B9.82.E0.B8.AB.E0.B8.A5.E0.B8.94.E0.B9.82.E0.B8.9B.E0.B8.A3.E0.B9.80.E0.B8.88.E0.B8.84.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B8.82.E0.B8.B6.E0.B9.89.E0.B8.99" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> โหลดโปรเจคไม่ขึ้น </span></h3>
<p>เกิด error ดังต่อไปนี้
</p>
<pre>
Traceback (most recent call last):
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/api.py&quot;, line 367, in send_error
    'text/html')
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/chrome.py&quot;, line 688, in render_template
    data = self.populate_data(req, data)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/chrome.py&quot;, line 596, in populate_data
    d['chrome'].update(req.chrome)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/api.py&quot;, line 194, in __getattr__
    value = self.callbacks[name](self)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/chrome.py&quot;, line 464, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ticket/web_ui.py&quot;, line 162, in get_navigation_items
    if 'TICKET_CREATE' in req.perm:
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 523, in has_permission
    return self._has_permission(action, resource)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 537, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 424, in check_permission
    perm)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 282, in check_permission
    get_user_permissions(username)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 357, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/perm.py&quot;, line 173, in get_user_permissions
    db = self.env.get_db_cnx()
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/env.py&quot;, line 264, in get_db_cnx
    return DatabaseManager(self).get_connection()
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/db/api.py&quot;, line 76, in get_connection
    return self._cnx_pool.get_cnx(self.timeout or None)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/db/pool.py&quot;, line 174, in get_cnx
    return _backend.get_cnx(self._connector, self._kwargs, timeout)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/db/pool.py&quot;, line 107, in get_cnx
    cnx = connector.get_connection(**kwargs)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/db/sqlite_backend.py&quot;, line 126, in get_connection
    return SQLiteConnection(path, params)
  File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/db/sqlite_backend.py&quot;, line 159, in __init__
    raise TracError('Database &quot;%s&quot; not found.'&nbsp;% path)
TracError: Database &quot;/var/trac/test/test.db&quot; not found.
</pre>
<p>สาเหตุ
</p>
<ul>
<li>เกิดจากการสร้าง environment ของโปรเจคนั้นๆ ไม่สมบูรณ์ ให้สร้าง environment ใหม่ โดยให้ขึ้น complete ด้วย ซึ่งในบางครั้งมีไฟล์ใหม่ใน path แต่ก็ยังไม่สมบูรณ์ สังเกตได้จากการรายงานของ trac-admin ตอนส้าง
</li>
<li>ไม่สามารถเปิดไฟล์ DB ของ Sqlite ได้ เนื่องจากติด permission ของ OS
</li>
</ul>
<p><a name="admin_tab_.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B8.82.E0.B8.B6.E0.B9.89.E0.B8.99" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> admin tab ไม่ขึ้น </span></h3>
<p>ยังไม่ได้ Authen
</p>
<p><a name="login_.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B9.84.E0.B8.94.E0.B9.89" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> login ไม่ได้ </span></h3>
<p>ในกรณีนี้จะเกิด error ที่หน้า login เพราะ ไม่ได้ run แบบ authentication หรือ file authentication เกิดการผิดพลาด สังเกตดูว่ามีข้อผิดพลาด(warning)ขณะรัน tracd หรือไม่ ถ้าไม่ ลองดูกรณีของชื่อโปรเจคหรือไม่(ต้องใส่ตัวเล็ก)
</p>
<p>ในกรณีทีทำทุกอย่างถูกต้องแล้วแต่ยังไม่สามารถทำ authentication ได้นั้น อาจเป้นเพราะ เมื่อรัน tracd ในส่วน &#8211;suthen=project นั้นให้ใส่ path ของเราที่เหมือนกัน URL ใน browser ของเรา เช่น โปรเจค DEMO ซึ่งในหน้า Browser ของเราปรากฎเป็น xxx.xxxxx.com/env/  ก็ใช้ใส่เป็น &#8211;authen=env<br />
<a href="http://trac.edgewall.org/wiki/TracSubversion#unsupported-vcs" class="external free" title="http://trac.edgewall.org/wiki/TracSubversion#unsupported-vcs" rel="nofollow">http://trac.edgewall.org/wiki/TracSubversion#unsupported-vcs</a>
</p>
<p><a name="repository_.26_SVN_error" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> repository &amp; SVN error </span></h3>
<pre>Warning: Can't synchronize with the repository (Unsupported version control system &quot;svn&quot;: &quot;No module named svn&quot; ). Look in the Trac log for more information.</pre>
<p><b>Trac Error</b>
</p>
<pre>Unsupported version control system &quot;svn&quot;: &quot;No module named svn&quot;</pre>
<p>ลองทดสอบดูว่า subversion module ของ python ได้ถูกติดตั้งไว้หรือไม่
</p>
<pre>http://trac.edgewall.org/wiki/TracSubversion#unsupported-vcs</pre>
<p>ถ้าขึ้นข้อความมาแสดงว่ายังไม่ได้ลง ใช้ติดตั้งดังนี้
</p>
<pre>$ apt-get install python-subversion</pre>
<p><a name="HTML_preview_not_available" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> HTML preview not available </span></h3>
<pre>HTML preview not available, since no preview renderer could handle it. Try downloading the file instead. </pre>
<p>ถ้าไปเปิดใน log ดูจะเห็นว่า
</p>
<pre>
WARNING: HTML preview using &lt;trac.mimeview.php.PHPRenderer object at 0x86db16c&gt; failed (Running (php -sn) failed: 127, sh: php: not found .) Traceback (most recent call last):   File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/mimeview/api.py&quot;, line 715, in render     rendered_content, filename, url)   File &quot;/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/mimeview/php.py&quot;, line 93, in render     raise Exception(msg) Exception: Running (php -sn) failed: 127, sh: php: not found .
</pre>
<p>ให้ลง php5-cli ไปก็เปิดได้เรียบร้อย
</p>
<pre>$ sudo apt-get install php5-cli</pre>
<p><a name="Plugin" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Plugin </span></h2>
<ul>
<li><b>ProgressMeter</b>  <a href="http://trac-hacks.org/wiki/ProgressMeterMacro" class="external free" title="http://trac-hacks.org/wiki/ProgressMeterMacro" rel="nofollow">http://trac-hacks.org/wiki/ProgressMeterMacro</a>
</li>
</ul>
<p><a name="Reference" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Reference </span></h2>
<ul>
<li><a href="http://trac.edgewall.org/wiki/TracInstall" class="external free" title="http://trac.edgewall.org/wiki/TracInstall" rel="nofollow">http://trac.edgewall.org/wiki/TracInstall</a>
</li>
<li><a href="http://trac.edgewall.org/wiki/TracEnvironment" class="external free" title="http://trac.edgewall.org/wiki/TracEnvironment" rel="nofollow">http://trac.edgewall.org/wiki/TracEnvironment</a>
</li>
<li><a href="http://trac.edgewall.org/wiki/TracFaq" class="external free" title="http://trac.edgewall.org/wiki/TracFaq" rel="nofollow">http://trac.edgewall.org/wiki/TracFaq</a>
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 111/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:2-0!1!0!!th!2!edit=0 and timestamp 20090824232930 --></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_trac_%E0%B8%9A%E0%B8%99_linux_%28Ubuntu%29">http://wiki.memoball.info/index.php/การติดตั้ง_trac_บน_linux_(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: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:Trac&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Trac (ยังไม่ได้สร้าง)">Trac</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>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/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>การเปิด permission ให้ VMware</title>
		<link>http://www.memoball.info/12/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94-permission-%e0%b9%83%e0%b8%ab%e0%b9%89-vmware/</link>
		<comments>http://www.memoball.info/12/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94-permission-%e0%b9%83%e0%b8%ab%e0%b9%89-vmware/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 05:12:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=36</guid>
		<description><![CDATA[VMware มันไม่ยอมให้ผม login ครับ
You do not have permissions to login to the server.

ทำยังไงดี&#8230; แต่หลังจากหามานานจึงไปพบกับวิธีลง VMware ใน Ubuntu เข้า
https://help.ubuntu.com/community/VMware/Server
เลยไปพบข้อความนี้เข้า

จาก WikiBall


			
ถ้า vmware ถามข้อมูลดังกล่าว
Be sure to add your normal username as VMware Server administrator
แต่เวลาติดตั้งเราใส่เป็น root ตาม default ที่มันใส่มาให้เรา

วิธีการแก้จาก root ไปเป็น user ขอเราเอง

sudo vim /etc/vmware/hostd/authorization.xmle
แล้วไปแก้ตรง บรรทัด

&#60;ACEDataUser&#62;root&#60;/ACEDataUser&#62;
เปลี่ยนเป็น user ของเราซะ




รับข้อมูลจาก (Reference) : 
จาก WikiBall : http://wiki.memoball.info/index.php/การเปิด_permission_ให้_VMware

หมวดหมู่:&#32;Vmware

			


]]></description>
			<content:encoded><![CDATA[<p>VMware มันไม่ยอมให้ผม login ครับ</p>
<p>You do not have permissions to login to the server.<br />
<span id="more-36"></span><br />
ทำยังไงดี&#8230; แต่หลังจากหามานานจึงไปพบกับวิธีลง VMware ใน Ubuntu เข้า<br />
<a href="https://help.ubuntu.com/community/VMware/Server">https://help.ubuntu.com/community/VMware/Server</a></p>
<p>เลยไปพบข้อความนี้เข้า</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%B9%80%E0%B8%9B%E0%B8%B4%E0%B8%94_permission_%E0%B9%83%E0%B8%AB%E0%B9%89_VMware">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<p>ถ้า vmware ถามข้อมูลดังกล่าว<br />
Be sure to add your normal username as VMware Server administrator<br />
แต่เวลาติดตั้งเราใส่เป็น root ตาม default ที่มันใส่มาให้เรา
</p>
<p><strong>วิธีการแก้จาก root ไปเป็น user ขอเราเอง</strong>
</p>
<pre dir="ltr" style="border: 1px inset&nbsp;; margin: 0px; padding: 6px; overflow: auto; width: 100%; text-align: left;">sudo vim /etc/vmware/hostd/authorization.xmle</pre>
<p>แล้วไปแก้ตรง บรรทัด
</p>
<pre dir="ltr" style="border: 1px inset&nbsp;; margin: 0px; padding: 6px; overflow: auto; width: 100%; text-align: left;">&lt;ACEDataUser&gt;root&lt;/ACEDataUser&gt;</pre>
<p>เปลี่ยนเป็น user ของเราซะ
</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:40-0!1!0!!th!2!edit=0 and timestamp 20090827045842 --></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%B9%80%E0%B8%9B%E0%B8%B4%E0%B8%94_permission_%E0%B9%83%E0%B8%AB%E0%B9%89_VMware">http://wiki.memoball.info/index.php/การเปิด_permission_ให้_VMware</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:Vmware&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Vmware (ยังไม่ได้สร้าง)">Vmware</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/12/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94-permission-%e0%b9%83%e0%b8%ab%e0%b9%89-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
