在 Ubuntu 系统中,自带的输入法非常难用,一般需要再安装搜狗输入法ubuntu搜狗输入法设置,但是搜狗输入法往往需要各种配置,而且还有可能配置出错。
这篇文章就来解决这个问题,讲解下如何一键安装搜狗输入法。
如果你想直接使用本文方法安装请下拉到最后应用部分,这里先讲一下一键安装的方法。
方法 安装 im-config 和 fcitx
sudo apt install -y im-config fcitx
设置 fcitx
im-config -n fcitx
下载搜狗拼音软件包
wget -P /tmp/ https://ime.sogoucdn.com/dl/index/1612260778/sogoupinyin_2.4.0.3469_amd64.deb
将安装包放置到 /tmp 目录下linux操作系统教程,下次重启系统自动清理了linux解压rar,省得自己清理。
安装搜狗拼音软件包
sudo apt install -y /tmp/sogoupinyin_2.4.0.3469_amd64.deb
重启系统
重启系统后ubuntu搜狗输入法设置,ctrl + space(空格键) 切换到搜狗输入法就可以使用啦。
应用
#!/bin/bash
# Author: Linux猿
# date: 2021-05-26
# 安装 im-config fcitx
sudo apt install -y im-config fcitx
# 设置 fcitx
im-config -n fcitx
# 下载搜狗拼音软件包
wget -P /tmp/ https://ime.sogoucdn.com/dl/index/1612260778/sogoupinyin_2.4.0.3469_amd64.deb
# 安装搜狗拼音软件包
sudo apt install -y /tmp/sogoupinyin_2.4.0.3469_amd64.deb
直接将上面的脚本复制到一个 xxx.sh (可以自定义文件名)脚本文件中,然后执行命令:
sudo /bin/bash xxx.sh # 替换 xxx 为你自己定义的文件名
重启系统后,ctrl + space (空格)就可以使用啦!