当前位置: 首页>>技术教程>>正文


我如何仅删除购物搜索?

,

问题描述

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

更新:有没有办法区分搜索远程服务器(Ebay、Amazon、AskUbuntu)的范围和搜索本地计算机的范围?还是我必须全部检查一遍?

最佳方案

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

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

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

  • 打开 Dash,

  • 转到应用程序镜头(使用鼠标手动操作或使用 Super + A 键盘快捷键),

  • 点击右侧的 “Filter results”,然后在 “Type” 下,

  • 选择 “Dash plugins”。

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

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

禁用亚马逊/购物建议 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']"

次佳方案

现在有一个 GUI 可以执行此操作。

打开 “System Settings”(在 Dash 中输入)。然后转到“安全和隐私”。然后是 “Search”。然后将“包括 on-line 搜索结果”设置为关闭。

免责声明:这很可能会阻止系统将输入到 Dash 中的所有内容打电话回家,但我对此并不确定。

第三种方案

事实证明 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

对于 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(本地主机)

第四种方案

我假设你还想移除一些其他镜头。因此,首先了解一下实际安装的内容:

打开终端:CTRL ALT T 并输入

 apt-cache policy "unity-lens-*"|grep -B1 Installed

这将为您提供以下形式的列表:

unity-lens-video:
  Installed: (none)
--
unity-lens-shopping:
  Installed: (none)
--
unity-lens-friends:
  Installed: 0.1.1bzr13.04.12-0ubuntu1
--
....

现在您可以决定要删除什么,然后使用例如

sudo apt-get remove unity-lens-friends

直到达到系统所需的状态。

每当您不确定镜头的功能时,您都可以使用 apt-cache show 获取所需的信息,例如

apt-cache show unity-lens-files

再往下走一点你会看到:

Description-en: File lens for unity
 This package contains the "file" lens which can be used
 inside Unity to browse your files.

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/14545.html,未经允许,请勿转载。