服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Ubuntu - Ubuntu Unity在线搜索如何只显示终端应用

Ubuntu Unity在线搜索如何只显示终端应用

2019-10-24 19:45系统之家 Ubuntu

在Ubuntu下使用Unity的在线搜索功能的时候,一定遇到过这样的问题,那就是搜索出来的结果总是带有第三方应用,关于这个问题可以通过下面的方法来解决

相信大家在Ubuntu下使用Unity的在线搜索功能的时候,一定遇到过这样的问题,那就是搜索出来的结果总是带有第三方应用,不胜其烦,下面小编就教大家让Unity只显示终端应用的方法。

Ubuntu Unity在线搜索如何只显示终端应用

  正如上面的截图所见,Unity显示内置的 Terminal 应用、引用链接、天气链接和其他第三方的推荐,如电影等。显示了太多的搜索结果。

  在终端输入以下命令:

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

  上述脚本的内容如下:

  #!/bin/bash

  GS=“/usr/bin/gsettings”

  CCUL=“com.canonical.Unity.lenses”

  # 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 awk “BEGIN {exit !($V 《 12.10 || $V 》= 14.10)}”;then

  echo “Good news! This version of Ubuntu is not known to invade your privacy.”

  else

  # Check Canonical schema is present. Take first match, ignoring case.

  SCHEMA=“`$GS list-schemas | grep -i $CCUL | head -1`”

  if[-z “$SCHEMA”]

  then

  printf “Error: could not find Canonical schema %s.\n”“$CCUL”1》&2

  exit1

  else

  CCUL=“$SCHEMA”

  fi

  # Turn off “Remote Search”, so search terms in Dash don’t get sent to the internet

  $GS set $CCUL 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

  $GS set $CCUL 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 “127.0.0.1 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

  再次进入Unity dash 的终端。现在Unity 只显示终端应用。

Ubuntu Unity在线搜索如何只显示终端应用

  更新:这一招只适用Unity desktop。如果你使用其他的比如GNOME,LXDE或Xfce不用这么做。同时,这个在线搜索功能将不会包含在Ubuntu 14.10和即将推出的版本中。

  上面就是Ubuntu unity在线搜索只显示终端应用的方法介绍了,在终端输入如上命令后,搜索的结果中就不会有第三方应用,让页面更简洁。

延伸 · 阅读

精彩推荐
  • Ubuntu如何在ubuntu系统中安装pycharm工具并运行

    如何在ubuntu系统中安装pycharm工具并运行

    在Windows系统中安装pycharm,只需要下载安装包,然后根据指令一步一步操作;而在Linux系统中的Ubuntu中安装pycharm,需要下载安装包,还有安装相关的其他软件...

    百度经验12082019-10-21
  • UbuntuUbuntu17.10怎么添加日历事项? Ubuntu添加行程提醒的教程

    Ubuntu17.10怎么添加日历事项? Ubuntu添加行程提醒的教程

    Ubuntu17.10怎么添加日历事项?Ubuntu17.10系统中有一个日程管理功能,可以在日历中添加行程提醒,下面我们就来看看Ubuntu添加行程提醒的教程,需要的朋友可...

    服务器之家2812019-06-19
  • UbuntuUbuntu 15.04升级到Ubuntu 15.10的详细教程

    Ubuntu 15.04升级到Ubuntu 15.10的详细教程

    ubuntu15.04怎么升级到ubuntu15.10?又该升级系统了,但是很多人对ubuntu系统很不熟悉,下面我们一起来看看ubuntu15.04升级ubuntu15.10的详细教程,需要的朋友可以...

    服务器之家4562019-07-02
  • UbuntuUbuntu Gnome下如何修改应用图标icon?

    Ubuntu Gnome下如何修改应用图标icon?

    最近有些朋友问小编Ubuntu Gnome下如何修改应用图标icon?今天小编要为大家分享的是Ubuntu Gnome下修改应用图标icon的方法;有需要的朋友一起去看看吧...

    服务器之家6412019-06-01
  • UbuntuUbuntu下安装Chrome的方法分享

    Ubuntu下安装Chrome的方法分享

    本文给大家分享的是Ubuntu下安装Chrome的方法,安装的过程中发现还是挺麻烦的,就记录下来推荐给大家,有需要的小伙伴可以参考下。...

    Ubuntu教程网3862021-10-25
  • UbuntuWSL、WSL2与Ubuntu性能大PK

    WSL、WSL2与Ubuntu性能大PK

    科技媒体 Phoronix 对 Windows 10 May 2020 中 WSL 和 WSL 2 的性能进行了测试,参与测试的发行版为 Ubuntu 20.04 on WSL/WSL2 ,以及 Ubuntu 20.04 LTS,均被安装在除 Windows 之...

    开源中国29412020-06-23
  • UbuntuUbuntu20.04开启root账户的方法步骤

    Ubuntu20.04开启root账户的方法步骤

    这篇文章主要介绍了Ubuntu20.04开启root账户的方法步骤,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们...

    缀梦13002020-08-01
  • UbuntuUbuntu安装和卸载CUDA和CUDNN的实现

    Ubuntu安装和卸载CUDA和CUDNN的实现

    这篇文章主要介绍了Ubuntu安装和卸载CUDA和CUDNN的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们...

    夜雨飘零14632020-08-04