溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Ubuntu Unity在線搜索怎樣只顯示終端應(yīng)用

發(fā)布時間:2021-09-27 11:10:21 來源:億速云 閱讀:114 作者:柒染 欄目:系統(tǒng)運維

Ubuntu Unity在線搜索怎樣只顯示終端應(yīng)用,針對這個問題,這篇文章詳細介紹了相對應(yīng)的分析和解答,希望可以幫助更多想解決這個問題的小伙伴找到更簡單易行的方法。

  相信大家在Ubuntu下使用Unity的在線搜索功能的時候,一定遇到過這樣的問題,那就是搜索出來的結(jié)果總是帶有第三方應(yīng)用,不勝其煩,下面小編就教大家讓Unity只顯示終端應(yīng)用的方法。

Ubuntu Unity在線搜索怎樣只顯示終端應(yīng)用

  正如上面的截圖所見,Unity顯示內(nèi)置的 Terminal 應(yīng)用、引用鏈接、天氣鏈接和其他第三方的推薦,如電影等。顯示了太多的搜索結(jié)果。

  在終端輸入以下命令:

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

  上述腳本的內(nèi)容如下:

  #!/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 的終端。現(xiàn)在Unity 只顯示終端應(yīng)用。

Ubuntu Unity在線搜索怎樣只顯示終端應(yīng)用

  更新:這一招只適用Unity desktop。如果你使用其他的比如GNOME,LXDE或Xfce不用這么做。同時,這個在線搜索功能將不會包含在Ubuntu 14.10和即將推出的版本中。

關(guān)于Ubuntu Unity在線搜索怎樣只顯示終端應(yīng)用問題的解答就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,如果你還有很多疑惑沒有解開,可以關(guān)注億速云行業(yè)資訊頻道了解更多相關(guān)知識。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI