zoukankan      html  css  js  c++  java
  • ubuntu 安装搜狗输入法

    from:http://blog.csdn.net/qq_21792169/article/details/53152700

    最近开始学习linux 在安装输入法中遇到的一些问题,最终成功安装,也得益于网络上的前辈写的文章,现在将全部安装步骤以及遇到的一些问题总结如下:
     
    基本上分三步走
    1,添加fcitx的键盘输入法系统,因为sogou是基于fcitx的,而系统默认的是iBus;
    2,安装sogou输入法;
    3,设置系统参数及一些注意点。
     
    第一步、添加fcitx键盘输入法系统
    ①先添加以下源
    sudo add-apt-repository ppa:fcitx-team/nightly
    ②添加源之后需要更新一下系统
    sudo apt-get update 

    ③开始安装fcitx

    sudo apt-get install fcitx

    ④接着安装fcitx的配置工具

    sudo apt-get install fcitx-config-gtk

    ⑤然后安装fcitx的table-all软件包

    sudo apt-get install fcitx-table-all

    ⑥安装im-switch切换工具

    sudo apt-get install im-switch

    ⑦ 看看我们的fcitx是否安装完成

    点击系统左上角搜索按钮,输入fcitx查看是否有对应的应用程序。

    其实fcitx只是一个输入法工具,本身不带资源包的,所以Ubuntu下安装搜狗输入法,需要我们自己来下载搜狗输入法的资源包。
     
    第二步、安装sogou输入法
    ①选择你操作系统的版本下载就可以了
    ②用dpkg命令来安装搜狗输入法资源包


    这里会出现下面的错误:
    Preparing to unpack sogoupinyin_2.1.0.0082_amd64.deb ...
    Unpacking sogoupinyin (2.1.0.0082) ...
    Setting up sogoupinyin (2.1.0.0082) ...
    Processing triggers for mime-support (3.59ubuntu1) ...
    Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
    Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
    Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...
    Processing triggers for shared-mime-info (1.5-2) ...
    Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
    Processing triggers for libglib2.0-0:amd64 (2.48.0-1ubuntu4) ...
    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.

    可以不用管上面这个错误

     
    第三步、设置语言选项
    ①到系统设置->语言支持,将键盘输入法系统由默认的iBus设置为fcitx
    ②这个时候是看不到效果的,一定要注销一次
    ③搜索出fcitx配置,将sogou输入法设为默认即可


    sogou-qimpanel 命令是启动搜狗输入法的。
    如果还是切换不出输入法,那么执行下面的操作:
    配置Fcitx的环境:在~/.bashrc中加入一下内容
    [html] view plain copy
     
    1. export GTK_IM_MODULE=fcitx      
    2. export QT_IM_MODULE=fcitx      
    3. export XMODIFIERS="@im=fcitx"   

     pycharm 在ubuntu不能调出搜狗输入法:

    在pycharm.sh添加上述内容,注意有位置要求

    https://blog.csdn.net/appleyuchi/article/details/72215412

  • 相关阅读:
    快速排序
    常见的正则表达式验证(更新中)
    中介者模式
    RadioButtonList控件如何取得选中的值
    职责链模式
    设计模式之GOF23建造者模式
    设计模式之GOF23工厂模式02
    设计模式GOF23之工厂模式01
    多线程测试时的辅助类--CountDownLatch
    设计模式GOF23之单例模式
  • 原文地址:https://www.cnblogs.com/buxizhizhoum/p/8084874.html
Copyright © 2011-2022 走看看