4
在 tty 显示中文:fbterm 配置备忘
source link: https://blog.nanpuyue.com/2018/045.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
安装 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
配置字体及字号
修改配置文件 ~/.fbtermrc
即可,一目了然。
fbterm 环境下使用 Alt
+ F2
等快捷键切换 tty。
此外配合 fcitx-frontend-fbterm 还能实现在 tty 输入中文,但是无奈搜狗输入法在 fbterm 环境下乱码,所以懒得折腾了。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK