最近重操旧业,在虚拟机里面装了个centos 6.5,为了能更好的熟悉,就把很多东西搬到虚拟机里面玩了,编写文档和在网上找资料的时候经常需要用到中文输入法,没有中文输入法很是不方便,下面说下我安装centos 中文输入法的步骤,以便备忘,同事给同样需要的朋友帮助:
1.登录root用户
[hadoop@client Desktop]$ su root
Password:
2.安装中文输入法支持 在命令行输入 yum install "@Chinese Support"
[root@client Desktop]# yum install "@Chinese Support"
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: ftp.sjtu.edu.cn
* updates: ftp.sjtu.edu.cn
Package cjkuni-uming-fonts-0.2.20080216.1-36.el6.noarch already installed and latest version
Package wqy-zenhei-fonts-0.9.45-3.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-36.el6 will be installed
---> Package ibus-chewing.i686 0:1.3.5.20100714-4.el6 will be installed
--> Processing Dependency: libchewing >= 0.3.2-16 for package: ibus-chewing-1.3.5.20100714-4.el6.i686
--> Processing Dependency: ibus >= 1.1 for package: ibus-chewing-1.3.5.20100714-4.el6.i686
--> Processing Dependency: libibus.so.2 for package: ibus-chewing-1.3.5.20100714-4.el6.i686
--> Processing Dependency: libchewing.so.3 for package: ibus-chewing-1.3.5.20100714-4.el6.i686
---> Package ibus-pinyin.i686 0:1.3.8-1.el6 will be installed
---> Package ibus-table-cangjie.noarch 0:1.2.0.20100210-1.el6 will be installed
--> Processing Dependency: ibus-table >= 1.2.0.20100111-2 for package: ibus-table-cangjie-1.2.0.20100210-1.el6.noarch
--> Processing Dependency: ibus-table >= 1.2.0.20100111-2 for package: ibus-table-cangjie-1.2.0.20100210-1.el6.noarch
---> Package ibus-table-erbi.noarch 0:1.2.0.20090901-8.el6 will be installed
---> Package ibus-table-wubi.noarch 0:1.2.0.20090715-8.el6 will be installed
--> Running transaction check
---> Package ibus.i686 0:1.3.4-9.el6 will be installed
--> Processing Dependency: ibus-gtk = 1.3.4-9.el6 for package: ibus-1.3.4-9.el6.i686
--> Processing Dependency: im-chooser >= 1.2.5 for package: ibus-1.3.4-9.el6.i686
--> Processing Dependency: pyxdg for package: ibus-1.3.4-9.el6.i686
---> Package ibus-libs.i686 0:1.3.4-9.el6 will be installed
---> Package ibus-table.noarch 0:1.2.0.20100111-5.el6 will be installed
---> Package libchewing.i686 0:0.3.2-27.el6 will be installed
--> Running transaction check
---> Package ibus-gtk.i686 0:1.3.4-9.el6 will be installed
---> Package im-chooser.i686 0:1.3.1-3.el6 will be installed
--> Processing Dependency: imsettings >= 0.106.0 for package: im-chooser-1.3.1-3.el6.i686
--> Processing Dependency: libimsettings.so.4 for package: im-chooser-1.3.1-3.el6.i686
---> Package pyxdg.noarch 0:0.18-1.el6 will be installed
--> Running transaction check
---> Package imsettings.i686 0:0.108.0-3.6.el6 will be installed
--> Processing Dependency: libgxim.so.2 for package: imsettings-0.108.0-3.6.el6.i686
---> Package imsettings-libs.i686 0:0.108.0-3.6.el6 will be installed
--> Running transaction check
---> Package libgxim.i686 0:0.3.3-3.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
cjkuni-ukai-fonts noarch 0.2.20080216.1-36.el6 base 9.4 M
ibus-chewing i686 1.3.5.20100714-4.el6 base 61 k
ibus-pinyin i686 1.3.8-1.el6 base 1.1 M
ibus-table-cangjie noarch 1.2.0.20100210-1.el6 base 4.9 M
ibus-table-erbi noarch 1.2.0.20090901-8.el6 base 2.0 M
ibus-table-wubi noarch 1.2.0.20090715-8.el6 base 2.0 M
Installing for dependencies:
ibus i686 1.3.4-9.el6 base 335 k
ibus-gtk i686 1.3.4-9.el6 base 26 k
ibus-libs i686 1.3.4-9.el6 base 97 k
ibus-table noarch 1.2.0.20100111-5.el6 base 243 k
im-chooser i686 1.3.1-3.el6 base 144 k
imsettings i686 0.108.0-3.6.el6 base 189 k
imsettings-libs i686 0.108.0-3.6.el6 base 101 k
libchewing i686 0.3.2-27.el6 base 1.5 M
libgxim i686 0.3.3-3.1.el6 base 122 k
pyxdg noarch 0.18-1.el6 base 79 k
Transaction Summary
=============================================================================================================================================================
Install 16 Package(s)
Total download size: 22 M
Installed size: 63 M
Is this ok [y/N]: y
Downloading Packages:
(1/16): cjkuni-ukai-fonts-0.2.20080216.1-36.el6.noarch.rpm | 9.4 MB 00:06
(2/16): ibus-1.3.4-9.el6.i686.rpm | 335 kB 00:00
(3/16): ibus-chewing-1.3.5.20100714-4.el6.i686.rpm | 61 kB 00:00
(4/16): ibus-gtk-1.3.4-9.el6.i686.rpm | 26 kB 00:00
(5/16): ibus-libs-1.3.4-9.el6.i686.rpm | 97 kB 00:00
(6/16): ibus-pinyin-1.3.8-1.el6.i686.rpm | 1.1 MB 00:00
(7/16): ibus-table-1.2.0.20100111-5.el6.noarch.rpm | 243 kB 00:00
(8/16): ibus-table-cangjie-1.2.0.20100210-1.el6.noarch.rpm | 4.9 MB 00:03
(9/16): ibus-table-erbi-1.2.0.20090901-8.el6.noarch.rpm | 2.0 MB 00:01
(10/16): ibus-table-wubi-1.2.0.20090715-8.el6.noarch.rpm | 2.0 MB 00:01
(11/16): im-chooser-1.3.1-3.el6.i686.rpm | 144 kB 00:00
(12/16): imsettings-0.108.0-3.6.el6.i686.rpm | 189 kB 00:00
(13/16): imsettings-libs-0.108.0-3.6.el6.i686.rpm | 101 kB 00:00
(14/16): libchewing-0.3.2-27.el6.i686.rpm | 1.5 MB 00:01
(15/16): libgxim-0.3.3-3.1.el6.i686.rpm | 122 kB 00:00
(16/16): pyxdg-0.18-1.el6.noarch.rpm | 79 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 22 MB 00:16
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ibus-libs-1.3.4-9.el6.i686 1/16
Installing : libgxim-0.3.3-3.1.el6.i686 2/16
Installing : pyxdg-0.18-1.el6.noarch 3/16
Installing : imsettings-libs-0.108.0-3.6.el6.i686 4/16
Installing : imsettings-0.108.0-3.6.el6.i686 5/16
Installing : im-chooser-1.3.1-3.el6.i686 6/16
Installing : ibus-gtk-1.3.4-9.el6.i686 7/16
Installing : ibus-1.3.4-9.el6.i686 8/16
Installing : ibus-table-1.2.0.20100111-5.el6.noarch 9/16
Installing : libchewing-0.3.2-27.el6.i686 10/16
Installing : ibus-table-wubi-1.2.0.20090715-8.el6.noarch 11/16
Installing : ibus-table-cangjie-1.2.0.20100210-1.el6.noarch 12/16
Installing : ibus-table-erbi-1.2.0.20090901-8.el6.noarch 13/16
Installing : cjkuni-ukai-fonts-0.2.20080216.1-36.el6.noarch 14/16
Installing : ibus-chewing-1.3.5.20100714-4.el6.i686 15/16
Installing : ibus-pinyin-1.3.8-1.el6.i686 16/16
Verifying : libchewing-0.3.2-27.el6.i686 1/16
Verifying : imsettings-libs-0.108.0-3.6.el6.i686 2/16
Verifying : ibus-pinyin-1.3.8-1.el6.i686 3/16
Verifying : ibus-1.3.4-9.el6.i686 4/16
Verifying : im-chooser-1.3.1-3.el6.i686 5/16
Verifying : ibus-table-wubi-1.2.0.20090715-8.el6.noarch 6/16
Verifying : ibus-libs-1.3.4-9.el6.i686 7/16
Verifying : ibus-table-cangjie-1.2.0.20100210-1.el6.noarch 8/16
Verifying : ibus-gtk-1.3.4-9.el6.i686 9/16
Verifying : libgxim-0.3.3-3.1.el6.i686 10/16
Verifying : cjkuni-ukai-fonts-0.2.20080216.1-36.el6.noarch 11/16
Verifying : ibus-table-erbi-1.2.0.20090901-8.el6.noarch 12/16
Verifying : pyxdg-0.18-1.el6.noarch 13/16
Verifying : ibus-table-1.2.0.20100111-5.el6.noarch 14/16
Verifying : ibus-chewing-1.3.5.20100714-4.el6.i686 15/16
Verifying : imsettings-0.108.0-3.6.el6.i686 16/16
Installed:
cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-36.el6 ibus-chewing.i686 0:1.3.5.20100714-4.el6 ibus-pinyin.i686 0:1.3.8-1.el6
ibus-table-cangjie.noarch 0:1.2.0.20100210-1.el6 ibus-table-erbi.noarch 0:1.2.0.20090901-8.el6 ibus-table-wubi.noarch 0:1.2.0.20090715-8.el6
Dependency Installed:
ibus.i686 0:1.3.4-9.el6 ibus-gtk.i686 0:1.3.4-9.el6 ibus-libs.i686 0:1.3.4-9.el6 ibus-table.noarch 0:1.2.0.20100111-5.el6
im-chooser.i686 0:1.3.1-3.el6 imsettings.i686 0:0.108.0-3.6.el6 imsettings-libs.i686 0:0.108.0-3.6.el6 libchewing.i686 0:0.3.2-27.el6
libgxim.i686 0:0.3.3-3.1.el6 pyxdg.noarch 0:0.18-1.el6
Complete!
[root@client Desktop]#
这是在system =》 Preferences 中出现 Input Method 选项
3.添加输入法
点击Input Method之后出现如下界面,然后点击 USE IBus 点击 Input Method Preferences
点击ADD
最后,输入reboot重启,即可享受流畅的中文输入啦(记得是ctrl+space[空格键]切换中英文输入法哦)