This is a combination of getty, login, and xinit for use on the Linux
console. A single executable is simpler and can do a few extra things
to require less typing during login.
Features:
loginx requires PAM, ncurses, and a c11-supporting compiler, gcc 4.6+:
./configure && make install
Use it like you would getty. The command is "loginx tty1", and you'd add
it to inittab, somewhere in rc.d, in a copy of systemd's getty@.service,
or whatever correct location your distribution's init system requires.
make install will by default install loginx@.service to the systemd
system directory. Enable with "systemctl enable loginx@tty1". You may
need to disable getty and display manager first.
Also, you'll need a valid PAM configuration file. make install will
install one that ought to work. If not, copy /etc/pam.d/login to
/etc/pam.d/loginx.
You can do autologin with the
pam_autologin PAM module.