'Ubuntu Server 22.04 autologin

Trying to get autologin working for Ubuntu Server 22.04 (Don't worry, this is for a radio project, not an actual server)

I have tried

sudo systemctl edit [email protected]

and entering

[Service] ExecStart= ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM Type=idle

but it did not work - it is still asking me for a username.

Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source