You are not logged in.
Pages: 1
I'm trying to autologin my user from tty1, but when reboot, tty1 asks me for user and password as normal.
Firstly I copied the getty service to create other:
sudo cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/autologin@.serviceI linked it
sudo ln -sf /etc/systemd/system/autologin\@.service /etc/systemd/system/getty.target.wants/getty\@tty1.serviceI edited it with systemctl and added this:
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin franco --noclear %I $TERMI reload the daemons and restart the service.
Also I tried editing directly the service without creating other and simlink to it, but neither I get autologin.
Last edited by FrancisArcher_60 (2025-02-27 21:55:37)
Offline
have you tried following the wiki? cause what you did and what the wiki states are different.
Offline
have you tried following the wiki? cause what you did and what the wiki states are different.
I tried as says the wiki and this last way
Offline
ah you didn't say that the in the op, so to confirm you did the following?
/etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username %I $TERMOffline
ah you didn't say that the in the op, so to confirm you did the following?
/etc/systemd/system/getty@tty1.service.d/autologin.conf [Service] ExecStart= ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username %I $TERM
I was tried with these modifiers, doesn't work, but I will try again with them.
Offline
I was tried with these modifiers, doesn't work, but I will try again with them.
No, doesn't works.
Offline
Firstly I copied the getty service to create other:
sudo cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/autologin@.serviceI linked it
sudo ln -sf /etc/systemd/system/autologin\@.service /etc/systemd/system/getty.target.wants/getty\@tty1.service
That's not right — there shouldn't be a "autologin@.service" with the same content as getty@.service, that's nonsense. You should have an autologin.conf with just 3 lines.
I was tried with these modifiers, doesn't work
The important error is not the modifiers in the ExecStart line but the name and location of the file. Read mackin_cheese's post again. And be sure to replace username with the actual username.
Jin, Jîyan, Azadî
Offline
Pages: 1