运行以下命令,安装谷歌拼音输入法
sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin
安装完成后重启。
屏幕右上方的状态栏有输入法的图标了。

2019-11-27-211334_1920x1080_scrot.png
可以设置输入法

2019-11-27-211424_1920x1080_scrot.png
百度了一下fcitx输入法:
Fcitx [ˈfaɪtɪks] is an input method framework with extension support. Currently it supports Linux and Unix systems like freebsd. It has three built-in Input Method Engine, Pinyin, QuWei and Table-based input methods.
Fcitx tries to provide a native feeling under all desktop as well as a light weight core. You can easily customize it to fit your requirements.
Fcitx [ˈfaɪtɪks] 是一个支持扩展的输入法框架。当前它支持 Linux 和 Unix 系统,例如 freebsd。它包括了三个内置的输入法引擎,拼音,区位和基于码表的输入法。
Fcitx 尝试提供在所有桌面环境下原生的体验,并保持其内核轻量。你可以很简单的将其按照你的需要进行配置。
PS: 本文的中文除了引用的一段全部是用树莓派下的谷歌拼音输入法输入的。第一次输入树莓派时三个字要一个一个选,输入第二遍的时候系统已经可以作为词组输入了。树莓派三个字输入SMP即可。