2008年11月5日 星期三

讓 Firefox 飆車:SwiftFox in Ubuntu

Swiftfox 簡介

Swift,英文中的意思為「快的、迅速的」,Swiftfox正是一款快速高效的第三方Firefox發行版!

大家可以到這裡瞭解一下更詳細的優化參數:http://getswiftfox.com/

主要是針對CPU的類型進行了GCC的優化編譯,讓Firefox可以執行得更加高效。

且Swiftfox可以與原版的Firefox共用Profile文件、已安裝的Add-ons和Cookies等!

安裝流程:

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 享受飆網路的快感

沒有留言: