在 tty 显示中文:fbterm 配置备忘
安装 fbterm
sudo apt install fbterm将用户添加到 video 组
sudo gpasswd -a $USER video为 fbterm 分配 cap_sys_tty_config+ep 能力
sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm配置 tty 登录自动启动 fbterm
此项配置针对 bash,在 /etc/bash.bashrc 或 ~/.bashrc 中加入
if [[ "$TERM" = linux ]] && [[ "$(tty)" =~ tty ]] && type fbterm &>/dev/null; then
exec fbterm
fi