First install Chinese support: surootyuminstall "@ ChineseSupport" exit logout and then login 2. Install dependent package yum-yinstallgtk2-immodule-ximgtk2-immodulesgcclibXrender-develcairo-develpango-develintltoolim-chooser 3. Download and install little penguin 4.0 from China
1. First install Chinese support:
Su root
Yum install "@ Chinese Support"
Exit
Log out and then log on
Ii. Install dependent packages
Yum-y install gtk2-immodule-xim gtk2-immodules gcc libXrender-devel cairo-devel pango-devel intltool im-chooser
3. Download and install penguin 4.0
Download from huajun Software Park.
Unzip fcitx-4.0.0.tar.zip
Tar zxf fcitx-4.0.0.tar.gz
Cd fcitx-4.0.0
Make & make install & echo $?
Test whether the installation is successful: Enter fcitx-h. If the installation is successful, you should be able to get the help file, as shown below:
[Root @ CentOS ~] # Fcitx-h
Usage: fcitx [OPTION]
-D run as daemon (default)
-D don't run as daemon
-C (re) create config file in home directory and then exit
-N [im name] run as specified name
-V display the version information and exit
-H display this help and exit
3. Configure Fcitx as the default input method
1. Create the configuration file vim/etc/X11/xinit/xinput. d/fcitx. conf with the following content:
XIM = fcitx
XIM_PROGRAM =/usr/local/bin/fcitx # note that this file must exist. Check its location.
XIM_ARGS = "-d" www.2cto.com
GTK_IM_MODULE = fcitx
QT_IM_MODULE = fcitx
2. In the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate it:
Mv/etc/alternatives/xinputrc. bak
Ln-s/etc/X11/xinit/xinput. d/fcitx. conf/etc/alternatives/xinputrc
3. finally, log out and log in. In the menu system-preference-input method, select "enable Input Method feature", select "use fcitx", and then "log out ", after logging on, press ctrl + space to activate the fcitx input method. (In the middle of the top panel, you can see the small Toolbar of the input method)
NOTE: If your desktop is in an English environment, you must add the following content to the user's user directory. bashrc configuration file:
Export LANG = zh_CN.UTF-8 ″
Export LC_CTYPE = "zh_CN.UTF-8 ″
Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Export GTK_IM_MODULE = xim
Export XMODIFIERS = "@ im = fcitx"