Ubuntu Unity online search only shows the skills of the terminal application

  

I believe that when you use Unity's online search function under Ubuntu, you must have encountered the problem that the search results always have third-party applications. The trouble is that the following small series teaches you how to let Unity only display the terminal application.

As seen in the screenshot above, Unity display built-in Terminal application, references, links, weather and links to other third parties, such as movies and so on. Show too many search results.

Enter the following command at the terminal:

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

The contents of the above script are as follows:

#! /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 "1210 | |  $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=&ldquo ;`$GS list-schemas |  Grep -i $CCUL |  Head -1`”

if[-z “$SCHEMA”]

then

printf “Error: could not find Canonical schema %s.\ &rdquo ; quo;$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
< #> 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;< Br>

# 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 “\ 127.0.0.1 productsearch.ubuntu.com”|  Sudo tee -a /etc/hosts 》/dev/null

fi

echo “All done. Enjoy your privacy.”

fi

Re-enter the terminal of Unity dash. Unity now only displays terminal applications.

Update: This trick applies only Unity desktop. If you use something like GNOME, LXDE or Xfce don't have to. At the same time, this online search feature will not be included in Ubuntu 14.10 and upcoming releases.

The above is the Ubuntu unity online search only shows the method of the terminal application. After entering the above command in the terminal, there will be no third-party application in the search result, which makes the page more concise.

Copyright © Windows knowledge All Rights Reserved