Let the Unity online search function on Ubuntu go to hell!

Source: Internet
Author: User
Tags ad server
Whenever you start searching for applications or files on your computer in UnityDash, your claim terms will be automatically sent to third parties, such as Amazon, in addition, the third party will display relevant results (mainly advertisements) based on your search term ). If you do not like this feature, you can disable it if it is disturbing you. For example, when I enter & ldquo; Terminal & rdquo; In UnityDash, The & ldquo; Terminal & rdquo; application and other

Whenever you start searching for applications or files on your computer in Unity Dash, your claim will be automatically sent to a third party, such as Amazon, in addition, the third party will display relevant results (mainly advertisements) based on your search term ). If you do not like this feature, you can disable it if it is disturbing you.

For example, when I enter "Terminal" in Unity Dash, the "Terminal" application and other third-party stuff on the web will be displayed (I'm going crazy! I don't want this !).

As you can see above, Unity displays the built-inTerminalApplications, Reference Links, weather links, and other third-party recommendations, such as movies. This is annoying and looks bad on Unity Dash. At the same time, it shows too many search results and puzzles me.

If you do not need this function like me, enter the following command on your terminal:

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

The content of the above script is as follows:

  1. #! /Bin/bash
  2. GS = "/usr/bin/gsettings"
  3. CCUL = "com. canonical. Unity. lenses"
  4. # Figure out the version of Ubuntu that you're re running
  5. V = '/usr/bin/lsb_release-rs'
  6. # The privacy problems started with 12.10, so earlier versions shocould do nothing
  7. If awk "BEGIN {exit! ($ V <12.10 | $ V> = 14.10)} "; then
  8. Echo "Good news! This version of Ubuntu is not known to invade your privacy ."
  9. Else
  10. # Check Canonical schema is present. Take first match, ignoring case.
  11. SCHEMA = "'$ GS list-schemas | grep-I $ CCUL | head-1 '"
  12. If [-z "$ SCHEMA"]
  13. Then
  14. Printf "Error: cocould not find Canonical schema % s. \ n" "$ CCUL" 1> & 2
  15. Exit1
  16. Else
  17. CCUL = "$ SCHEMA"
  18. Fi
  19. # Turn off "Remote Search", so search terms in Dash don't get sent to the internet
  20. $ GS set $ CCUL remote-content-search none
  21. # If you're using earlier than 13.10, uninstall unity-lens-shopping
  22. If [$ V \< 13.10]; then
  23. Sudo apt-get remove-y unity-lens-shopping
  24. # If you're using a later version, disable remote scopes
  25. Else
  26. $ GS set $ CCUL disabled-scopes \
  27. "['More _ suggestions-amazon.scope ', 'more _ suggestions-u1ms.scope ',
  28. 'More _ suggestions-populartracks.scope ', 'music-musicstore. process ',
  29. 'More _ suggestions-ebay.scope ', 'more _ suggestions-ubuntushop.scope ',
  30. 'More _ suggestions-skimlinks.scope ']"
  31. Fi;
  32. # Block connections to Ubuntu's ad server, just in case
  33. If! Grep-q "127.0.0.1 productsearch.ubuntu.com"/etc/hosts; then
  34. Echo-e "\ n127.0.0.1 productsearch.ubuntu.com" | sudo tee-a/etc/hosts>/dev/null
  35. Fi
  36. Echo "All done. Enjoy your privacy ."
  37. Fi

Again, I enter the Unity dash terminal. Now Unity only displays terminal applications, rather than useless garbage. Now Unity Dash looks good.

All done, so that those messy things will never come back.

Cheers ~!

Update: This method applies only to Unity desktop. If you use other methods such as GNOME, LXDE, or Xfce, you do not need to do this. At the same time, this online search function will not be included in Ubuntu 14.10 and the coming version.

Ubuntu 14.04Download, install, configure related knowledge http://www.linuxidc.com/Linux/2014-04/100370.htm

Ubuntu 14.04: Http://www.linuxidc.com/Linux/2014-04/100352.htm

Ubuntu 14.04 text tutorial on hard drive installation in Windows 7Http://www.linuxidc.com/Linux/2014-04/100983.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-05/102145.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.