配置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 重启
第一种方案:
在启动脚本~/.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