Linux(Debian)发行版中文输入法
<p>Linux发行版下有两大输入法框架:ibus 和fcitx,其中fcitx 的体验要比ibus 好,因此选择 fcitx 框架,并安装中文输入法。</p><p>中文输入法中你可以选择<code>fcitx-pinyin or fcitx-sunpinyin or fcitx-googlepinyin</code>进行安装.本教程主要讲解如何在Debian 9上安装中文输入法.</p>
<p>对于中文环境的用户来说,安装Linux发行版后第一件事情就是安装中文输入法,通过本教程你讲学会如何在Debian 9中安装搜狗输入法.</p>
<h3>环境配置</h3>
<p>1.如果 Debian 9 环境不是中文环境需要进行切换中文环境,可以通过以下命令切换:</p>
<pre><code>sudo dpkg-reconfigure locales</code></pre>
<p>2.在弹出的界面中,至少选择zh_CN.UTF-8,点击OK后,弹出一个选择默认为zh_CN.UTF-8。</p>
<p>3.检查是否更改成了zh_CN.UTF-8</p>
<p> sudo locale</p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705003541521-514554939.png"></p>
<p>可以看到LANG=zh_CN.UTF-8。如果不是zh_CN.UTF-8。</p>
<p>找到setting->region & language。设置如下:</p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705003819572-53090279.png"></p>
<p>4.执行如下命令进行系统环境软件更新和安装:</p>
<pre><code>sudo apt update</code></pre>
<h3>安装fctix中文输入法</h3>
<p>1、首先打开命令行终端,输入如下命令:</p>
<pre><code>sudo apt install fcitx</code></pre>
<p>输出内容如下:</p>
<pre><code>正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libgooglepinyin0 libmariadbclient18 libopencc2 libopencc2-data
libqt4-declarative libqt4-network libqt4-opengl libqt4-script libqt4-sql
libqt4-sql-mysql libqt4-xmlpatterns libqtwebkit4 libsunpinyin3v5
mysql-common sunpinyin-data
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all
fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua
fcitx-module-x11 fcitx-modules fcitx-ui-classic
建议安装:
fcitx-m17n fcitx-tools kdebase-bin plasma-widgets-kimpanel
下列【新】软件包将被安装:
fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-module-dbus
fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules
fcitx-ui-classic
升级了 0 个软件包,新安装了 16 个软件包,要卸载 0 个软件包,有 16 个软件包未被升级。
需要下载 1,925 kB/2,292 kB 的归档。
解压缩后会消耗 7,940 kB 的额外空间。
您希望继续执行吗? </code></pre>
<p>输入“Y”,软件包将进行安装。</p>
<p>2.终端输入</p>
<p> im-config</p>
<p>在弹出的框中进行设置:</p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705004119141-189958505.png"></p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705004153920-636091274.png"></p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705004209359-1769483154.png"></p>
<p><img src="https://img2018.cnblogs.com/blog/1061756/201907/1061756-20190705004248473-257885570.png"></p>
<p>完成。</p>
<p>3、执行输你需要安装的中文输入法命令:</p>
<pre><code>sudo apt install <code>fcitx-sunpinyin</code></code></pre>
<p>当然,你也可以安装其他的:</p>
<pre><code>sudo apt install fcitx-googlepinyin fcitx-pinyin </code></pre>
<p>4.重启电脑。</p>
<p style="text-align: center"><span style="color: rgba(136, 136, 136, 1)">an9 安装完成后的中文输入法</span></p><br><br>
来源:https://www.cnblogs.com/xiangxinhouse/p/11135924.html
頁:
[1]