chromeOS中Linux切换数据源、设置中文、安装fcitx5中文输入法

本文基于ChromeOS 版本106.0.5249.112(正式版本),Debain 11版本

[设置]-[开发者]-[Linux开发环境]-[启用]   //chromebook开启Linux容器

chromebook启动[终端]并进入shell,默认是英文。

以下内容涉及到的技术均为Debain,非Google提供技术指导

目录

切换数据源

设置中文

安装fcitx5中文输入法


切换数据源

输入:sudo apt install nano  //安装nano编辑器

输入:sudo nano /etc/apt/sources.list   //进入sources.list并进行修改,替换为清华大学源

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

 输入:ctrl + x ,y  退出nano编辑器

输入:sudo apt update   //检查更新

输入:sudo apt upgrade -y  //更新程序

设置中文

输入:sudo dpkg-reconfigure locales  //进入配置页面

注意:使用全屏下的[终端],选中en_US.UTF8、zh_CN UTF-8 UTF-8  按空格选中,按回车确定

输入:sudo apt install ttf-wqy-zenhei  //安装中文字体

注意:重启容器,替换中文后,后续多个GUI应用均会以中文形式。

安装fcitx5中文输入法

输入:sudo apt install  fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-module-xorg kde-config-fcitx5 im-config zenity   //安装fcitx5以及相关组件

注意:一旦安装完毕,可在chromeOS的启动器[Linux应用]中发现小企鹅Fcitx5 。

输入:im-config  //进入fcitx5的初始向导

输入:fcitx5-configtool //进入fcitx5的配置页面

 注意:鉴于chromeOS的特性,此页面一旦打开启用后,无需关闭,只需最小化即可调用输入法。可创建快捷方式,无需使用[终端]调用。也可将此设置为自动启动。

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值