Create a new service file similar to {{ic|getty@.service}} by copying it to {{ic|/etc/systemd/system/}}:

Create a new service file similar to {{ic|getty@.service}} by copying it to {{ic|/etc/systemd/system/}}:

Line 35:

Line 35:

{{Tip|The option {{ic|1=Type=simple}} (default) will delay the execution of agetty until all jobs (state change requests to units) are completed. On the other hand it may cause systemd boot-up messages to pollute the login prompt. This option is more useful when [[Start X at Login|starting X automatically]]. See {{ic|man systemd.service}} for more info.}}

{{Tip|The option {{ic|1=Type=simple}} (default) will delay the execution of agetty until all jobs (state change requests to units) are completed. On the other hand it may cause systemd boot-up messages to pollute the login prompt. This option is more useful when [[Start X at Login|starting X automatically]]. See {{ic|man systemd.service}} for more info.}}

−

=== Enabling the {{ic|.service}} ===

+

=== Enabling the service ===

Finally, you need to disable the old {{ic|getty@tty''X''.service}} for the specified tty and enable the new {{ic|autologin@tty''X''.service}}, e.g.:

Finally, you need to disable the old {{ic|getty@tty''X''.service}} for the specified tty and enable the new {{ic|autologin@tty''X''.service}}, e.g.:

This article describes how to automatically log in to a virtual console at the end of the boot process. This article only covers console log-ins; methods for starting an X server are described in Start X at Login.

Tip: The option Type=simple (default) will delay the execution of agetty until all jobs (state change requests to units) are completed. On the other hand it may cause systemd boot-up messages to pollute the login prompt. This option is more useful when starting X automatically. See man systemd.service for more info.

Enabling the service

Finally, you need to disable the old getty@ttyX.service for the specified tty and enable the new autologin@ttyX.service, e.g.: