Ubuntu 16.04 安装搜狗中文输入法安装

本文记录在 Ubuntu16.04 下安装搜狗中文输入法过程。

1. 安装 fcitx

搜狗输入是基于 fcitx 的,而系统默认是iBus。

想要装搜狗输入法的话,先看看fcitx有没有装上。

fcitx --version

如果能够出来版本号说明系统是装了 fcitx 的。如果没有,那就使用下面的命令安装fcitx

1.1 配置源

  1. 先添加源
sudo add-apt-repository ppa:fcitx-team/nightly
  1. 添加源之后更新
sudo apt-get update

1.2 命令行安装fcitx

sudo apt-get install fcitx

1.3 命令行安装相关工具

  1. 安装fcitx的配置工具
sudo apt-get install fcitx-config-gtk
  1. 安装fcitx的table-all软件包
sudo apt-get install fcitx-table-all
  1. 安装im-switch切换工具
sudo apt-get install im-switch

2. 系统语言设置

2.1 安装中文支持

Ubuntu 16.04 安装搜狗中文输入法安装

2.2 配置 fcitx

将默认的keyboard input method system iBus 切换成 fcitx
Ubuntu 16.04 安装搜狗中文输入法安装

3. 安装搜狗输入法

搜狗输入法的安装包是以 .deb 结尾的打包应用程序,属于dpkg包

3.1 安装 GDebi

先装一个小工具GDebi,这个工具能够根据软件库自行解决依赖关系。

sudo apt-get install gdebi

3.2 下载搜狗输入法

3.3 安装输入法

进入下载文件目录,我这里是默认下载目录

 cd Downloads/

sogoupinyin_2.2.0.0102_amd64.deb 是下载的安装文件的名称

sudo gdebi sogoupinyin_2.2.0.0102_amd64.deb 

4. 重启计算机

重新启动计算机,使配置生效.

5. 配置搜狗输入法

  1. 搜索 fcitx configuration,并打开 fcitx configuration
  2. 点击+,并选中Sougou Pinyin,OK 即可.
  3. 点击小键盘选择搜狗输入法或者按shift切换到输入法。
    Ubuntu 16.04 安装搜狗中文输入法安装
    Ubuntu 16.04 安装搜狗中文输入法安装

参考:

http://blog.csdn.net/iamplane/article/details/70447517

https://blog.csdn.net/qq_23869697/article/details/79048238

https://jingyan.baidu.com/article/642c9d341b3ccb644a46f7ac.html