注意:先把本地的yum源移到其他位置
如:[root@localhost ~]# mv /etc/yum.repos.d/* /opt/repo/
1、配置阿里云的YUM源
[root@localhost ~]# wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/CentOS-Base.repo
2、安装epel库源
root@localhost ~]# yum -y install epel-release
3、安装拼音fcitx软件
[root@locahost ~]# yum -y install fcitx fcitx-pinyin fcitx-configtool
4、设置自动启动,在应用程序 优化(Tweaks)里,开机启动程序(Startup Application)添加fcitx为自启动项
5、在/etc/profile.d/下配置个脚本名为fcitx.sh
[root@localhost ~]# cat > /etc/profile.d/fcitx.sh << EOF
> export GTK_IM_MODULE=fcitx
> export QT_IM_MODULE=fcitx
> export X