最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

  發(fā)布時間:2015-02-04 15:52:30   作者:佚名   我要評論
在Ubuntu下使用Unity的在線搜索功能的時候,一定遇到過這樣的問題,那就是搜索出來的結(jié)果總是帶有第三方應(yīng)用,關(guān)于這個問題可以通過下面的方法來解決

  相信大家在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

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

 Ubuntu Unity在線搜索只顯示終端應(yīng)用的技巧

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

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

相關(guān)文章

最新評論

清镇市| 屯门区| 锡林浩特市| 高陵县| 尼木县| 都兰县| 泰州市| 文昌市| 永登县| 怀柔区| 通河县| 青浦区| 永清县| 朝阳市| 三门县| 麻阳| 大足县| 平定县| 游戏| 若羌县| 台山市| 木兰县| 仲巴县| 民和| 无锡市| 寻乌县| 济宁市| 科技| 咸宁市| 曲沃县| 古浪县| 会同县| 永福县| 修武县| 屯留县| 天祝| 和龙市| 京山县| 梓潼县| 密山市| 延吉市|