主頁(yè) > 知識(shí)庫(kù) > Ubuntu Unity在線搜索如何只顯示終端應(yīng)用

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

熱門標(biāo)簽:德州地圖標(biāo)注服務(wù)注冊(cè) saas外呼系統(tǒng) 地圖標(biāo)注是什么軟件 地圖標(biāo)注武漢地鐵10號(hào)線 騰訊地圖標(biāo)注可以pc端嗎 百度地圖標(biāo)注聚合 威海營(yíng)銷外呼系統(tǒng) 太原電銷防封卡 青島高德地圖標(biāo)注企業(yè)入駐

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

  正如上面的截圖所見(jiàn),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

  再次進(jìn)入U(xiǎn)nity dash 的終端?,F(xiàn)在Unity 只顯示終端應(yīng)用。

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

  上面就是Ubuntu unity在線搜索只顯示終端應(yīng)用的方法介紹了,在終端輸入如上命令后,搜索的結(jié)果中就不會(huì)有第三方應(yīng)用,讓頁(yè)面更簡(jiǎn)潔。

標(biāo)簽:德州 石家莊 攀枝花 鄂爾多斯 張掖 揭陽(yáng) 河北 運(yùn)城

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Ubuntu Unity在線搜索如何只顯示終端應(yīng)用》,本文關(guān)鍵詞  Ubuntu,Unity,在線,搜索,如何,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Ubuntu Unity在線搜索如何只顯示終端應(yīng)用》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Ubuntu Unity在線搜索如何只顯示終端應(yīng)用的相關(guān)信息資訊供網(wǎng)民參考!
  • 企业400电话

    智能AI客服机器人
    15000

    在线订购

    合计11份范本:公司章程+合伙协议+出资协议+合作协议+股权转让协议+增资扩股协议+股权激励+股东会决议+董事会决议

    推薦文章