CUI派向け。
スタートアップ設定方法
OS起動後に実行したいプログラムを記載するには
/etc/rc.local
chvt 1 # tty1に切り替え
exit 0
自動ログイン
/etc/init/tty1.conf
respawn
#exec /sbin/getty -8 38400 tty1
exec /sbin/agetty -a <username> tty1
ログインとともにfbtermを実行
CURRENT_TTY=$(tty)
if [ ${CURRENT_TTY/0-9/} = /dev/tty ]; then
fbterm
fi
[fbterm]can’t change kernel keymap table, ...
- can’t change kernel keymap table, all shortcuts will NOT work, see SECURITY NOTES section of man page for solution. と表示された時の対応
$ chmod u+s /usr/bin/fbterm
dircolors
$ dircolors -p > $HOME/.dir_colors
$ sed -i -e 's/DIR 01;34/DIR 01;33/' $HOME/.dir_colors
$ eval $($HOME/.dir_colors)
$ ls -al
ログインとともにXを起動
.bashrc
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi