Difference between revisions of "Automatic login to virtual console (Español)"
(→Cómo evitar volcar errores innecesarios en dmesg) |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
{{Article summary wiki|Start X at Login (Español)}} | {{Article summary wiki|Start X at Login (Español)}} | ||
{{Article summary end}} | {{Article summary end}} | ||
− | |||
− | + | En este artículo se describe cómo acceder automáticamente a una ''consola virtual'' al final del [[boot process|proceso de arranque ]]. Este artículo sólo cubre el acceso a la consola (o tty); los métodos para iniciar un [[Xorg (Español)|servidor X]] se describen en [[Start X at Login_(Español)|Start X at Login]]. | |
− | == | + | == Instalación == |
− | + | === Utilizar la función drop-in de systemd para iniciar sesión automática de getty === | |
− | + | Primero, cree un directorio nuevo llamado {{ic|getty@tty1.service.d}} en {{ic|/etc/systemd/system}}: | |
− | + | # mkdir /etc/systemd/system/getty@tty1.service.d | |
− | + | Después, cree un archivo nuevo llamado {{ic|autologin.conf}} y añádalo a dicho directorio: | |
− | {{hc|/etc/systemd/system/ | + | {{hc|/etc/systemd/system/getty@tty1.service.d/autologin.conf| |
2=[Service] | 2=[Service] | ||
− | + | ExecStart= | |
− | ExecStart | + | ExecStart=-/usr/bin/agetty --autologin <username> --noclear %I 38400 linux |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | |||
− | + | {{Sugerencia|La opción {{ic|1=Type=simple}} retrasará la ejecución de agetty hasta que todos los trabajos (peticiones de cambio de estado de las unidades) se completen. Por otro lado, puede producir mensajes relativos el arranque de systemd que se arrojen en el prompt del login. Esta opción es útil cuando [[Start X at Login (Español)|se inicia X automáticamente]]. Consulte {{ic|man systemd.service}} para obtener más información.}} | |
− | + | Si desea usar la opción {{ic|1=Type=simple}}, entonces el archivo {{ic|autologin.conf}} debe mostrar este aspecto: | |
− | |||
− | |||
− | |||
− | |||
− | {{ | + | {{hc|/etc/systemd/system/getty@tty1.service.d/autologin.conf| |
+ | 2=[Service] | ||
+ | ExecStart= | ||
+ | ExecStart=-/usr/bin/agetty --autologin <username> --noclear %I 38400 linux | ||
+ | Type=simple | ||
+ | }} | ||
+ | |||
+ | == Consejos y trucos == | ||
− | Para evitar errores con display-manager.service en dmesg, debe | + | === Cómo evitar volcar errores innecesarios en dmesg === |
+ | Para evitar errores relacionados con {{ic|display-manager.service}} en dmesg, debe establecer el target predeterminado para multiusuario en lugar de gráfico: | ||
# systemctl enable multi-user.target | # systemctl enable multi-user.target | ||
− | + | ||
+ | ===Véase también=== | ||
+ | |||
+ | *[[Systemd_(Español)#Cambiar_el_target_predeterminado_para_arrancar|Cambiar el runlevel/target predefinido al arrancar]]. |
Revision as of 12:24, 10 July 2013
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