The installation steps are as follows:
1. Join Epel Source
EPEL7 is almost a must-have source for CentOS: sudo yum install epel-release
2. Add Mosquito-myrepo Source
Mosquito-myrepo is a privately crafted third-party source that includes the Fcitx input method, supported distributions: Fedora 19/20/21/rawhide and Rhel/centos 7.
sudo yum-config-manager--add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/ Mosquito-myrepo-epel-7.repo
3. Install Input Method
You can select one or more of the various input methods below:
yum install fcitx-googlepinyin fcitx-cloudpinyin # Google Pinyin input method
yum install fcitx-rime fcitx-cloudpinyin # Zhongzhou Yun input method
yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyin input method
yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyin input method
4. Clean up work
Given that multiple repo version conflicts can cause some trouble, the best way to do this is to disable the repo after installing the required software and enable it when needed.
Edit the/etc/yum.repos.d/mosquito-myrepo-epel-7.repo and change the enable=1 to enable=0.
Vi/etc/yum.repos.d/mosquito-myrepo-epel-7.repo
5. Set Input method Toggle shortcut key
Applications--Other-->FCITX configurations
In the Input Method tab, click + Add Input Method installed in step three
In the Global Configuration tab page to configure the keyboard shortcut keys (the default ctrl+shift cannot switch, I set to ctrl+q switch)
Here, the steps to install the FCITX Chinese Input method on CentOS 7 are all finished, and I hope that my explanation can help you to improve.
CentOS 7 Installation Fcitx Chinese Input method