Ubuntu 12.10~14.04 Unity Dash 預設啟用「線上搜尋」,輸入關鍵字會向 Canonical 伺服器傳送查詢並回傳 Amazon、Ubuntu One Music Store 等商業推薦結果。隱私關注者可透過官方修正腳本 fixubuntu.sh 一鍵關閉遠端搜尋、移除購物鏡頭、封鎖廣告伺服器,恢復純本地應用搜尋。
wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash
腳本核心邏輯 (適用 Ubuntu 12.10 ~ 14.04):
com.canonical.Unity.Lenses remote-content-search 設為 none。unity-lens-shopping 套件。more_suggestions-amazon.scope 等 7 個)。productsearch.ubuntu.com 解析至 127.0.0.1 寫入 /etc/hosts。
# 1. 關閉遠端搜尋
gsettings set com.canonical.Unity.Lenses remote-content-search none
# 2. 停用商業 Scope
gsettings set com.canonical.Unity.Lenses disabled-scopes \
"['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', \
'more_suggestions-populartracks.scope', 'music-musicstore.scope', \
'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', \
'more_suggestions-skimlinks.scope']"
# 3. 封鎖廣告伺服器
echo "127.0.0.1 productsearch.ubuntu.com" | sudo tee -a /etc/hosts
Dash 搜尋僅顯示本地安裝應用、檔案、系統設定,不再出現 Amazon 商品、音樂商店等第三方推薦,回應速度提升、隱私無洩漏。