萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Linux 教學

Ubuntu Unity 禁用 Dash 線上搜尋與購物推薦:一鍵腳本淨化搜尋體驗

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):

  1. 檢測 Ubuntu 版本,< 12.10 或 ≥ 14.10 不處理。
  2. 關閉 com.canonical.Unity.Lenses remote-content-search 設為 none。
  3. 13.10 前:移除 unity-lens-shopping 套件。
  4. 13.10 後:停用遠端 Scope (more_suggestions-amazon.scope 等 7 個)。
  5. 將 productsearch.ubuntu.com 解析至 127.0.0.1 寫入 /etc/hosts。

手動等效操作 (Ubuntu 14.04)


# 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 商品、音樂商店等第三方推薦,回應速度提升、隱私無洩漏。

版本適用性說明

  • 僅適用 Unity 桌面 (Ubuntu 11.04 ~ 17.04 預設)。
  • Ubuntu 17.10+ 採用 GNOME Shell,無此機制。
  • Ubuntu 14.10+ 官方已預設關閉線上搜尋,無需操作。
  • Kubuntu/Xubuntu/Lubuntu 等衍生版無 Unity,不適用。
copyright © 萬盛學電腦網 all rights reserved