Skip to content
/ loginx Public
forked from iSora/loginx

A getty/login/xinit combination

License

Notifications You must be signed in to change notification settings

izshtar/loginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

	+----------+
	|  loginx  |
	+----------+

This is a combination of getty, login, and xinit for use on Linux
console. While it is possible to use those directly, 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.

Installation:

./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 [email protected],
or whatever correct location your distribution's init system requires.

make install will by default install [email protected] to the systemd
system directory. Enable with "systemctl enable loginx@tty1". You may
need to disable getty and display manager first.

Rootless X is not supported, so on those systems you need to configure
the wrapper by creating /etc/X11/Xwrapper.config with:
    allowed_users = anybody
    needs_root_rights = yes

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.

About

A getty/login/xinit combination

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 88.8%
  • Makefile 6.6%
  • Roff 4.6%