瀏覽單個文章
冰漾
Major Member
 
冰漾的大頭照
 

加入日期: Jul 2004
文章: 259
七、中文輸入法支援(註三)
1. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以安裝輸入法套件(註四):
代碼:
sudo apt-get install scim
sudo apt-get install scim-chinese
sudo apt-get install scim-config-socket
sudo apt-get install scim-gtk2-immodule
sudo apt-get install scim-tables-zh

2. 設定 SCIM 啟動檔, 在終端機輸入下面語法:
代碼:
sudo touch /etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 646 /etc/X11/Xsession.d/74custom-scim_startup
echo 'export XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export GTK_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export XIM_PROGRAM="scim -d"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export QT_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'scim -f x11 -d' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'scim -f socket  -d' >>/etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 644 /etc/X11/Xsession.d/74custom-scim_startup

3. 安裝新酷音輸入法(選擇安裝), 在終端機輸入下面語法:
代碼:
sudo apt-get install scim-chewing

4. 安裝完畢請重新開機

註三:系統預設安裝 SCIM, SCIM 只是一個輸入法的『平台』而已, 還需要安裝輸入法才可以, 其他的輸入法平台還有『GCIN』、『OXIM』; KDE 底下則是『SKIM』...
註四:小弟僅選擇額外安裝新酷音輸入法(scim-chewing)而已...

八、SCIM 設定(註五)
1. 打開『系統』>>『偏好設定』>>『SCIM 輸入法設定』
2. 『介面』>>『全域設定』>>『下一種輸入法』及『上一種輸入法』, 使用下面設定:
代碼:
Shift+Shift_L+KeyRelease,Shift+Shift_R+KeyRelease

3. 『輸入法引擎』>>『全域設定』, 僅啟用英文鍵盤、中文(繁體), 其他全部停用; 展開『中文(繁體)』設定快速鍵:
代碼:
Control+space

4. 『輸入法引擎』>>『新酷音』>>『鍵盤』>>『切�**銦z使用下面設定:
代碼:
Ctrl+space

5. 『輸入法引擎』>>『新酷音』>>『鍵盤』>>『新酷音中英切�**銦z使用下面設定:
代碼:
Shift+Shift_L+KeyRelease,Shift+Shift_R+KeyRelease

6. 完成上面設定, 按下確定離開之後請重新啟動

註五:這是小弟自己慣用的設定, 不一定要照著設定

九、讓 Ubuntu 自動登入
1. 打開『系統』>>『管理』>>『登入畫面』, 跳出密碼輸入框的時候請輸入使用者密碼
2. 轉跳至『安全性』頁面, 勾選『啟動自動登入』並選擇自動登物的使用者帳戶, 完成後關閉視窗即可, 下次開機就會自動以選擇的帳戶自動登入

十、讓 Firefox 飆車:SwiftFox
1. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以開啟套件庫列表:
代碼:
sudo gedit /etc/apt/sources.list

2. 在套件庫列表最後下面新增下面字串:
代碼:
deb http://getswiftfox.com/builds/debian unstable non-free

3. 完成後儲存、離開並回到終端機, 輸入下面語法, 更新套件庫, 並安裝 SwiftFox(適用於Athlon XP 註六):
代碼:
apt-get update && apt-get install swiftfox-athlon-xp

4. 或者直接到『這裡』下載, deb 檔案直接點取並執行安裝即可

註六:除非 Ubuntu 是安裝 AMD64 的版本, 否則 K8 也請安裝 Athlon XP 版本, 或者改裝 Pentium 4 的版本

十一、中文化 SwiftFox
1. 到 MozTW 下載 Linux 版的 Firefox 並解壓縮
2. 打開『系統』>>『管理』>>『登入畫面』, 跳出密碼輸入框的時候請輸入使用者密碼
3. 轉跳至『安全性』頁面, 勾選『允許本地系統管理員登入』, 關閉離開
4. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法修改管理員密碼:
代碼:
passwd root

5. 密碼修改完畢之後, 登出並以『root』以及剛剛更改的密碼登入
6. 打開剛剛解壓縮的目錄, 複製『chrome』裡的『zh-TW.jar』、『zh-TW.manifest』兩個檔案
7. 打開『位置』>>『電腦』>>『檔案系統』>>『usr』>>『lib』>>『swiftfox』>>『chrome』>>貼上, 然後把『en-US.jar』、『en-US.manifest』刪除
8. 登出, 再以一使用者帳號登入
9. 打開『系統』>>『管理』>>『登入畫面』, 跳出密碼輸入框的時候請輸入使用者密碼
10. 轉跳至『安全性』頁面, 取消勾選『允許本地系統管理員登入』, 關閉離開

十二、SwiftFox 終極加速
1. 先確認您電腦與網路的等級
2. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以更改 Firefox/SwiftFox 設定:
代碼:
cd ~/.mozilla/firefox/*.default/
gedit prefs.js

3. 程式開啟 prefs.js 之後, 在最後面新增下面語法, 以初步加速:
代碼:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);

4. 按照電腦等級、網路速度自行選擇下面語法, 並新增在 prefs.js 最後面:
- a. 電腦配備、網路速度
代碼:
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);

-b. 電腦配備、網路速度稍慢
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- c. 電腦配備、網路速度
代碼:
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun" 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- d. 電腦配備、網路速度
代碼:
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);

- e. 電腦配備、網路速度
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);

5. 完成後, 儲存並離開編輯器, 重新啟動 SwiftFox 享受飆網路的快感

十三、替 Firefox/SwiftFox 安裝 Plug-in
1. 到『這裡』下載 Flash Player 的 Firefox Plug-in (註七)
2. 下載完畢並解壓縮之後, 關閉 Firefox/SwiftFox, 執行 『flashplayer-installer』, 跳出的對話框選擇『在終端機中執行』, 接著按照步驟執行就可以了...
3. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以安裝 Firefox Jre Plug-in:
代碼:
sudo apt-get install sun-java5-jre sun-java5-plugin

4. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以安裝 Firefox 多媒體播放外掛:
代碼:
sudo apt-get install totem-gstreamer-firefox-plugin

5. 其餘外掛(如:Mplayer Plug-in)請用 Automatix2 安裝...

註七:Flash Player 請務必安裝 7 版, 9 版會導致 Firefox 崩潰...

十四、總結
老實說, 還漏掉許多沒有打上來...
在這幾天使用期間, 小弟安裝不下 15 次, 遇到最大的兩個問題:
1. 如何上網
2. 中文輸入法無法在某些程式上正常運作
不過目前都已經解決, 剩下的看非官方中文使用手冊就可以了...

祝大家好運~
 
舊 2006-12-29, 11:23 PM #2
回應時引用此文章
冰漾離線中