首先,修改/etc/profile文件,在末尾增加两行:
export LC_ALL="zh_CN.UTF-8" export LANG="zh_CN.UTF-8"
接着修改/etc/sysconfig/i18n,如下:
#LANG="en_US.UTF-8" LANG="zh_CN.UTF-8" SYSFONT="latarcyrheb-sun16"
接着安装上篇博客所讲,把yum更新完成,使用下面的命令:yum install "@Chinese Support" ,命令参考网上(具体哪个网址忘了),出现如下的结果:
[root@localhost yum.repos.d]# yum install "@Chinese Support" Loaded plugins: fastestmirror, product-id, refresh-packagekit, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Loading mirror speeds from cached hostfile Setting up Install Process Loading mirror speeds from cached hostfile Package cjkuni-uming-fonts-0.2.20080216.1-35.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-35.el6 will be installed ---> Package ibus-chewing.x86_64 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.x86_64 --> Processing Dependency: ibus >= 1.1 for package: ibus-chewing-1.3.5.20100714-4.el6.x86_64 --> Processing Dependency: libibus.so.2()(64bit) for package: ibus-chewing-1.3.5.20100714-4.el6.x86_64 --> Processing Dependency: libchewing.so.3()(64bit) for package: ibus-chewing-1.3.5.20100714-4.el6.x86_64 ---> Package ibus-pinyin.x86_64 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.x86_64 0:1.3.4-6.el6 will be installed --> Processing Dependency: ibus-gtk = 1.3.4-6.el6 for package: ibus-1.3.4-6.el6.x86_64 --> Processing Dependency: im-chooser >= 1.2.5 for package: ibus-1.3.4-6.el6.x86_64 --> Processing Dependency: pyxdg for package: ibus-1.3.4-6.el6.x86_64 ---> Package ibus-libs.x86_64 0:1.3.4-6.el6 will be installed ---> Package ibus-table.noarch 0:1.2.0.20100111-4.el6 will be installed ---> Package libchewing.x86_64 0:0.3.2-27.el6 will be installed --> Running transaction check ---> Package ibus-gtk.x86_64 0:1.3.4-6.el6 will be installed ---> Package im-chooser.x86_64 0:1.3.1-3.el6 will be installed --> Processing Dependency: imsettings >= 0.106.0 for package: im-chooser-1.3.1-3.el6.x86_64 --> Processing Dependency: libimsettings.so.4()(64bit) for package: im-chooser-1.3.1-3.el6.x86_64 ---> Package pyxdg.noarch 0:0.18-1.el6 will be installed --> Running transaction check ---> Package imsettings.x86_64 0:0.108.0-3.6.el6 will be installed --> Processing Dependency: libgxim.so.2()(64bit) for package: imsettings-0.108.0-3.6.el6.x86_64 ---> Package imsettings-libs.x86_64 0:0.108.0-3.6.el6 will be installed --> Running transaction check ---> Package libgxim.x86_64 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-35.el6 base 9.4 M ibus-chewing x86_64 1.3.5.20100714-4.el6 base 64 k ibus-pinyin x86_64 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 x86_64 1.3.4-6.el6 base 337 k ibus-gtk x86_64 1.3.4-6.el6 base 26 k ibus-libs x86_64 1.3.4-6.el6 base 98 k ibus-table noarch 1.2.0.20100111-4.el6 base 243 k im-chooser x86_64 1.3.1-3.el6 base 144 k imsettings x86_64 0.108.0-3.6.el6 base 190 k imsettings-libs x86_64 0.108.0-3.6.el6 base 103 k libchewing x86_64 0.3.2-27.el6 base 1.5 M libgxim x86_64 0.3.3-3.1.el6 base 126 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-35.el6.noarch.rpm | 9.4 MB 04:27 (2/16): ibus-1.3.4-6.el6.x86_64.rpm | 337 kB 00:13 (3/16): ibus-chewing-1.3.5.20100714-4.el6.x86_64.rpm | 64 kB 00:02 (4/16): ibus-gtk-1.3.4-6.el6.x86_64.rpm | 26 kB 00:00 (5/16): ibus-libs-1.3.4-6.el6.x86_64.rpm | 98 kB 00:03 (6/16): ibus-pinyin-1.3.8-1.el6.x86_64.rpm | 1.1 MB 01:09 (7/16): ibus-table-1.2.0.20100111-4.el6.noarch.rpm | 243 kB 00:05 (8/16): ibus-table-cangjie-1.2.0.20100210-1.el6.noarch.rpm | 4.9 MB 02:21 (9/16): ibus-table-erbi-1.2.0.20090901-8.el6.noarch.rpm | 2.0 MB 00:52 (10/16): ibus-table-wubi-1.2.0.20090715-8.el6.noarch.rpm | 2.0 MB 00:57 (11/16): im-chooser-1.3.1-3.el6.x86_64.rpm | 144 kB 00:02 (12/16): imsettings-0.108.0-3.6.el6.x86_64.rpm | 190 kB 00:05 (13/16): imsettings-libs-0.108.0-3.6.el6.x86_64.rpm | 103 kB 00:01 (14/16): libchewing-0.3.2-27.el6.x86_64.rpm | 1.5 MB 00:44 (15/16): libgxim-0.3.3-3.1.el6.x86_64.rpm | 126 kB 00:03 (16/16): pyxdg-0.18-1.el6.noarch.rpm | 79 kB 00:00 ---------------------------------------------------------------------------------------- Total 32 kB/s | 22 MB 12:02 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ibus-libs-1.3.4-6.el6.x86_64 1/16 Installing : libgxim-0.3.3-3.1.el6.x86_64 2/16 Installing : imsettings-libs-0.108.0-3.6.el6.x86_64 3/16 Installing : imsettings-0.108.0-3.6.el6.x86_64 4/16 Installing : im-chooser-1.3.1-3.el6.x86_64 5/16 Installing : libchewing-0.3.2-27.el6.x86_64 6/16 Installing : pyxdg-0.18-1.el6.noarch 7/16 Installing : ibus-1.3.4-6.el6.x86_64 8/16 Installing : ibus-gtk-1.3.4-6.el6.x86_64 9/16 Installing : ibus-table-1.2.0.20100111-4.el6.noarch 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 : ibus-chewing-1.3.5.20100714-4.el6.x86_64 14/16 Installing : ibus-pinyin-1.3.8-1.el6.x86_64 15/16 Installing : cjkuni-ukai-fonts-0.2.20080216.1-35.el6.noarch 16/16 Installed products updated. Verifying : ibus-gtk-1.3.4-6.el6.x86_64 1/16 Verifying : ibus-libs-1.3.4-6.el6.x86_64 2/16 Verifying : ibus-chewing-1.3.5.20100714-4.el6.x86_64 3/16 Verifying : imsettings-libs-0.108.0-3.6.el6.x86_64 4/16 Verifying : ibus-table-1.2.0.20100111-4.el6.noarch 5/16 Verifying : pyxdg-0.18-1.el6.noarch 6/16 Verifying : ibus-table-wubi-1.2.0.20090715-8.el6.noarch 7/16 Verifying : ibus-table-cangjie-1.2.0.20100210-1.el6.noarch 8/16 Verifying : libgxim-0.3.3-3.1.el6.x86_64 9/16 Verifying : ibus-pinyin-1.3.8-1.el6.x86_64 10/16 Verifying : im-chooser-1.3.1-3.el6.x86_64 11/16 Verifying : imsettings-0.108.0-3.6.el6.x86_64 12/16 Verifying : ibus-table-erbi-1.2.0.20090901-8.el6.noarch 13/16 Verifying : ibus-1.3.4-6.el6.x86_64 14/16 Verifying : libchewing-0.3.2-27.el6.x86_64 15/16 Verifying : cjkuni-ukai-fonts-0.2.20080216.1-35.el6.noarch 16/16 Installed: cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-35.el6 ibus-chewing.x86_64 0:1.3.5.20100714-4.el6 ibus-pinyin.x86_64 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.x86_64 0:1.3.4-6.el6 ibus-gtk.x86_64 0:1.3.4-6.el6 ibus-libs.x86_64 0:1.3.4-6.el6 ibus-table.noarch 0:1.2.0.20100111-4.el6 im-chooser.x86_64 0:1.3.1-3.el6 imsettings.x86_64 0:0.108.0-3.6.el6 imsettings-libs.x86_64 0:0.108.0-3.6.el6 libchewing.x86_64 0:0.3.2-27.el6 libgxim.x86_64 0:0.3.3-3.1.el6 pyxdg.noarch 0:0.18-1.el6 Complete!
在系统中查看输入法:
注销后即可看到中文输入法了。