1. preface if you select Chinese language when logging on to the system, the system will bring the ibus Chinese input method. However, because I was planning to use the English version, I was tossed for two nights by the little penguin input method (FCITX. 2. check the system code. enter locale in bash to view the system code. if the following content is returned, congratulations.
I. Preface
If you select Chinese as the language when logging on to the system, the system will bring the ibus Chinese input method. However, because I was planning to use the English version, I was tossed for two nights by the little penguin input method (FCITX.
II. check the system code
Enter locale in bash to view the system code. if the following content is returned, congratulations. just install fcitx directly.
LANG = en_US.UTF-8
LC_CTYPE = zh_CN.UTF-8
LC_NUMERIC = "en_US.UTF-8"
LC_TIME = "en_US.UTF-8"
LC_COLLATE = "en_US.UTF-8"
LC_MONETARY = "en_US.UTF-8"
LC_MESSAGES = "en_US.UTF-8"
LC_PAPER = "en_US.UTF-8"
LC_NAME = "en_US.UTF-8"
LC_ADDRESS = "en_US.UTF-8"
LC_TELEPHONE = "en_US.UTF-8"
LC_MEASUREMENT = "en_US.UTF-8"
LC_IDENTIFICATION = "en_US.UTF-8"
LC_ALL =
Otherwise, run yum install "@ Chinese Support"
3. install FCITX
First download the fcitx3.4.2-bin.tar.bz2 file on the network, and then decompress a fcitx3.4.2-bin folder in the current folder through the jar-jxvf fcitx3.4.2-bin.tar.bz2; enter the folder to execute./fcitx. install to execute the installation program. During the installation process, a shared library missing error may be reported. in this case, you only need to execute the library name missing by yum install and install it through yum.
4. configure FCITX as the default input method
1. create the configuration file fcitx. conf in/etc/X11/xinit/xinput. d.
File content:
XIM=fcitxXIM_PROGRAM=/usr/bin/fcitxXIM_ARGS="-d"GTK_IM_MODULE=fcitxQT_IM_MODULE=fcitx
2. rebuilding/etc/alternatives/xinputrc
sudo mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.baksudo ln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc
3. configure the ~ of the current user ~ /. Bashrc file (can be used normally after configuration)
export LC_CTYPE="zh_CN.UTF-8"export XMODIFIERS="@im=fcitx"export XIM=fcitxexport XIM_PROGRAM=fcitxexport GTK_IM_MODULE=xim
4. configure random fcitx startup
In the menu bar-> System-> Preferences-> Startup Applications, add fcitx as the Startup item. note: The command must be filled with the fcitx installation path (/usr/bin/fcitx ).
IV. personalized configuration
Fcitx has two personalized configuration files:/usr/share/fcitx/data /. fcitx/conf (configure the input box appearance, input method type, etc.) and/usr/share/fcitx/data/tables. conf (configure the specific information of various input methods)
The global configuration item is under/usr/share/fcitx/data/. to configure the configuration for individual users, copy the above file to/home/user name/. fcitx.
Note: Because the above files are all encoded in GB2312, you must use gedit -- encoding = gb2312/usr/share/fcitx/data/conf to open the files normally. otherwise, garbled characters may occur.
5. uninstall
Run./fcitx. uninstall in the installation package to restore the previous configuration information.
VI. Summary
A child who is spoiled by Windows has never thought of installing an input method, but as a programmer, it cannot survive!
Respect originality. For more information, see http://www.cnblogs.com/fsjohnhuang/p/3900405.html,^_^ John.