Wednesday, January 30, 2013

Autologin in FreeBSD without GDM

Autologin and startx without GDM or other display manager:
  1. Add this line to /etc/gettytab to describe new terminal line with autologin
    al.username:al=username:tc=std.230400:
    , where <username> is user to log in automatically. "al.username" is the terminal name which can be any.
  2. Change ttyv0 line in /dev/ttys from this:
    ttyv0 "/usr/libexec/getty Pc" xterm on secure
    to this
    ttyv0 "/usr/libexec/getty al.username" xterm on secure
    to spawn auto logged in terminal at Alt+F1 console.
  3. Set login shell on ttyv0 to start X11 immediately
    echo 'if $tty == ttyv0 startx' >> ~/.login
  4. Reboot.
  5. X11 will start automatically for <username>.

No comments:

Post a Comment