[systemd-devel] permanent autologin

Silvio Knizek killermoehre at gmx.net
Sun May 2 20:19:59 UTC 2021


Am Sonntag, dem 02.05.2021 um 19:14 +0200 schrieb Emanuel Berg:
> Silvio Knizek wrote:
>
> >
> > your path is wrong. You want the following:
> >
> > /etc/systemd/system/getty at tty1.service.d/10-autologin.conf
>
> I don't have that file or even directory, but I can put it
> there manually, of course.
It's expected that you don't have this directories and files. You can
just create them. In man:systemd.unit you find how templates and drop-
ins work.
After touching those files you need to run »systemd deamon-reload« to
tell systemd, that you touched them.
>
> > Do you need this auto login for debug reasons (than maybe
> > debug- shell.service is better suited), do you want to start
> > a terminal 1application (than maybe use a normal .service
> > with TTYPath), or do you start graphical applications (use
> > a login manager with auto login instead)?
>
> I have it setupt like this [1] so that
>
> Linux VT   1 -> Emacs
>          2-4 -> tmux
>            5 -> (do nothing)
>            6 -> X
>
> I don't really "need" auto login, it is more like I want it :)
>
> [1] https://dataswamp.org/~incal/conf/.zprofile
>
So, if you have this setup, I really suggest that you use specialised
units for every terminal and a graphical login manager for the X stuff.
So instead of starting agetty you can directly start emacs or tmux as
the User= you want.
And again for X, you want a graphical login manager, beacuse than your
session has proper access rights and is in fact tagged as graphical by
loginctl.
Or you drop the ttys completely and work only in X, like everybody else
and use some window manager with multiple desktops.



More information about the systemd-devel mailing list