標籤:des style blog http color io os 使用 ar
因為從事開發,安裝一個詞典是很有必要,文中介紹安裝openyoudao和stardic兩個軟體的方法
一.openyoudao的安裝
因為是由window轉來學ubuntu的,所以總是想安裝和window下的同名軟體,這個openyoudao和就是有道的linux版本吧,曾在按照網上的安裝教程總是顯示我找不到那個源,經過重重實驗後終於找到了合適的安裝方法。
1.先添加源
使用add-apt-repository 命令:
sudo add-apt-repository ppa:justzx2011/openyoudao
這種方法不推薦,因為我在安裝過程出現一些問題。
或者在終端輸入命令:
sudo gedit /etc/apt/sources.list
在/etc/apt/sources.list尾部添加如下內容:
deb http://ppa.launchpad.net/justzx2011/openyoudao/ubuntu precise main deb-src http://ppa.launchpad.net/justzx2011/openyoudao/ubuntu precise main
這是推薦的方法。
2.更新源
在終端中輸入:
sudo apt-get update
3.安裝openyoudao
終端輸入:
sudo apt-get install openyoudao
openyoudao安裝成功,開啟軟體會出現如下介面
此後是雙擊你要查詢的單詞就可以了,不過有個缺點就是不能自己輸入要查詢的單詞
二.安裝stardict
在終端輸入命令:
sudo apt-get install stardict
安裝完stardict後開啟網路詞典就可以查詢單詞了,這個詞典有趣的地方是當你輸入linux指令時會出現對這個指令的解釋,效果和在終端輸入man+指令一樣。
我們可以為stardict安裝一些本地詞典,這樣在斷網的時候我們也可以查單詞,步驟如下:
我們可以訪問Ubuntu星際譯王的中文詞典下載頁面 http://stardict.sourceforge.net/Dictionaries_zh_CN.php,下載詞典檔案
,然後我們可以在終端嘔吐通過命令來將詞典檔案解壓縮到/usr/share/stardict/dic/目錄中,命令如下:
cd /home/wen/下載 sudo tar -jxv -f stardict-kdic-computer-gb-2.4.2.tar.bz2 -C /usr/share/stardic/dic
最後我們開啟stardict右下角的詞典管理中添加你的詞庫
ubuntu下的詞典的安裝