systemd_boot_into_console

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systemd_boot_into_console [08.12.2015 18:53] Pascal Sutersystemd_boot_into_console [07.03.2019 15:29] (current) – [Autologin to console] Pascal Suter
Line 9: Line 9:
  
 ===== Autologin to console ===== ===== Autologin to console =====
-in ''/lib/systemd/system/getty@.service'' find the line:  +find the original command to see how terminals are started:  
-  ExecStart=-/sbin/agetty --noclear %I $TERM +  grep ExecStart /lib/systemd/system/getty@.service 
-and change it to:  +the output is something like  
-  ExecStart=-/sbin/agetty --autologin username --noclear %I $TERM+  ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM 
 +edit getty@1.service for the first tty 
 +  systemctl edit getty@tty1 
 +now write the following lines:  
 +  [Service] 
 +  ExecStart= 
 +  ExecStart=-/sbin/agetty --autologin myuser --noclear %I $TERM 
 +where ''myuser'' should be replaced with the username of the user that should be logged in. removing the ''-o '-p -- \\u' '' removes the password prompt. if you leave this in the user will be automatically selected but you still need to enter the password to continue. 
  
 ===== Autostart some scripts upon every login ===== ===== Autostart some scripts upon every login =====
  • systemd_boot_into_console.txt
  • Last modified: 07.03.2019 15:29
  • by Pascal Suter