首页 技术 正文
技术 2022年11月23日
0 收藏 809 点赞 2,554 浏览 1516 个字

CentOS 7通过yum安装fcitx五笔输入法

下面通过了亲測:

1、设置源

Posted in Linux at 三月 5th, 2015 / No Comments ?

增加EPEL源

EPEL7差点儿是CentOS必备的源:

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

$ sudo rpm -ivh epel-release-7-5.noarch.rpm

$ sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

加入mosquito-myrepo源

mosquito-myrepo是一个私人制作的第三方源。当中包括了fcitx输入法以及基于fcitx的拼音、五笔输入法。

项目地址: https://copr.fedoraproject.org/coprs/mosquito/myrepo/

支持的发行版: Fedora 19/20/21/rawhide 以及RHEL/CentOS 7

$ yum-config-manager –add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo

2、卸载原来的:

yum remove ibus

yum remove imsettings imsettings-libs im-chooser

3、安装新的

假设仅仅须要安装五笔那么则须要安装包(当然附带会安装一些对应的依赖):

# yum install fcitx fcitx-table-chinese –enablerepo=mosquito-myrepo

注:这一步,五笔输入法已经安装上了。

假设须要可视化的fcitx设置工具则使用命令:

# yum install fcitx-configtool –enablerepo=mosquito-myrepo

4、进行配置

配置Fcitx

在~/.bashrc中加入例如以下内容

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS=”@im=fcitx”

关闭gnome-shell 对键盘的监听,然后切换输入法为fcitx:

$ sudo pkill ibus-daemon

$ gsettings set org.gnome.settings-daemon.plugins.keyboard active false

$ imsettings-switch fcitx

重新启动系统,fcitx自己主动启动,但图标藏在桌面右下角的通知栏中

打开fcitx的配置工具,选择输入法标签点”+”能够搜索并加入输入法

安装其它输入法

$ yum install fcitx-googlepinyin fcitx-cloudpinyin # 谷歌拼音输入法

$ yum install fcitx-rime fcitx-cloudpinyin # 中州韵输入法

$ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyin输入法

$ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyin输入法

http://seisman.info/fcitx-for-centos-7.html

http://www.92wiki.com/hdwiki/doc-view-424.html

引用文档:http://yuexuan.sinaapp.com/?p=2218

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,907
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,432
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,247
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,058
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,690
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,727