Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu Unity online search how to display only terminal applications

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Ubuntu Unity online search how to display only terminal applications, in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

I believe that when you use Unity's online search function under Ubuntu, you must have encountered such a problem, that is, the search results always come with third-party applications, which is annoying. The following editor will teach you how to let Unity only display terminal applications.

As you can see in the screenshot above, Unity displays built-in Terminal applications, reference links, weather links, and other third-party recommendations, such as movies. Too many search results are displayed.

Enter the following command at the terminal:

Wget-Q-O-https://fixUbuntu.com/fixubuntu.sh | bash

The above script is 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" 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

Enter the terminal of Unity dash again. Now Unity only displays terminal applications.

Update: this trick only applies to Unity desktop. You don't have to do this if you use something else such as GNOME,LXDE or Xfce. At the same time, this online search function will not be included in Ubuntu 14.10 and the upcoming version.

This is the answer to the question about how to display only terminal applications in Ubuntu Unity online search. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report