This page describes additional things to be done to a FreeBSD setup for my TV computer, currently called teevee.lemis.com. It
should be used in conjunction with the main
upgrade page.
The steps:
-
Log in automatically as grog. Modify /etc/ttys to contain:
ttyv0 "/usr/libexec/getty autogrog" cons25 on secure
/etc/gettytab gets:
autogrog|al.9600:\
:al=grog:tc=std.9600:
-
Ensure that ~/.bashrc contains:
if [ "$HOSTNAME" = "teevee" -o "$HOSTNAME" = "tiwi" ]; then
if [ "`tty`" = "/dev/ttyv0" ]; then
# On teevee, start X automatically from ttyv0.
echo -n ASKPASS: $SSH_ASKPASS, tty
tty
# The < /dev/null bypasses interactive prompting and gets the
# passphrase from $SSH_ASKPASS. The DISPLAY is required.
eval `ssh-agent` >/dev/null
DISPLAY=:0 ssh-add < /dev/null
DISPLAY=:0 startx -- -listen tcp &
elif [ `tty` = "/dev/pts/0" ]; then
xmodmap ~/.xmodmap
fi
fi