Menu

Tree [4b8638] master /
 History

HTTPS access


File Date Author Commit
 conf 2013-09-03 Mike Sharov Mike Sharov [a2edf5] Add PAM, systemd conf files. Man page.
 docs 2022-07-06 Mike Sharov Mike Sharov [798c82] Update doc links to sourceforge
 .gitignore 2022-04-30 Mike Sharov Mike Sharov [6be980] Remove unnecessary gitignores
 Config.mk.in 2022-05-17 Mike Sharov Mike Sharov [ca50b5] Implement localized text display
 LICENSE 2020-05-23 Mike Sharov Mike Sharov [939cb1] Change license to ISC.
 Makefile 2022-05-04 Mike Sharov Mike Sharov [337af5] Use bindir, not sbindir in configure
 README.md 2022-07-06 Mike Sharov Mike Sharov [798c82] Update doc links to sourceforge
 config.h.in 2022-05-17 Mike Sharov Mike Sharov [d59643] Match several PAM localized messages
 configure 2022-07-06 Mike Sharov Mike Sharov [533284] Bump version for release
 defs.h 2022-05-18 Mike Sharov Mike Sharov [b8ee61] Only edit username when asked
 loginx.c 2022-05-17 Mike Sharov Mike Sharov [d59643] Match several PAM localized messages
 pam.c 2022-05-17 Mike Sharov Mike Sharov [855547] Define macros for PAM default strings
 uacct.c 2022-05-03 Mike Sharov Mike Sharov [07e3ae] Ensure SetSelectedAccountByName loads accounts
 ui.c 2022-05-18 Mike Sharov Mike Sharov [b8ee61] Only edit username when asked
 usess.c 2022-08-26 Mike Sharov Mike Sharov [4b8638] Verify user owns private dirs
 utf8.c 2022-05-17 Mike Sharov Mike Sharov [ca50b5] Implement localized text display
 utf8.h 2022-05-17 Mike Sharov Mike Sharov [ca50b5] Implement localized text display

Read Me

loginx

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:

  • A curses-based login prompt. A nice thing to have for those of use who
    do not want to use xdm but find getty a little bare.
  • Remembers last login name so you don't have to type it every time. In
    the login dialog press tab, up, or down, to cycle through available
    usernames. Very convenient on a family PC where security is not tight.
  • Will launch X if you have ~/.xinitrc or your login shell otherwise. If
    X fails to start, loginx falls back to the plain shell.

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.