Automatic login to virtual console (Español)
Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary end
En este artículo se describe cómo acceder automáticamente a una consola virtual al final del proceso de arranque . Este artículo sólo cubre el acceso a la consola (o tty); los métodos para iniciar un servidor X se describen en Start X at Login.
Contents
Instalación
Utilizar la función drop-in de systemd para iniciar sesión automática de getty
Primero, cree un directorio nuevo llamado getty@tty1.service.d
en /etc/systemd/system
:
# mkdir /etc/systemd/system/getty@tty1.service.d
Después, cree un archivo nuevo llamado autologin.conf
y añádalo a dicho directorio:
/etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service] ExecStart= ExecStart=-/usr/bin/agetty --autologin <username> --noclear %I 38400 linux
Si desea usar la opción Type=simple
, entonces el archivo autologin.conf
debe mostrar este aspecto:
/etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service] ExecStart= ExecStart=-/usr/bin/agetty --autologin <username> --noclear %I 38400 linux Type=simple
Consejos y trucos
Cómo evitar volcar errores innecesarios en dmesg
Para evitar errores relacionados con display-manager.service
en dmesg, debe establecer el target predeterminado para multiusuario en lugar de gráfico:
# systemctl enable multi-user.target