<?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>Tarotoast's Stuff &#187; BSD+Linux</title>
	<atom:link href="http://blog.tarotoast.com/category/it/bsdlinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tarotoast.com</link>
	<description>Personal blog</description>
	<lastBuildDate>Tue, 04 May 2010 08:49:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Protected: Apple Interview</title>
		<link>http://blog.tarotoast.com/2008/07/21/452/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=apple-interview</link>
		<comments>http://blog.tarotoast.com/2008/07/21/452/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 03:44:50 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[Footprints + Diary]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/?p=452</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://blog.tarotoast.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-452">Password:<br />
<input name="post_password" id="pwbox-452" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/07/21/452/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS as Remote Desktop take 2</title>
		<link>http://blog.tarotoast.com/2008/05/20/437/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=vps-as-remote-desktop-take-2</link>
		<comments>http://blog.tarotoast.com/2008/05/20/437/#comments</comments>
		<pubDate>Tue, 20 May 2008 08:24:11 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/?p=437</guid>
		<description><![CDATA[GDM over VNC was great, until I discovered FreeNX. FreeNX was based on NX technologies by NoMachine. Quoted from Wikipedia: NX technology is a computer program that handles remote X Window System connections, and attempts to greatly improve on the performance of the native X11 protocol to the point that it can be usable over [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.tarotoast.com/wp-content/uploads/2008/05/peterinit.png"><img class="alignnone size-medium wp-image-438" title="Xubuntu over NX in VPS" src="http://blog.tarotoast.com/wp-content/uploads/2008/05/peterinit-300x225.png" alt="Xubuntu over NX in VPS" width="300" height="225" /></a></p>
<p>GDM over VNC was great, until I discovered <a href="http://freenx.berlios.de/">FreeNX</a>. <a href="http://freenx.berlios.de/">FreeNX</a> was based on <a href="http://en.wikipedia.org/wiki/NX_technology">NX</a> technologies by <a href="http://www.nomachine.com/">NoMachine</a>. Quoted from Wikipedia:</p>
<blockquote><p><strong>NX technology</strong> is a <a title="Computer program" href="http://en.wikipedia.org/wiki/Computer_program">computer program</a> that handles remote <a title="X Window System" href="http://en.wikipedia.org/wiki/X_Window_System">X Window System</a> connections, and attempts to greatly improve on the performance of the native X11 protocol to the point that it can be usable over a slow link such as a dial-up <a title="Modem" href="http://en.wikipedia.org/wiki/Modem">modem</a>.</p></blockquote>
<p>You see that right, dial-up modem. It&#8217;s been three days now since I&#8217;ve installed FreeNX on the Hardy VPS on SliceHost. Result? Impressive. Not only there&#8217;s barely anything you have to configure, it also tunnels connections through ssh by default to give better security. What makes it a winning choice is that it does not get disconnected :) In the previous VNC setup, if I&#8217;m disconnected and server did not realize, I have to log in and do a kill-all-pid-by-user script to finish off all processes related to the dead x-session. Maybe there&#8217;s workaround (I&#8217;m pretty sure there is), but I didn&#8217;t bother looking it up. With NX, say byebye to disconnections and hello to the sweet working x-session. Installation instruction for Ubuntu Gusty and Hardy is availble here: <a href="http://ubuntuforums.org/showthread.php?t=620057">Installing FreeNX in Ubuntu 7.10 Gutsy</a>. Summary:</p>
<ol>
<li>Add apt-source and key:<br />
deb <a href="http://www.datakeylive.com/ubuntu" target="_blank">http://www.datakeylive.com/ubuntu</a> hardy main<br />
deb-src <a href="http://www.datakeylive.com/ubuntu" target="_blank">http://www.datakeylive.com/ubuntu</a> hardy main</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; overflow: auto; width: 400px; text-align: left;" dir="ltr">wget http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key -O - | sudo apt-key add -
sudo apt-get update</pre>
</li>
<li>Install all necessary packages (seperately install X if you haven&#8217;t):
<pre class="alt2" style="border: 1px inset; margin: 0px; overflow: auto; width: 400px; text-align: left;" dir="ltr">sudo apt-get install expect openssh-server tcl8.4 dbus-x11 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server</pre>
</li>
<li>Make sure font path in /etc/X11/xorg.conf is set correctly like the following:
<pre class="alt2" style="border: 1px inset; margin: 0px; overflow: auto; width: 400px; text-align: left;" dir="ltr">Section "Files"

# path to defoma fonts
      FontPath     "/usr/share/fonts/X11/misc"
      FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
      FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
      FontPath     "/usr/share/fonts/X11/Type1"
      FontPath     "/usr/share/fonts/X11/100dpi"
      FontPath     "/usr/share/fonts/X11/75dpi"
      FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection</pre>
</li>
<li>Add user:
<pre class="alt2" style="border: 1px inset; margin: 0px; overflow: auto; width: 400px; text-align: left;" dir="ltr">sudo nxserver --adduser xxxx</pre>
</li>
<li>Download <a href="http://www.nomachine.com/download.php">Client</a></li>
</ol>
<p>總之，很好用就是了 XD</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/05/20/437/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn your VPS/Dedicated Server into a Remote Desktop!</title>
		<link>http://blog.tarotoast.com/2008/04/21/434/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=turn-your-vpsdedicated-server-into-a-desktop</link>
		<comments>http://blog.tarotoast.com/2008/04/21/434/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 13:15:20 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[Footprints + Diary]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/?p=434</guid>
		<description><![CDATA[警告，這很惡搞 XD Why would you do that? Because you can! And the fact that it&#8217;s a VPS/Dedicated Server, chances are its Internet connection is a lot faster than yours. As root, the following steps are tested working for Ubuntu 7.10 Gutsy. 1) Install Gnome, vnc4server, inetd apt-get install gnome compiz vnc4server openbsd-inetd 2) Enable XDMCP [...]]]></description>
			<content:encoded><![CDATA[<p>警告，這很惡搞 XD</p>
<p>Why would you do that? Because you can! And the fact that it&#8217;s a VPS/Dedicated Server, chances are its Internet connection is a lot faster than yours. As root, the following steps are tested working for Ubuntu 7.10 Gutsy.</p>
<p><b>1) Install Gnome, vnc4server, inetd</b><br />
<code>apt-get install gnome compiz vnc4server openbsd-inetd</code></p>
<p><b>2) Enable XDMCP</b><br />
Edit <code>/etc/gdm/gdm.conf</code><br />
Look for:<br />
<code>[xdmcp]<br />
Enable=false<br />
</code><br />
Change it to:<br />
<code>Enable=true<br />
</code></p>
<p><b>3) Configure inetd: </b><br />
Edit <code>/etc/inetd.conf</code>, add (one line):<br />
<code>5901    stream    tcp  nowait root  /usr/bin/Xvnc Xvnc -inetd :1 -query localhost -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared securitytypes=none -extension XFIXES</code><br />
Now restart inetd with <code>service restart openbsd-inetd</code></p>
<p><b>4) Restart GDM</b><br />
<code>service restart gdm</code></p>
<p>DONE. Now you can access your VPS as a GNOME desktop with with any vnc client at <i>serveraddress:1</i>, :1 being the display. You can add multiple displays for multiple desktops at the same time ;)</p>
<p>好孩子不要嘗試喔 XD</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/04/21/434/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH 斷線問題</title>
		<link>http://blog.tarotoast.com/2008/04/20/433/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ssh-%25e6%2596%25b7%25e7%25b7%259a%25e5%2595%258f%25e9%25a1%258c</link>
		<comments>http://blog.tarotoast.com/2008/04/20/433/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 06:54:04 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[Server Diary]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[disconnect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/?p=433</guid>
		<description><![CDATA[最近剛搬到 Slicehost，有個大問題就是 SSH 沒放多久就自動斷線 明明隔壁視窗的 Bluehost 都放了兩天 idle 都沒斷，為啥 Slicehost 才半個小時就葛掉了 稍微找了一下 (其實我丟了一張 ticket :$)，發現其實只要再 sshd 裡面修改一下就好了: 編輯 /etc/ssh/sshd_config KeepAlive yes ClientAliveInterval 60 還有因為我是從 Ubuntu 下面 GTerm 連過去的，所以其實還可以這樣改: 編輯 ~/.ssh/config ServerAliveInterval 60 然後很奇妙的是，不再斷線了 XD Bye bye SSH disconnecting every so fu*ing often :)]]></description>
			<content:encoded><![CDATA[<p>最近剛搬到 Slicehost，有個大問題就是 SSH 沒放多久就自動斷線<br />
明明隔壁視窗的 Bluehost 都放了兩天 idle 都沒斷，為啥 Slicehost 才半個小時就葛掉了<br />
稍微找了一下 (其實我丟了一張 ticket :$)，發現其實只要再 sshd 裡面修改一下就好了:<br />
編輯 /etc/ssh/sshd_config<br />
<code>KeepAlive yes<br />
ClientAliveInterval 60<br />
</code><br />
還有因為我是從 Ubuntu 下面 GTerm 連過去的，所以其實還可以這樣改:<br />
編輯 ~/.ssh/config<br />
<code>ServerAliveInterval 60<br />
</code><br />
然後很奇妙的是，不再斷線了 XD<br />
Bye bye SSH disconnecting every so fu*ing often :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/04/20/433/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2-pass ffmpeg ipod video encoding</title>
		<link>http://blog.tarotoast.com/2008/04/04/431/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=2-pass-ffmpeg-ipod-video-encoding</link>
		<comments>http://blog.tarotoast.com/2008/04/04/431/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 13:47:58 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/?p=431</guid>
		<description><![CDATA[把檔案存成 ipodconv input_file=$1 output_dir=/home/peter/.ipodvideos ffmpeg -y -i "${input_file}" -an -v 1 -threads auto -vcodec libx264 \ -b 1000k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 \ -parti4x4 1 -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 \ -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 \ [...]]]></description>
			<content:encoded><![CDATA[<p>把檔案存成 ipodconv</p>
<pre>
input_file=$1
output_dir=/home/peter/.ipodvideos

ffmpeg -y -i "${input_file}" -an -v 1 -threads auto -vcodec libx264 \
  -b 1000k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 \
  -parti4x4 1 -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 \
  -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 \
  -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 \
  -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 640x480 \
  -f mp4 -pass 1 /dev/null

ffmpeg -y -i "${input_file}" -v 1 -threads auto -vcodec libx264 -b 1000k\
  -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 \
  -partp8x8 1 -me full -subq 6 -me_range 21 -chroma 1 -slice 2 -bf 0 \
  -level 30 -g 300 -keyint_min 30 -sc_threshold 40 \
  -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 \
  -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 640x480 \
  -acodec libfaac -ab 192k -ar 48000 -ac 2 -f mp4 \
  -pass 2 "${output_dir}/${input_file}.mov"
</pre>
<p>2 pass encoding 的用意是在於第一次是作 profiling，然後第二次就參照第一次得到的 profile 來分配哪些片段要比較高的 bitrate，這樣整體壓縮起來的效果會好很多。</p>
<p>不過話說回來以上的 h264 + aac 的壓縮實在非常 CPU intensive，速度大概是 mp4 的 4~5 倍.. 囧</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/04/04/431/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Burn .ccd .img .sub in Ubuntu</title>
		<link>http://blog.tarotoast.com/2008/01/28/418/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=burn-ccd-img-sub-in-ubuntu</link>
		<comments>http://blog.tarotoast.com/2008/01/28/418/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 13:13:27 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/2008/01/28/418/</guid>
		<description><![CDATA[sudo apt-get install ccd2iso ccd2iso image.img image.iso]]></description>
			<content:encoded><![CDATA[<p>sudo apt-get install ccd2iso</p>
<p>ccd2iso image.img image.iso</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/01/28/418/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>輕鬆將 BIG5/GBK 檔名轉成 UTF-8</title>
		<link>http://blog.tarotoast.com/2008/01/05/416/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=%25e8%25bc%2595%25e9%25ac%2586%25e5%25b0%2587-big5gbk-%25e6%25aa%2594%25e5%2590%258d%25e8%25bd%2589%25e6%2588%2590-utf-8</link>
		<comments>http://blog.tarotoast.com/2008/01/05/416/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 08:19:05 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/2008/01/05/416/</guid>
		<description><![CDATA[剛 Google 了一下發現 convmv 是超級好朋友 (l) 使用如下: convmv -f big5 -t utf8 -r * 會先出現一次測試 output 如果都沒有錯誤的話會提示說加個 &#8211;notest 正式改名 所有 big5/gbk 檔名一次輕鬆解決]]></description>
			<content:encoded><![CDATA[<p>剛 Google 了一下發現 convmv 是超級好朋友 (l)</p>
<p>使用如下: convmv -f big5 -t utf8 -r *</p>
<p>會先出現一次測試 output 如果都沒有錯誤的話會提示說加個 &#8211;notest 正式改名</p>
<p>所有 big5/gbk 檔名一次輕鬆解決</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/01/05/416/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu Nvidia Black Window Fix</title>
		<link>http://blog.tarotoast.com/2008/01/04/415/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ubuntu-nvidia-black-window-fix</link>
		<comments>http://blog.tarotoast.com/2008/01/04/415/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 06:40:18 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/2008/01/04/415/</guid>
		<description><![CDATA[之前使用 Ubuntu 有個很惱人的問題終於解決了 詳情請參考 Ubuntu Nvidia Compiz “Black Window Bug” Fix 黑色視窗再見了 (l)]]></description>
			<content:encoded><![CDATA[<p>之前使用 Ubuntu 有個很惱人的問題終於解決了</p>
<p>詳情請參考 <a href="http://openradix.org/archives/317">Ubuntu Nvidia Compiz “Black Window Bug” Fix</a></p>
<p>黑色視窗再見了 (l)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2008/01/04/415/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aMSN with TrueType Fonts</title>
		<link>http://blog.tarotoast.com/2007/10/31/408/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=amsn-with-truetype-fonts</link>
		<comments>http://blog.tarotoast.com/2007/10/31/408/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 03:53:24 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[amsn]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ttf]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/2007/10/31/408/</guid>
		<description><![CDATA[Ubuntu 7.10 裡面的 aMSN 雖然是 0.97RC，但是還是沒有預設把 anti-aliasing 打開，所以整個字型醜的快要爆炸囧。3v1n0 裡面的 amsn deb 的確是有把 tk/tcl 編進去，只要點幾下把所有 package 都裝進去就可以有漂亮的字型，但是那個版本不知道為什麼一直會讓我 CPU 衝滿。所以決定乾脆自己抓下來編省得麻煩。 省得要 root 權限或以後更新跟系統衝突，所以我把東西都安裝在自己的 home directory 下面。原始碼我都丟在 ~/work 下面，然後編好的執行檔是安裝到 ~/build 下面。 TCL 在 ~/work 下面將 TCL 的原始碼抓下來 cvs -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl login ENTER cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl co -P tcl 在 ~/work/tcl/unix 設定 + 編譯 ./configure &#8211;prefix=/home/peter/build &#8211;includedir=/home/peter/build/include/tcl8.5 &#8211;enable-shared &#8211;enable-threads &#8211;enable-64bit [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 7.10 裡面的 aMSN 雖然是 0.97RC，但是還是沒有預設把 anti-aliasing 打開，所以整個字型醜的快要爆炸囧。<a href="http://download.tuxfamily.org/3v1deb/pool/gutsy/3v1n0/">3v1n0</a> 裡面的 <a href="http://download.tuxfamily.org/3v1deb/pool/gutsy/3v1n0/amsn_0.97RC1+svn20070912%7E3v1ubuntu0_i386.deb">amsn deb</a> 的確是有把 tk/tcl 編進去，只要點幾下把所有 package 都裝進去就可以有漂亮的字型，但是那個版本不知道為什麼一直會讓我 CPU 衝滿。所以決定乾脆自己抓下來編省得麻煩。</p>
<p>省得要 root 權限或以後更新跟系統衝突，所以我把東西都安裝在自己的 home directory 下面。原始碼我都丟在 ~/work 下面，然後編好的執行檔是安裝到 ~/build 下面。</p>
<p><strong>TCL</strong></p>
<ol>
<li>在 ~/work 下面將 TCL 的原始碼抓下來<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>cvs -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl login<br />
ENTER<br />
cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl co -P tcl</p></blockquote>
</li>
<li>在 ~/work/tcl/unix 設定 + 編譯<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>./configure &#8211;prefix=/home/peter/build &#8211;includedir=/home/peter/build/include/tcl8.5 &#8211;enable-shared &#8211;enable-threads &#8211;enable-64bit   &#8211;mandir=/home/peter/build/share/man &#8211;enable-man-symlinks &#8211;enable-man-compression=gzip &amp;&amp; make CFLAGS=&#8221;-g -O2 -D_REENTRANT&#8221;</p></blockquote>
</li>
<li>安裝<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>make install</p></blockquote>
</li>
</ol>
<p><strong>TK</strong></p>
<ol>
<li>在 ~/work 下面把 TK 的原始碼抓下來<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>cvs -d:pserver:anonymous@tktoolkit.cvs.sourceforge.net:/cvsroot/tktoolkit login<br />
ENTER<br />
cvs -z3 -d:pserver:anonymous@tktoolkit.cvs.sourceforge.net:/cvsroot/tktoolkit co -P tk</p></blockquote>
</li>
<li>在 ~/work/tk/unix 下設定 + 編譯<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>./configure &#8211;prefix=/home/peter/build &#8211;includedir=/home/peter/build/include/tcl8.5 &#8211;with-tcl=/home/peter/build/lib &#8211;enable-shared &#8211;enable-threads &#8211;enable-64bit &#8211;enable-man-symlinks &#8211;enable-man-compression=gzip &#8211;enable-xft &amp;&amp; make CFLAGS=&#8221;-g -O2 -D_REENTRANT&#8221;</p></blockquote>
</li>
<li>安裝<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>make install</p></blockquote>
</li>
</ol>
<p><strong>aMSN</strong></p>
<ol>
<li>在 ~/work 把 aMSN 的原始碼抓下來<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>svn co https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn amsn</p></blockquote>
</li>
<li>在 ~/work/amsn 下設定 + 編譯<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>./configure &#8211;with-tcl=/home/peter/build/lib &#8211;with-tk=/home/peter/build/lib &#8211;prefix=/home/peter/build<br />
make</p></blockquote>
</li>
<li>安裝<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>make install</p></blockquote>
</li>
</ol>
<p><strong>桌面捷徑</strong></p>
<ol>
<li>建立 ~/bin/amsn.sh 並把 amsn.sh 設成執行檔<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>#!/bin/sh<br />
/home/peter/build/bin/wish8.5 /home/peter/build/bin/amsn</p></blockquote>
</li>
<li>建立 ~/Desktop/aMSN.desktop<br />
<blockquote style="background: #dddddd none repeat scroll 0% 50%; font-family: monospace; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><p>[Desktop Entry]<br />
Version=1.0<br />
Encoding=UTF-8<br />
Name=aMSN<br />
Comment=Flock Web Browser<br />
Exec=&#8221;/home/peter/bin/amsn.sh&#8221;<br />
GenericName=aMSN<br />
Icon=/home/peter/work/amsn/desktop-icons/128&#215;128/apps/amsn.png<br />
Path=$HOME/work/amsn<br />
StartupNotify=true<br />
Terminal=false<br />
TerminalOptions=<br />
Type=Application<br />
X-KDE-SubstituteUID=false<br />
X-KDE-Username=<br />
Categories=Network;Application;<br />
GenericName[en_US]=aMSN</p></blockquote>
</li>
</ol>
<p><strong>效果比較</strong></p>
<p><img src="http://farm3.static.flickr.com/2321/1812450044_eae3fc7862_o.png" alt="aMSN from Ubuntu 7.10" /><img src="http://farm3.static.flickr.com/2008/1811606373_869bcf5de0_o.png" alt="aMSN + TCL/TK" /></p>
<p><img src="http://farm3.static.flickr.com/2049/1812449898_fbedd88062_o.png" alt="aMSN Chat Window Ubuntu 7.10 no TCL/TK" /><img src="http://farm3.static.flickr.com/2418/1811605827_b4a68257d5_o.png" alt="aMSN + TCL/TK Chat Window" /></p>
<p style="text-align: right; font-size: 8px">Blogged with <a href="http://www.flock.com/blogged-with-flock" title="Flock" target="_new">Flock</a></p>
<p><!-- technorati tags begin --></p>
<p style="font-size: 10px; text-align: right">Tags: <a href="http://technorati.com/tag/amsn" rel="tag">amsn</a>, <a href="http://technorati.com/tag/antialiasing" rel="tag">antialiasing</a>, <a href="http://technorati.com/tag/%20font" rel="tag"> font</a>, <a href="http://technorati.com/tag/%20ubuntu" rel="tag"> ubuntu</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2007/10/31/408/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 7.10 把玩心得</title>
		<link>http://blog.tarotoast.com/2007/10/07/396/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ubuntu-710-%25e6%258a%258a%25e7%258e%25a9%25e5%25bf%2583%25e5%25be%2597</link>
		<comments>http://blog.tarotoast.com/2007/10/07/396/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 11:52:48 +0000</pubDate>
		<dc:creator>tarotoast</dc:creator>
				<category><![CDATA[BSD+Linux]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.tarotoast.com/2007/10/07/396/</guid>
		<description><![CDATA[雖然說是把玩，但是會換成 Ubuntu 的原因也主要是因為工作需要。換成 Ubuntu 後最棒的事情就是我覺得我的電腦又變快了 (a)。雖然說我現在還是保持著 Vista 跟 Ubuntu 的 Dual Boot 狀態，但是真正開 Vista 的時間實在很少。以後會開 Vista 就只會在一定要開才開的狀況下吧。我絕對不光是為了 Compiz Fusion 的絢麗畫面而跳槽的 XD 用到目前為止覺得最大的問題是 Logitech 的 Webcam 不能用。雖然偵測的型號都很正常，但是 aMSN 或者 Camorama 就是不能用。第二的大問題就是 Linux 下的多個 mixer 之間的不同。對電腦來說我現在有 3 個輸入輸出裝置，一個是主機板上的 on board 音效卡，一個是 free.2 Skype Phone，還有一個是 Logitech webcam 上的麥克風。雖然進去 Ubuntu 內建的 Mixer 把輸出裝置都改成 onboard 音效卡後，大部分的軟體都正常播放，少數卻還是沒有正常的播。影響最大的是 Firefox 裡面的 Flash 沒有聲音。好吧可能在多花點時間多爬一些文章說不定就會好了，可是很浪費時間耶。 [...]]]></description>
			<content:encoded><![CDATA[<p>雖然說是把玩，但是會換成 Ubuntu 的原因也主要是因為工作需要。換成 Ubuntu 後最棒的事情就是我覺得我的電腦又變快了 (a)。雖然說我現在還是保持著 Vista 跟 Ubuntu 的 Dual Boot 狀態，但是真正開 Vista 的時間實在很少。以後會開 Vista 就只會在一定要開才開的狀況下吧。我絕對不光是為了 Compiz Fusion 的絢麗畫面而跳槽的 XD</p>
<p>用到目前為止覺得最大的問題是 Logitech 的 Webcam 不能用。雖然偵測的型號都很正常，但是 aMSN 或者 Camorama 就是不能用。第二的大問題就是 Linux 下的多個 mixer 之間的不同。對電腦來說我現在有 3 個輸入輸出裝置，一個是主機板上的 on board 音效卡，一個是 free.2 Skype Phone，還有一個是 Logitech webcam 上的麥克風。雖然進去 Ubuntu 內建的 Mixer 把輸出裝置都改成 onboard 音效卡後，大部分的軟體都正常播放，少數卻還是沒有正常的播。影響最大的是 Firefox 裡面的 Flash 沒有聲音。好吧可能在多花點時間多爬一些文章說不定就會好了，可是很浪費時間耶。</p>
<p><strong>Update: </strong>某次 Software Update 後忽然間 Firefox 的聲音又好了</p>
<p>7.10 的更新很頻繁，再怎麼說幾天後就要 Release 了，每天都可以很開心的 apt-get update + upgrade 上百個剛編好的 package。用到目前覺得最好用的部份應該還是這是一台 Linux Box：伺服器的功能全部都是內建的。有 shell access 的工作站就是比 Windows Box 好用太多了。</p>
<p>下次回台灣來把老被老木的電腦全部灌成 Ubuntu。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tarotoast.com/2007/10/07/396/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
