Linux安装中文输入法-谷歌拼音输入法、搜狗输入法

主要步骤,选择适合自己的尝试:

1) 卸载之前没装好的搜狗输入法。

@:~/Downloads$ sudo apt-get remove fcitx*

删除依赖库

@:~/Downloads$ sudo apt-get autoremove

检测是否删除fcitx

@:~/Downloads$ dpkg –get-selections | grep fcitx

2) Ubuntu 默认是安装了ibus,这里先卸载它。

@:~/Downloads$ sudo apt-get remove ibus

3) 添加fcitx的nightlyPPA。有两种方式:

方法一: 在源中添加nightly源。

@:~/Downloads$ sudo gedit /etc/apt/sources.list

加入以下两行:

deb https://ppa.launchpad.net/fcitx-team/nightly/ubuntu quantal main

deb-src https://ppa.launchpad.net/fcitx-team/nightly/ubuntu quantal main

然后:

@:~/Downloads$ sudo apt-get update

方法二: PPA,在终端输入:

@:~/Downloads$ sudo add-apt-repository ppa:fcitx-team/nightly

@:~/Downloads$ sudo apt-get update

4) 安装fcitx,Google输入法,云输入法

@:~/Downloads$ sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin fcitx-googlepinyin fcitx-module-cloudpinyin

@:~/Downloads$ sudo apt-get install fcitx-table-all

5) 设置fcitx为默认输入法

@:~/Downloads$ im-switch -s fcitx -z default

@:~/Downloads$ sudo im-switch -s fcitx -z default

6) 注销,看到右上角输入法出来了。Ctrl+空格键可以切换,和windows下风格似乎差不多,enjoy it!