输入命令:sudo apt-get install fcitx-sunpinyin,就可以下载中文输入法包了。
命令格式:sudo apt-get install package是下载安装包。apt-get(Advanced Package Tool)是Linux的应用程序管理器。
![技术分享图片](http://upload-images.jianshu.io/upload_images/6044416-5477d19b951ce125.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择->系统:首选项:个人:语言支持
![技术分享图片](http://upload-images.jianshu.io/upload_images/6044416-b669b7e99eba0bb4.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1080/q/50)
键盘输入法系统:选择fcitx
![技术分享图片](http://upload-images.jianshu.io/upload_images/6044416-73559711df72784a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Configure一下键盘,在Addon选项选择拼写后,点击下面的Configure
![技术分享图片](http://upload-images.jianshu.io/upload_images/6044416-5f80d0371ff245ed.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
然后Sunpinyin就出现啦,啦啦啦啦
![技术分享图片](http://upload-images.jianshu.io/upload_images/6044416-80af73b3ab8413dd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
然后Ctrl+shift就可以切换输入法了。
最后如果需要云词库拼音,可以输入命令
1. sudo apt-get install fcitx-googlepinyin
2. sudo apt-get install fcitx-module-cloudpinyin
关于输入法黑框解决办法:
1. 安装Fcitx所需组件
$ sudo apt install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-* presage
2. 移除多余的组件(仅针对非KDE桌面)(Fcitx输入中文时不显示候选词框的解决办法)
因为上面的安装命令为了方便使用了通配符安装,所以会多安装一个 fcitx-module-kimpanel
,这个组件可能导致在非KDE桌面环境下Fcitx输入中文时不显示候选词框,如果是KDE桌面则无需移除。
$ sudo apt remove fcitx-module-kimpanel