web/autologin.md

2.1 KiB

Back to the top joborun wiki page

How to setup an autologin service in joborun

In brief, to get it running right away, install jobcore/jobo-autologin

sudo pacman -S jobo-autologin

Then run the setup script

sudo autologin-setup

Then start the service up

sudo autologin-on

Introduction

Autologin most commonly, and without the complications of logind, display manager, etc. is a modification of a standard tty (console) where the sysadmin authorizes the system to a utomatically login a specific user in a specific tty and start her/his default cell.

Most people who use autologin also autostart a graphic session from their shell, X, wayland, or "other", so the system basically finishes stage1 booting and directly executes the user's autostart graphical session. Startx or xinit are the most common commands in such a case, in a system like ours where a user is authorized to start an X server.

Since rarely anyone uses as many or more than 6 ttys, we chose tty7 as dedicated to autologin, a choice a sys admin can change if so needed.

Services and service scripts

Since joborun is geared up to use at least runit, optionally s6/66, and both, to maintain the freedom to boot either one, we made the service work for both systems wether they are installed or not. One case where there may be an exception, is if in your system you only have runit, you setup and start autologin then install s6/66, you will have to at least execute

sudo autologin-on

one more time for the service to be enabled and start in s6/66

Notes on security

Not everyon and not every system built and maintained is critical of privacy and security, some are actually intented to be public and shared by family, friends, work, community in general, and autologin cuts the redundant steps of username and password.

If you are concerned about privacy and security of your data then autologin is not for you, immediately execute:

sudo autologin-off

and uninstall the pkg

sudo pacman -R jobo-autologin