預設 generic 核心為通用編譯,桌機可改用 linux-rt (2.6.24-16-rt) 核心,具備搶佔式排程,大幅縮短程式啟動與切換延遲。
安裝:sudo apt-get install linux-rt
/etc/modprobe.d/aliases,將 alias net-pf-10 ipv6 改為 alias net-pf-10 off。/etc/hosts 中所有 IPv6 相關行 (以 # 開頭)。/etc/modprobe.d/bad_list,內容同樣為 alias net-pf-10 off。cd /etc/apt
sudo su
mv sources.list sources.list-bak
sed -e '/^#/d' -e 's/deb-src/#deb-src/' sources.list-bak > sources.list
移除註解行與原始碼倉庫,加速 apt-get update。
選單 → 系統 → 偏好設定 → 會話,取消不需要的自動啟動服務。
編輯 /etc/init.d/rc,將 CONCURRENCY=none 改為 CONCURRENCY=shell (啟用 shell 風格平行啟動)。注意:拼寫錯誤會導致無法開機,請三思後修改。
sudo apt-get install pdnsd/etc/pdnsd.conf,在 global 區段加入上游 DNS 伺服器設定 (範例):server {
ip="x.x.x.x"; # 第一組 DNS IP
timeout=30;
interval=900;
uptest=none;
ping_timeout=500;
purge_cache=off;
caching=on;
}
server {
ip="x.x.x.x"; # 第二組 DNS IP
timeout=30;
interval=900;
uptest=none;
ping_timeout=500;
purge_cache=off;
caching=on;
}
/etc/resolv.conf 第一行為 nameserver 127.0.0.1,指向本地快取。sudo apt-get install rar unrar
sudo ln -fs /usr/bin/rar /usr/bin/unrar
之後終端機直接用 unrar 指令,檔案管理器也能自動處理 .rar 檔。
sudo apt-get autoclean:清除舊版本套件快取sudo apt-get clean:清除所有套件快取sudo apt-get autoremove:移除不再需要的孤立套件