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.
IPv6 is what we usually call the Internet protocol. It is the core protocol of TCP/
Brackets is a powerful front-end web integrated development environment that can be
Before Gentoo upgrade, users can still use libpng normally. After upgrading Gentoo
Google Chrome is the most widely used browser on Linux, which may be why Google Chrome runs faster.
Summary of methods for modifying debian wheezy default configuration under Linux
What should I do if the Linux boot file rc.local cannot be executed?
How to change the Linux default startup level
Introduction to the usr directory in Linux
What are the common commands for Linux rookie?
Five Ways to Improve Linux System Security
Linux system how to use the mount command and software to mount the ISO file
Linux MyEclipse start Tomcat too slow how to do?
Techniques for setting up multiple network cards as virtual network cards under Linux
How to solve the problems encountered when Unix migration to Linux system training
Inadvertently deleted the recycle bin icon on the Win10 desktop how to recover?
Understand the standby state of windows7 system - sleep, sleep
A simple move makes the background color of the page turn into Apple Green
Speed up the Win7 system startup speed
Tips for Win7 System to Query Update Update History
Windows Service Optimization Detailed
Win7 system shortcut key operation skills (a)
The clock time on the vista border bar is inconsistent with the system time
The trick to unlock the Win8.1 sleep mode requires a password