如何仅删除购物搜索?

Ama*_*nda 16 lenses unity-dash

我有一个全新的 13.10 安装,我希望所有这些购物间谍软件的废话都消失了。搜索“Ubuntu 购物间谍软件废话”让我找到了,apt-get remove unity-lens-shopping但我实际上没有看到 unity-lens-shopping 包。如何在 13.10 中删除购物搜索?

更新:有什么方法可以区分搜索远程服务器(Ebay、Amazon、AskUbuntu)的范围和搜索我的本地计算机的范围?还是我必须全部通过?

Win*_*tet 19

您无法在 Ubuntu 13.10 中删除 Unity Shopping Lens,因为没有 Shopping 镜头。Ubuntu 13.10 带有一个称为 Unity Smart Scopes(或“100 个范围”)的功能,它使用一个巨大的范围列表在 Dash 中显示结果,其中一些用于购物。因此,如果您不想在 Dash 中提供购物建议,则必须禁用这些购物范围(见下文)。没有购物建议的 Unity Dash

如何在 Ubuntu 13.10 中禁用 Unity Dash 插件(范围)

在 Ubuntu 13.10 Saucy Salamander 中禁用 Dash 插件(范围):

  • 打开破折号,
  • 转到应用程序镜头(使用鼠标手动执行或使用 Super + A 键盘快捷键),
  • 单击右侧的“过滤结果”和“类型”下,
  • 选择“Dash 插件”。

应列出所有 Dash 搜索插件(范围)。

要禁用插件,请单击它,然后单击“禁用”按钮。稍后您可以以相同的方式重新启用它们。

禁用亚马逊/购物建议 Unity Dash 范围

如果您不想在 Dash 中获得购物建议,请禁用以下范围(使用上述说明):Amazon、Ebay、Music Store、Popular Tracks Online、Skimlinks、Ubuntu One Music Search 和 Ubuntu Shop。

要从命令行禁用所有这些购物 Dash 插件/范围,请使用以下命令

 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']"
Run Code Online (Sandbox Code Playgroud)


Ben*_*enB 6

现在有一个用于执行此操作的 GUI。

打开“系统设置”(在 Dash 中输入)。然后转到“安全和隐私”。然后“搜索”。然后将“包括在线搜索结果”设置为关闭。

免责声明:这似乎可能会阻止系统将所有输入到 Dash 的内容打回家,但我对此并不乐观。


Ama*_*nda 5

事实证明,Fix Ubuntu有解决方案:

#!/bin/bash

# Figure out the version of Ubuntu that you're running
V=`/usr/bin/lsb_release -rs`;

# The privacy problems started with 12.10, so earlier versions should do nothing
if [ $V \< 12.10 ]; then
  echo "Good news! Your version of Ubuntu doesn't invade your privacy.";
else
  # Turn off "Remote Search", so search terms in Dash don't get sent to the internet
  gsettings set com.canonical.Unity.Lenses remote-content-search none;

  # If you're using earlier than 13.10, uninstall unity-lens-shopping
  if [ $V \< 13.10 ]; then
    sudo apt-get remove -y unity-lens-shopping;

  # If you're using a later version, disable remote scopes
  else
    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']";
  fi;

  # Block connections to Ubuntu's ad server, just in case
  if ! grep -q productsearch.ubuntu.com /etc/hosts; then
    echo -e "\n127.0.0.1 productsearch.ubuntu.com" | sudo tee -a /etc/hosts >/dev/null;
  fi;

  echo "All done. Enjoy your privacy.";
fi
Run Code Online (Sandbox Code Playgroud)

对于 13.10,即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']";编辑/etc/hosts以将请求重定向productsearch.ubuntu.com到 127.0.0.1 (localhost)