Install Sogou IM 2.0 in Ubuntu14.04+/Xfce
Ubuntu14.04+ 安装搜狗输入法
搜狗输入法是一款非常友好的输入法产品,从Ubuntu14.04开始对Linux支持,不过只是Debian系的,是Ubuntu优麒麟组引入的。优麒麟是针对国人设计的Ubuntu的一个版本,不过我个人更喜欢 Deepin,他为linux舍弃带来了譬如「有道词典」,「网易云音乐」等优秀的应用,界面设计也区域人性化和美观考虑。不少中国linux圈的都是基于Debian的系统优化。
Introduction
Sogou Input 2.0 新增了双拼的支持,提供了更为稳定的支持,数据可以同步,换皮肤。具体可以参见 搜狗输入法Linux版2.0更新日志。
不过安装搜狗输入法Linux版2.0的时候会有一个问题
➜ sudo gdebi sogoupinyin_2.0.0.0078_amd64.deb
结果最后一行提示,
No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override'; ignoring override for this key.
提示'Gtk/IMModule'不存在,查看这个schema确实没有
➜ ~ gsettings list-keys org.gnome.settings-daemon.plugins.xsettings
disabled-gtk-modules
priority
hinting
overrides
rgba-order
antialiasing
active
enabled-gtk-modules
代码的本意是要把这个key Gtk/IMModule 加入到org.gnome.settings-daemon.plugins.xsettings中。
所有应该是1
[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
overrides={'Gtk/IMModule':<'fcitx'>}
# 而不是
# Gtk/IMModule=fcitx
[com.canonical.indicator.keyboard]
visible=false
所以需要修改这个文件并重新打包
Solution
mkdir -p extract/DEBIAN
#prepare the environ
# 准备环境
dpkg-deb -x sogoupinyin_2.0.0.0078_amd64.deb extract/
# extract the content files
# 解压出内容文件
dpkg-deb -e sogoupinyin_2.0.0.0078_amd64.deb extract/DEBIAN
# extract the control file
# 解压出控制文件
vi extract/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override
# correct the file
# change line 4 to overrides={'Gtk/IMModule':<'fcitx'>}
# 更正文件
# 把第四行改成 overrides={'Gtk/IMModule':<'fcitx'>}
dpkg-deb -b extract/ ./sogoupinyin_2.0.0.0078_wkd.deb
# pack the files into deb installer file san save to current dir with name sogoupinyin_2.0.0.0078_wkd.deb
# 重新打包为...
# 无果没有指定文件名,就和原文件名一样,这是在/extract/DEBIAN/control中定义的
sudo gdebi sogoupinyin_2.0.0.0078_wkd.deb
# 安装 install
Conclusion
- 我把文件挂载在这里 [ Ubuntu x64 ]
- dpkg-deb 是对deb installer文件进行解压或者打包的。
Install Sogou IM 2.0 in Ubuntu14.04+/Xfce的更多相关文章
- .net core2.0+nginx+Ubuntu14.04【一个小白的初次尝试】
新的业务来了,需要使用linux环境部署web服务,作为一个C#的懒惰程序员,就这么上了车[狗脸],废话不多说,跟我一样的小白请看,大神请绕路. 站点暂时没有使用Docker部署,为什么呢,因为我还没 ...
- Install rapyuta Robot Cloud Engine on Ubuntu14.04
# -Rapyuta-installation-in-Ubuntu14.04-LTS-Trusty-This gzip folder is a tested version which can ins ...
- spark 1.6.0 安装与配置(spark1.6.0、Ubuntu14.04、hadoop2.6.0、scala2.10.6、jdk1.7)
前几天刚着实研究spark,spark安装与配置是入门的关键,本人也是根据网上各位大神的教程,尝试配置,发现版本对应最为关键.现将自己的安装与配置过程介绍如下,如有兴趣的同学可以尝试安装.所谓工欲善其 ...
- ubuntu14.04+xfce下启用fcitx,使用中文输入法
1. 安装fcitx sudo apt-get install fcitx-pinyin 2.启用fcitx 打开 setting -> Language Support -> Lang ...
- ubuntu14.04下安装cudnn5.1.3,opencv3.0,编译caffe及配置matlab和python接口过程记录
已有条件: ubuntu14.04+cuda7.5+anaconda2(即python2.7)+matlabR2014a 上述已经装好了,开始搭建caffe环境. 1. 装cudnn5.1.3,参照: ...
- ubuntu14.04上实现faster rcnn_TF的demo程序及训练过程
安装环境:Ubuntu14.04.显卡Tesla K40C+GeForce GT 705.tensorflow1.0.0.pycharm5.0 说明:原文见博客园,有问题原文下留言,不定期回复.本文作 ...
- Ubuntu14.04下安装tomcat
1.官方网站下载最新的tomcat:http://tomcat.apache.org/download-80.cgi在ubuntu上,我们下载zip和tar.gz.Ubuntu14.04安装和配置To ...
- Ubuntu14.04 64位机上安装cuda8.0 cudnn5.0操作步骤 - 网络资源是无限的
查看Ubuntu14.04 64位上显卡信息,执行: lspci | grep -i vga lspci -v -s 01:00.0 nvidia-smi 第一条此命令可以显示一些显卡的相关信息:如果 ...
- Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04 配置参考文献 以及 常见编译问题总结
Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04 配置参考文献 ---- Wang Xiao Warning: Please make sure the cud ...
随机推荐
- Class.getResourceAsStream() VS. ClassLoader.getResourceAsStream()
For Class.getResourceAsStream(String name), if the name parameter doesn't start with a "/" ...
- 弹窗插件layer
layer的插件的地址:http://layer.layui.com/简单使用: layer.open({ type: , //page层 area: ['500px', '300px'], titl ...
- Linux中硬件相关命令
http://www.cnblogs.com/cchust/p/3354570.html http://www.cnblogs.com/kerrycode/archive/2012/07/06/257 ...
- windows下制作PHP扩展
一.编译PHP 转自:http://demon.tw/software/compile-php-on-windows.html 编译PHP扩展必需的一些头文件需要从php源码中获取,其中有一些配置性的 ...
- 解决ScrollView嵌套ViewPager出现的滑动冲突问题
/** * 解决ScrollView嵌套ViewPager出现的滑动冲突问题 */ public class ScrollView1 extends ...
- C# 键盘钩子类
键盘钩子类代码如下 class globalKeyboardHook { #region Constant, Structure and Delegate Definitions /// <su ...
- 关于开源授权协议 GPL 和 LGPL
GPL 是 GNU General Public License (GNU 通用公共许可证)的缩写形式:LGPL 是 GNU Lesser General Public License (GNU 宽通 ...
- UISlide属性
1. minimumValue :当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0 _slider.minimumValue = 10.0; 2. maximumValue :当 ...
- mantis 安装问题
1. 邮件 修改 config_defaults_inc.php $g_administrator_email = 'mantis@pooy.net'; $g_webmaster_email = 'm ...
- 线段树 Interval Tree
一.线段树 线段树既是线段也是树,并且是一棵二叉树,每个结点是一条线段,每条线段的左右儿子线段分别是该线段的左半和右半区间,递归定义之后就是一棵线段树. 例题:给定N条线段,{[2, 5], [4, ...