让 Ubuntu 上的 Unity 在线搜索功能见鬼去吧!

本文介绍如何禁用Ubuntu Unity Dash中的远程搜索功能,避免搜索词被发送至互联网及第三方平台,保护用户隐私。通过简单的命令行操作即可实现。

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

再次,我进入到 Unity dash 的终端。现在 Unity 只显示终端应用,而不是无用的垃圾,现在 Unity Dash 看起来还不错。

全部搞定,让那些杂乱的东西再也不要回来了。

原文发布时间为:2014-05-23

本文来自云栖社区合作伙伴“Linux中国”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值