配置TTY下始终显示英文

 

第一种方案:

在启动脚本~/.bashrc末尾加上

if [ -z "$DISPLAY" ]; then
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US
fi

 

 第二种方案:

编辑 /etc/profile, 加入:

tty | egrep -q tty[1-6] && export LC_ALL=C

 

 保存, source ~/.bashrc 或者 source /etc/profile  重启
posted @ 2021-03-04 22:19  N1GHT  阅读(137)  评论(4)    收藏  举报