I’m having problems with autologin testing with a physical computer. It should automatically do a “startx” without prompting me for login. I am using Chromium and Xorg, without a desktop.
I have created the new service similar to “getty@.service” copied from “/etc/systemd/system/”.
Next, I have generated the symbolic path for “tty2”.
The “.xinitrc” is correct, since when I do the “startx” manually, the browser loads correctly. It is precisely the autologin that is not performed.
The only thing I have achieved is that it keeps asking me to log in when I restart the computer and, when I do “su - henrolos”, it automatically does the “startx”. But what I’m looking for is to directly autologin said user and perform the “startx”.
Would someone know how to help me? Thank you so much.
Ah, I skipped that more or less because it is very incomplete. You should always post things complete (e.g. not saying: I changed the Execstart …". Including the prompt command (even if it is only catand all output up to and including the next prompt.
This due to our inability to read minds or look over your shoulder. We want to see what you see.
Did you try to switch to tty2 and look at the output? /bin/login still goes via PAM and default configuration of PAM for login is using pam_unix which requires user to have (and provide) password.
You could override PAM configuration for login to allow NULL password, but it will apply to any user and you cannot override PAM service name for /bin/login. But for testing it could be OK.
Of course execing startx out of ~/.bashrc simply makes it impossible to run any interactive shell for this user.
It sounds like you are after kiosk mode, I am sure there are different, more complete, solutions.