<?xml version="1.0" encoding="utf-8"?>
        <?xml-stylesheet type="text/css" href="http://studentpages.scad.edu/~yimchu20/weblog/styles/feed.css"?>
<rss version="2.0"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel>
<title>Wesly is dreaming.</title>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/linux_note/index.html</link>
<description>news, diary, journal, whatever, 個人外部記憶，怎樣都行....</description>
<dc:language>en-us</dc:language>
<dc:creator>Wesly Chu</dc:creator>
<dc:date>2008-09-18T03:14:53+08:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2008/09/18/index.html#e2008-09-18T03_14_49.txt</link>
<title>改變fluxbox下移動視窗的預設熱鍵 </title>
<dc:date>2008-09-18T03:14:49+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[<p>
使用Maya時，通常使用Alt鍵搭配滑鼠以改變攝影機視角。但是這個組合技會和X window預設的移動視窗功能相衝。一般使用Gnome或KDE者，可方便的利用圖形介面去修改預設熱鍵。使用fluxbox則可修改使用者目錄下的設定檔：
<pre>
vi ~/.fluxbox/init
</pre>
將其中的
<pre>
session.modKey: Mod1
</pre>
修改為
<pre>
session.modKey: Mod4
</pre>
即可改由視窗鍵取代Alt鍵。
</p>]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2008/08/22/index.html#e2008-08-22T13_51_35.txt</link>
<title>如何使用gnome-mount </title>
<dc:date>2008-08-22T13:51:35+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[<p>
在比較新的Linux發行版裡，Gnome桌面環境下掛載硬碟磁區的方式和以往稍有不同。傳統的mount指令還是可以使用，不過一般桌面環境下可以用gnome-mount使用HAL代替。掛載可使用以下例子：
<pre>
gnome-mount -d /dev/sda1 -m DISK1
</pre>
卸載則是：
<pre>
gnome-mount -u -d /dev/sda1
</pre>
在Fedora Core
8預設的環境下，這樣作會把/dev/sda1掛載到/media/DISK1。也不用切換成root以使用mount。
</p>]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2008/07/23/index.html#e2008-07-23T19_57_24.txt</link>
<title>使用DrQueue 0.64.3搭配Maya8.5與Linux架設Render Farm </title>
<dc:date>2008-07-23T19:57:24+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[<p>
利用DrQueue架設Render Farm時，可搭配各種網路磁碟服務（NFS or
Samba）來達成。我利用Fedora Core
8內裝好的NFS來進行架設。當作檔案共享的主機設定好exports檔之外，要注意防火牆與目錄基本權限的設定。務必確定連線順暢。DrQueue的安裝只要按照安裝文件一步步進行即可。使用Fedore
Core可以很方便的裝好GCC，Python與Scons等套件以進行編譯。DrQueue本身具備跨平台的特性，利用Cygwin也可在Windows的環境下編譯。不過，安裝時有很多地方得自行手動執行，並不如Linux環境方便。
<p>
</p>
DrQueue預設的設定檔位置是先搜尋以下目錄
<pre>
/etc/drqueue
/usr/local/drqueue/etc
</pre>
其中的.conf檔案多半是告訴相關程式如何找分享的logs,tmp,db這些子目錄。重點是，logs和tmp這兩個子目錄必須讓所有的master和slave機器都能讀取寫入，tmp子目錄也必須讓每台slave機器能執行其中所暫存的script。因此在利用NFS進行分享檔案時，就要注意exports的寫法。此外，logs子目錄是用來收集所有機器運算後產生log檔，因此也必須讓所有Render
Farm裡的機器有寫入的權限。
</p>
<p>
在搭配Maya8.5使用DrQueue時，預設的樣板script會去呼叫
<pre>
/usr/aw/maya/bin/Render
</pre>
這個指令。不過因為Maya的預設安裝路徑已改為
<pre>
/usr/autodesk/maya8.5
</pre>
所以簡單的解法便是
<pre>
ln -s /usr/aw/maya /usr/autodesk/maya8.5
</pre>
</p>
<p>
當然，為了放置要執行算圖的檔案和專案，還要有一個目錄是開放給所有機器都能讀寫的。這個目錄在每個slave機器上用的掛載點必須相同。一般使用者要算圖時，只要將專案檔放置在這個目錄下，再利用drqman即可方便的使用。
</p>]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2008/03/10/index.html#e2008-03-10T00_50_00.txt</link>
<title>Note for Using Maya 8.5 in Fedora Core 8 </title>
<dc:date>2008-03-10T00:50:00+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[<p>
Latest Linux distributions usually contain 3D desktop effect packages. These
desktop effects are useful for general task but not useful when you are using
Maya. This is because the hotkeys are binded to different functions.
Otherwise, using AIGLX or other configurations may crash Maya sometimes. 
</p>]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2007/05/16/index.html#e2007-05-16T23_39_18.txt</link>
<title>使用putty顯示zh_TW.UTF-8的設定 </title>
<dc:date>2007-05-16T23:39:18+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[當使用putty連線到Linux主機時,如果主機使用的環境是zh_TW.UTF-8,作以下設定:<br>
在putty設定裡選Windows->Translation設定Character set translation為UTF-8.同時選擇使用中文字型.]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2007/03/16/index.html#e2007-03-16T05_41_59.txt</link>
<title>Brightness Control of Fujitsu T4020 in Linux (Fedora Core 6)</title>
<dc:date>2007-03-16T05:41:59+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[如果要直接控制的話，以root的權限執行以下的動作。
<pre>
echo 1 > /proc/acpi/video/GFX0/LCD/brightness
</pre>
The number means the brightness level. It can be from 1(dark) to 8(bright).]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2007/02/17/index.html#e2007-02-17T05_16_30.txt</link>
<title>在Fujitsu T4020上安裝Fedora Core 6 </title>
<dc:date>2007-02-17T05:16:30+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[由於一時大意，這台安裝Windows XP的Fujitsu
T4020不小心中毒。已經好幾年沒讓自己的電腦碰過病毒的我，決定就直接轉換作業系統。由於有了之前嘗試安裝Fedora Core 5的經驗，這次並沒有遇到太多問題。以下列出大致的步驟與安裝筆記。<br>
<li>首先，備份需要保留的檔案，並按照一般的方式用光碟機安裝完整個系統。安裝完成後，設定好基本的iptables並進行自動更新以取得較新版本的系統核心。</li>
<li>保持有線網路連線的狀態，設定好使用<a href="http://rpm.livna.org/rlowiki/UsingLivna">rpm.livna.org</a>上面的資源，並安裝yumex。
<pre>rpm -ivh http://rpm.livna.org/livna-release-6.rpm</pre>
</li>
<li>設定無線網路的部份，先安裝ipw2200的驅動程式，並啟動 NetworkManager、NetworkManagerDispatcher 這兩個服務。並依個別需求安裝wifiradar。詳細的部份可參考<a href="http://fedoraproject.org/wiki/Tools/NetworkManager">Fedora Project Wiki</a>。</li>
<li>Wacom面板的部份參考<a href="http://ubuntuforums.org/showthread.php?p=612960#post612960">Ubuntu Forums上面的設定方式</a>來設定/etc/X11/xorg.conf檔。並需記得修改以下為目前ServerLayout的設定方式：
<pre>
Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics" "CorePointer"
        InputDevice    "cursor" "SendCoreEvents"
        InputDevice    "stylus" "SendCoreEvents"
        InputDevice    "eraser" "SendCoreEvents"
EndSection
</pre><br>
考慮到平板電腦LCD旋轉90度的使用，Wacom裝置的部份則如以下設定。
<pre>
Section "InputDevice"
        Identifier  "stylus"
        Driver      "wacom"
        Option      "Type" "stylus"
        Option      "SendCoreEvents" "true"
        Option      "Device" "/dev/ttyS0"
        Option      "Mode" "absolute"
        Option      "ForceDevice" "ISDV4"
        Option      "Rotate" "CW"
EndSection
Section "InputDevice"
        Identifier  "eraser"
        Driver      "wacom"
        Option      "Type" "eraser"
        Option      "Device" "/dev/ttyS0"
        Option      "Mode" "absolute"
        Option      "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
        Identifier  "cursor"
        Driver      "wacom"
        Option      "Type" "cursor"
        Option      "Device" "/dev/ttyS0"
        Option      "Mode" "absolute"
        Option      "ForceDevice" "ISDV4" # Tablet PC ONLY
        Option      "Rotate" "CW"
EndSection
</pre>
</li>
<li>為了能每次開機都直接可以使用數位筆的功能，建立/etc/rc.serial檔並在其中寫入下面的內容（其實寫在/etc/rc.local也是可以）。
<pre>
setserial /dev/ttyS0 port 0x0220 irq 4 autoconfigure
</pre>
</li>
<li>利用Gnome的鍵盤捷徑鍵設定音量控制。</li>
<li>在連接第二螢幕的狀態下，顯示螢幕的切換應可正常作用，否則檢查相關驅動或公用程式是否有安裝。</li>
<li>內建SD讀卡機可正常使用。</li>
<br>
唯一可惜的是目前無法控制LCD亮度與使用panal key。其他功能大致都算正常。（反正我沒有PCMCI、藍牙和紅外線裝置）]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2006/10/24/index.html#e2006-10-24T00_12_00.txt</link>
<title>利用Cygwin對Xwindow的遠端遙控 </title>
<dc:date>2006-10-24T00:12:00+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[Reference:<a href="http://zechs.dyndns.org/wordpress/?p=169">Use Cygwin to Connect to Gnome Desktop in Gentoo Linux via XDMCP</a><br>
為了避免以後忘記或是連結失效，稍微作一下整理。<br>
首先，修改xdm的部份可參考鳥哥的私房菜網站，依據個人偏好改xdm.conf、gdm.conf或kdm.conf。這可以直接使用GUI工具設定，或是如參考資料所說修改/etc/X11/gdm/custom.conf
<pre>
[xdmcp]
Enable = true
</pre>
防火牆的設定部份也是相同的，總之要確保Linux端的X可接受外部連線，Windows端的Xclient也接受連線。Linux端如用Port UDP 177，就要開放client端可以連線。Windows端除了確定Cygwin裡的Xwin.exe可以對外及對本機連線外，Windows防火牆的TCP port 16001也要接受連線。最後將startxwin.bat改成如下的樣子再另存新檔，之後即可直接執行。
<pre>
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/X11R6/bin
SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%
SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix
if "%OS%" == "Windows_NT" goto OS_NT
REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me
goto STARTUP

:OS_NT
REM Windows NT/2000/XP/2003
echo startxwin.bat - Starting on Windows NT/2000/XP/2003

:STARTUP
%RUN% esd -nobeeps -public -tcp -port 999 &
%RUN% XWin -fullscreen -clipboard -ac -query 192.168.2.2 :1 &
</pre>
我的主機是Fedora Core 4，不過大致上的設定都是一樣的。雖然目前聲音的部份沒搞定，但倒是可以考慮把螢幕提早賣了。]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2006/10/03/index.html#e2006-10-03T00_56_48.txt</link>
<title>Installing Liquid and Pixie for Maya in Fedora Core 4 Linux </title>
<dc:date>2006-10-03T00:56:48+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[<p>
Recently, a new binary version of Liquid for Maya has been released. It can work with the latest binary version of Pixie under Linux. I found some problems when I start to use it at the first time. These problems happened because of the wrong environment variable setting. I tried to modify the Maya.env in my user directory, and I also made some soft link to enforce Maya searching the MEL scripts from Liquid and the lib files from Pixie.
</p>
<p>
The first problem is the Liquid plug-in can't find lib files from Pixie. So I run these command by sudo .
<pre>
ln -s /opt/pixie/lib/libri.so.0 /usr/aw/maya/lib/
ln -s /opt/pixie/lib/lisdr.so.0 /usr/aw/maya/lib/
</pre>
Then it still says missing some MEL scripts, so I did this.
<pre>
ln -s /usr/share/liquid/mel/* /usr/aw/maya/script/AETemplates/
</pre>
When I use "MAYA_SCRIPT_PATH" in my Maya.env, it may not work correctly because I did something before.<br>
Because the binary package of Liquid is installed in /usr/share/liquid, I add this line in my Maya.env file.
<pre>
LIQUIDHOME=/usr/share/liquid
</pre>
OK! Finally, in Window -> Rendering Editors -> Render Settings, change "Render Using" from Maya software to Liquid. I selected the liqmaya.so when it asked me to chose a display driver.
</p>
<p>
I still have some problems with Liquid, and the error messages are not useful to me. Liquid in Windows is much better.<BR> 
這些新的套件檔其實已經比之前的好用多了，不過一些設定上的問題其實還是出在系統環境變數和Maya.env上。目前的這個rpm檔並未解決這些問題，或許之後的版本會有所改進。有空或許多玩玩Liquid和其他算圖引擎的搭配，看看能不能作些有品質的圖出來再說。不管如何還是感謝Liquid,Pixie和Aqsis及其他的開發者，讓我有這些軟體可用。
</p>]]></description>
</item>
<item>
<link>http://studentpages.scad.edu/~yimchu20/weblog/archives/2006/09/04/index.html#e2006-09-04T22_49_31.txt</link>
<title>在Fujitsu T4020D上安裝Fedora Core 5 </title>
<dc:date>2006-09-04T22:49:31+08:00</dc:date>
<dc:creator>Wesly Chu</dc:creator>
<dc:subject>Linux Note</dc:subject>
<description><![CDATA[這兩天參考網路上相關的資料，試著將系統改成FC5。一般的安裝設定大致上是沒問題的。不過由於我個人對這台平板電腦的硬體不熟悉，有些環節實在設定不起來。一般關於無線網卡和Wacom驅動的問題都已經有解決的方案了。但主要的熱鍵功能並無法有效的使用，且Xwindow的旋轉顯示功能似乎要作一些特殊的設定。讀卡機的驅動也是一個問題。在經歷兩天的的奮戰後，我決定還是裝回原廠的WinXP。<br>
唉，眼下還是把畢業論文的事情搞定再說。 Orz....]]></description>
</item>
</channel>
</rss>
