歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 讓 Ubuntu 上的 Unity 在線搜索功能見鬼去吧!

讓 Ubuntu 上的 Unity 在線搜索功能見鬼去吧!

日期:2017/2/28 14:31:27   编辑:Linux教程

無論何時,你開始在 Unity Dash 搜索計算機中的應用程序或文件時,你的檢索詞將被自動發送給第三方,如亞馬遜,並且第三方將依據您的搜索詞顯示相關結果(主要是廣告)。如果你不喜歡這個功能,感覺真的打擾到你,你可以禁用它。

例如,當我在 Unity Dash 中輸入 “Terminal” 時,將顯示 “Terminal” 應用和 web 上其他第三方的東東(我要發狂了!我不想要這些!)。

正如上面的截圖所見,Unity顯示內置的 Terminal 應用、引用鏈接、天氣鏈接和其他第三方的推薦,如電影等。這是非常惱人的並且在 Unity Dash 上看起來很糟。同時,它顯示了太多的搜索結果,並使我迷惑。

如果你像我一樣不需要這個功能,在你的終端輸入以下命令:

  1. wget -q -O - https://fixUbuntu.com/fixubuntu.sh | bash

上述腳本的內容如下:

  1. #!/bin/bash
  2. GS="/usr/bin/gsettings"
  3. CCUL="com.canonical.Unity.lenses"
  4. # Figure out the version of Ubuntu that you're running
  5. V=`/usr/bin/lsb_release -rs`
  6. # The privacy problems started with 12.10, so earlier versions should do nothing
  7. if awk "BEGIN {exit !($V < 12.10 || $V >= 14.10)}";then
  8. echo "Good news! This version of Ubuntu is not known to invade your privacy."
  9. else
  10. # Check Canonical schema is present. Take first match, ignoring case.
  11. SCHEMA="`$GS list-schemas | grep -i $CCUL | head -1`"
  12. if[-z "$SCHEMA"]
  13. then
  14. printf "Error: could not find Canonical schema %s.\n""$CCUL"1>&2
  15. exit1
  16. else
  17. CCUL="$SCHEMA"
  18. fi
  19. # Turn off "Remote Search", so search terms in Dash don't get sent to the internet
  20. $GS set $CCUL remote-content-search none
  21. # If you're using earlier than 13.10, uninstall unity-lens-shopping
  22. if[ $V \< 13.10];then
  23. sudo apt-get remove -y unity-lens-shopping
  24. # If you're using a later version, disable remote scopes
  25. else
  26. $GS set $CCUL disabled-scopes \
  27. "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope',
  28. 'more_suggestions-populartracks.scope', 'music-musicstore.scope',
  29. 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope',
  30. 'more_suggestions-skimlinks.scope']"
  31. fi;
  32. # Block connections to Ubuntu's ad server, just in case
  33. if! grep -q "127.0.0.1 productsearch.ubuntu.com"/etc/hosts;then
  34. echo -e "\n127.0.0.1 productsearch.ubuntu.com"| sudo tee -a /etc/hosts >/dev/null
  35. fi
  36. echo "All done. Enjoy your privacy."
  37. fi

再次,我進入到 Unity dash 的終端。現在 Unity 只顯示終端應用,而不是無用的垃圾,現在 Unity Dash 看起來還不錯。

全部搞定,讓那些雜亂的東西再也不要回來了。

歡呼~!

更新:這一招只適用Unity desktop。如果你使用其他的比如GNOME,LXDE或Xfce,你不用這麼做。同時,這個在線搜索功能將不會包含在Ubuntu 14.10和即將推出的版本中。

Ubuntu 14.04 下載、安裝、配置的相關知識 http://www.linuxidc.com/Linux/2014-04/100370.htm

Ubuntu 14.04系統下載地址:http://www.linuxidc.com/Linux/2014-04/100352.htm

Windows 7下硬盤安裝Ubuntu 14.04圖文教程 http://www.linuxidc.com/Linux/2014-04/100983.htm

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved