【新手推荐】Ubuntu12.04英文版安装中文语言包及输入法
扫描二维码
随时随地手机看文章
在安装中文语言包和中文输入法之前,我先配置好了pc-arm的交叉编译环境和QT,因为我要在qt中使用中文,所以不知道是否应该先把开发环境配置好再安装输入法。
1.更新源列表:
ubuntu上的软件安装都需要实时联网,所以在安装软件时都应该保持网络畅通。安装软件需要获取网络资源,这些资源的地址都存在/etc/apt/souces.list这个列表文件里,网络上的源有很多,下面我列出一些。
官方源:
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu precise main restricted deb-src http://archive.ubuntu.com/ubuntu precise main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu precise universe deb-src http://archive.ubuntu.com/ubuntu precise universe deb http://archive.ubuntu.com/ubuntu precise-updates universe deb-src http://archive.ubuntu.com/ubuntu precise-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://archive.ubuntu.com/ubuntu precise multiverse deb-src http://archive.ubuntu.com/ubuntu precise multiverse deb http://archive.ubuntu.com/ubuntu precise-updates multiverse deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu precise-security main restricted deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted deb http://archive.ubuntu.com/ubuntu precise-security universe deb-src http://archive.ubuntu.com/ubuntu precise-security universe deb http://archive.ubuntu.com/ubuntu precise-security multiverse deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu precise partner deb-src http://archive.canonical.com/ubuntu precise partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu precise main deb http://archive.ubuntu.com/ubuntu precise-proposed restricted main multiverse universe deb-src http://extras.ubuntu.com/ubuntu precise main
台湾大学源:
#台湾源(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题): deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse deb http://fpt.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe
网易源:
#163源: deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted deb http://mirrors.163.com/ubuntu/ precise universe deb-src http://mirrors.163.com/ubuntu/ precise universe deb http://mirrors.163.com/ubuntu/ precise-updates universe deb-src http://mirrors.163.com/ubuntu/ precise-updates universe deb http://mirrors.163.com/ubuntu/ precise multiverse deb-src http://mirrors.163.com/ubuntu/ precise multiverse deb http://mirrors.163.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ precise-security main restricted deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted deb http://mirrors.163.com/ubuntu/ precise-security universe deb-src http://mirrors.163.com/ubuntu/ precise-security universe deb http://mirrors.163.com/ubuntu/ precise-security multiverse deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main
上海交通大学源:
#上海交通大学源: deb http://fpt.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe deb http://fpt.sjtu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe deb http://fpt.sjtu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe deb http://fpt.sjtu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe deb http://fpt.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe deb http://fpt.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe
cn99源:
#ubuntu.cn99.com源(推荐): deb http://ubuntu.cn99.com/ubuntu/ precise main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse
我用的是官方的欧洲源,因为它是最全的,而且速度也不慢,下载速度一般在70K/S以上,如果你用官方的源下载速度很慢(更新下载的时候有可能卡在某个包不动了,没速度了,我就遇到了这个情况。我怀疑是我公司的网络问题导致的,所以总是不停的尝试重新更新,最后都成功了),可以使用其他的源,根据自己的情况选择。
然后就要更新源列表了。
#sudo apt-get update
2.安装中文语言包:
点击右上角齿轮状的按钮,或者打开Dash home搜索,找到System Settings->Language Support,然后它会自动检查更新(等它更新完,我刚开始就直接把它关掉了,结果中文输入法怎么都装不上),更新完以后,点击Install/Remove Languages...,选上Chinese(Simplified),点击Aplly,然后它就会自动下载安装了(如果下载卡住了,没速度了,关了重新打开接着下)。
安装完了之后发现“汉语(中国)”还是黑的呢!别急,只需要按住鼠标把它拖到最上边就可以了,OK,Close,ReStart(重启系统)!
3.删除所有输入法:
我是怕输入法太多而引起冲突,而且我也不喜欢有几个输入法,看着烦,就增加了这步。
我是手动找到/etc/X11/xinit/xinput.d这个文件夹,删除前先备份(养成好习惯),删除除all_ALL,none以外的所有文件。
4.安装ibus输入法框架及汉语拼音:
打开终端,安装ibus,拼音,五笔
# sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 # sudo apt-get install ibus-pinyin # sudo apt-get install ibus-table-wubi
然后设置输入法
ibus-setup
Input Method选项卡中,选中Customize active input methods,Select an input method->Pinyin,Add。
至此中文输入法就装完了。
如需转载请注明出处:http://blog.csdn.net/klo220/article/details/18708985