Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
AmrtaShiva
V2EX  ›  Linux

LXDE 设置中文环境

  •  
  •   AmrtaShiva · Apr 15, 2020 via iPhone · 4282 views
    This topic created in 2258 days ago, the information mentioned may be changed or developed.

    如题。系统是定制的嵌入式 Debian 中文包已经装进去了 发现菜单里面没有设置的选项 。lxde 论坛里面也是说要通过这个选项设置 。然而找不到..../etc/xdg/...有个 config 内容空的。

    4 replies    2020-04-16 10:30:45 +08:00
    zhangpeter
        1
    zhangpeter  
       Apr 15, 2020   ❤️ 1
    sudo dpkg-reconfigure locales
    # 选择 zh_CN.UTF-8
    sudo update-locale LANG=zh_CN.UTF-8
    AmrtaShiva
        2
    AmrtaShiva  
    OP
       Apr 15, 2020
    @zhangpeter localectl list-locales 只有一个语言 ....
    404error
        3
    404error  
       Apr 16, 2020   ❤️ 1
    if [ ! -e "/usr/sbin/locale-gen" ] && [ ! -e "/sbin/locale-gen" ]; then
    apt update
    apt install -y locales
    fi

    sed -i 's/^#.*zh_CN.UTF-8.*/zh_CN.UTF-8 UTF-8/' /etc/locale.gen

    cat >/etc/default/locale <<-'EOF'
    LANG="zh_CN.UTF-8"
    LANGUAGE="zh_CN:zh"
    LC_ALL="zh_CN.UTF-8"
    EOF

    locale-gen zh_CN.UTF-8

    source /etc/default/locale 2>/dev/null

    export LANG="zh_CN.UTF-8"
    startlxde
    AmrtaShiva
        4
    AmrtaShiva  
    OP
       Apr 16, 2020
    @zhangpeter 感谢回复 已验证 有效
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2450 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.