create autologin document

This commit is contained in:
joborun linux 2023-08-16 14:13:27 +00:00
parent d4b8656686
commit 4b1c07f717
1 changed files with 54 additions and 0 deletions

54
autologin,md Normal file
View File

@ -0,0 +1,54 @@
### [[Back to the top joborun wiki page|index.md]] ###
### How to setup an autologin service in joborun ###
In brief, to get it running right away, install jobcore/jobo-autologin
<pre>sudo pacman -S jobo-autologin</pre>
Then run the setup script
<pre>sudo autologin-setup</pre>
Then start the service up
<pre>sudo autologin-on</pre>
### 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
<pre>sudo autologin-on</pre>
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:
<pre>sudo autologin-off</pre>
and uninstall the pkg
<pre>sudo pacman -R jobo-autologin</pre>