1、增加Ubuntu的更新源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (備份下當前的源列表,有備無患.)
sudo gedit /etc/apt/sources.list (開啟Ubuntu 8.04源列表檔案)
在開啟的檔案的尾部空上一行把下面的源地址粘貼上去儲存就OK了.
Ubuntu 8.04#cn99.com 源補救伺服器(江蘇省常州市電信,推薦電信使用者使用,我自己是南方電信1M頻寬的使用者,更新速度平均有100K):
deb http://Ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse
deb-src http://Ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse
deb http://Ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://Ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse
deb http://Ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://Ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse
deb http://Ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://Ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse
deb http://Ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://Ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse
#Ubuntu 8.04 Hardy Heron
deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy main restricted universe multiverse
deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse
deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse
deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy main restricted universe multiverse
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse
2、使Ubuntu作業系統環境為中文環境
語句如下
sudo apt-get install scim scim-pinyin scim-tables-zh im-switch scim-qtimm scim-bridge scim-bridge-client-gtk scim-bridge-client-qt scim-bridge-agent -y
然後再執行
sudo im-switch -s scim
3、安裝中文IME
在系統功能表的系統——系統管理——語言支援裡面找“漢語”,剛裝好系統的時候是沒有“漢語”的。選中漢語,這時候系統才會下載中文語言套件並自動安裝
還有一種命令列方法安裝中文IME:
#language support顯示漢語選項
sudo apt-get update
#裝智能拼音
sudo apt-get install scim-pinyin
#裝五筆
sudo apt-get install scim-table-zh
#如果scim 不會自動啟動
sudo apt-get install im-switc
把eclipse的workspace編碼設定可選GBK,解決預設UTF-8的問題
在工程的屬性中有設定項,可以設定當前工程的編碼,設定成GBK就可以了,預設的沒有GBK可選,可以直接輸入GBK編碼。
Ubuntu中文推薦資源:
Ubuntu中文環境和中文IME安裝
Ubuntu8.04快速設定指南
注意:安裝中文環境和中文IME必須連上互連網!