Debian系统显示中文

开发板上的debian默认不显示中文。

  • 安装字体

    sudo apt install fonts-wqy-zenhei

  • 安装locals

    sudo apt install locales

  • (无必要)设置/etc/locale.gen、设置/etc/locale.conf

  • 运行dpkg-reconfigure locales

    dpkg-reconfigure locales

可以选择UTF-8

用TAB切换到OK

用TAB切换到OK

  • 重启(必须)

  • 检查

    $ locale

    LANG=zh_CN.UTF-8
    LANGUAGE=
    LC_CTYPE="zh_CN.UTF-8"
    LC_NUMERIC="zh_CN.UTF-8"
    LC_TIME="zh_CN.UTF-8"
    LC_COLLATE="zh_CN.UTF-8"
    LC_MONETARY="zh_CN.UTF-8"
    LC_MESSAGES="zh_CN.UTF-8"
    LC_PAPER="zh_CN.UTF-8"
    LC_NAME="zh_CN.UTF-8"
    LC_ADDRESS="zh_CN.UTF-8"
    LC_TELEPHONE="zh_CN.UTF-8"
    LC_MEASUREMENT="zh_CN.UTF-8"
    LC_IDENTIFICATION="zh_CN.UTF-8"
    LC_ALL=

相关推荐
007php0073 小时前
Go 错误处理:用 panic 取代 err != nil 的模式
java·linux·服务器·后端·ios·golang·xcode
wypywyp3 小时前
linux基础——UDP、TCP
linux·tcp/ip·udp
孙克旭_3 小时前
day082-初识ElasticStack
linux·运维·elasticsearch
爱奥尼欧4 小时前
【Linux】系统部分——ELF文件格式与动态库加载
linux·运维·服务器
CharXL6 小时前
Linux性能分析工具和方法
linux·工具·技巧
爱吃烤鸡翅的酸菜鱼7 小时前
Linux常用命令行大全:14个核心指令详解+实战案例
linux·运维
板鸭〈小号〉9 小时前
Socket 编程 UDP
linux·网络协议·udp
m0_619731199 小时前
linux和RTOS架构区别
linux·运维·服务器
情深不寿31710 小时前
序列化和反序列化
linux·网络·c++·tcp/ip
青草地溪水旁11 小时前
linux修改权限命令chmod
linux·chmod