lord-icon
Goto Top

Autologin auf Debian 12 (console)

Hi,

Ich würde gern einen Autologin auf ein Testsystem haben wollen.
Die Risiken sind mir bewusst.

Ich habe keine GUI sondern nur die Console. Es soll auch nur der Console-Login erfolgen. Kein SSH oder so.

Laut Anleitung:
(Hinweis: ich bin als root angemeldet)
nano /etc/systemd/logind.conf 

Von
#NAutoVTs=6 
auf
NAutoVTs=1

Durch den Befehl:
systemctl edit getty@tty1

soll diese Datei dann entstehen
 /etc/systemd/system/getty@tty1.service.d/override.conf

Dort soll folgendes eingefügt werden
[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin root %I $TERM
Type=idle

Nur wenn ich diese Datei dann speichern möchte bekomme ich:
"Editing "/etc/systemd/system/getty@tty1.service.d/override.conf" canceled: temporary file is empty."

Bisher habe ich hier noch keine Lösung gefunden.
Kennt einer dieses Problem und konnte es bereits lösen?
Es ist das neuste Debian 12.02
Vlt. hat sich da was mitlerweile geändert (?)

Content-Key: 22031946355

Url: https://administrator.de/contentid/22031946355

Printed on: April 27, 2024 at 11:04 o'clock

Member: lord-icon
Solution lord-icon Nov 15, 2023 at 07:58:13 (UTC)
Goto Top
LÖSUNG... pico

Vollständige Anleitung
nano /etc/systemd/logind.conf 

Von
#NAutoVTs=6 
auf
NAutoVTs=1

=================

mkdir /etc/systemd/system/getty@tty1.service.d
pico /etc/systemd/system/getty@tty1.service.d/override.conf

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

=====================
systemctl enable getty@tty1.service
reboot