DeBian arm64 FireflyRK3576安装中文输入法和中文语言系统

1.Debian 配置中文环境

在 Debian 上配置中文环境主要包括以下几个步骤:

安装语言包: 首先需要确保系统中已经安装了语言包。可以使用 apt 工具来安装:


sudo apt update
sudo apt install locales

2.配置 locale:

接下来需要配置系统的 locale 设置。运行以下命令打开 locale 的配置界面:


sudo dpkg-reconfigure locales

在出现的列表中选择 zh_CN.UTF-8(使用上下箭头来移动,并使用空格来选择)。然后在下一个界面中选择 zh_CN.UTF-8 作为默认的 locale。

3.中文输入法安装

3.1. 彻底卸载旧版 Fcitx4 和残留包

sudo apt remove --purge fcitx fcitx-bin fcitx-sunpinyin
sudo apt autoremove --purge

3.2删除残留配置

rm -rf ~/.config/fcitx ~/.config/fcitx-sunpinyin
rm -rf ~/.local/share/fcitx*

3. 3确认卸载完成

apt list --installed | grep fcitx
dpkg -l | grep fcitx

如果输出为空,说明卸载干净了。

3.4 重新安装 Fcitx5

sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-table-extra

3.5. 设置环境变量

echo -e "GTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx" | sudo tee -a /etc/environment

然后 重启系统 或重新登录。

3.6 安装缺失依赖项

sudo apt install fcitx5-config-qt

3.7方法 手动编辑配置文件

[InputMethod]
# 五笔86
Wubi86/Name=Wubi86
Wubi86/Enabled=True

3.8使用 vivim 编辑

vi ~/.config/fcitx5/config

3.9写入配置

mkdir -p ~/.config/fcitx5  # 确保目录存在
echo -e "[InputMethod]\nWubi86/Name=Wubi86\nWubi86/Enabled=True" > ~/.config/fcitx5/config

3.10 重启生效

fcitx5 -r

你可能感兴趣的:(linux,ubuntu,运维)