Ubuntu中文環境和中文IME安裝

來源:互聯網
上載者:User
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必須連上互連網!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.