Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:configurations:auto-login

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
products:sbc:edge2:configurations:auto-login [2022/07/15 23:42]
nick
products:sbc:edge2:configurations:auto-login [2022/12/12 20:17] (current)
nick
Line 1: Line 1:
 +{{indexmenu_n>15}}
 +
 +
 ====== Edge2 Auto Login ====== ====== Edge2 Auto Login ======
  
 +===== Introduction =====
 +
 +This document mainly introduces automatic login under Ubuntu.
 +
 +===== Desktop OS =====
 +
 +
 +// Settings => Users => Automatic Login //
 +
 +===== Server OS =====
 +
 +
 +=== Virtual Consoles tty[1-6] ===
 +
 +```shell
 +sudo cp /lib/systemd/system/getty@.service /lib/systemd/system/getty@.service.backup
 +sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin root \%I \$TERM/g" /lib/systemd/system/getty@.service
 +```
 +
 +=== Serial Console ttyS0 ===
 +
 +```shell
 +sudo cp /lib/systemd/system/serial-getty@.service /lib/systemd/system/serial-getty@.service.backup
 +sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --autologin root --keep-baud 1500000,115200,38400,9600 \%I \$TERM/g" /lib/systemd/system/serial-getty@.service
 +```
  
-{{page>products:sbc:common:configurations:auto-login&noheader}}+<WRAP info > 
 +Reboot to take effect. 
 +</WRAP>
  
 +<WRAP tip >
 +If you want to recovery the login prompt, please follow the steps below:
 +```shell
 +sudo mv /lib/systemd/system/getty@.service.backup /lib/systemd/system/getty@.service
 +sudo mv /lib/systemd/system/serial-getty@.service.backup /lib/systemd/system/serial-getty@.service
 +```
 +</WRAP>
  
Last modified: 2022/07/15 23:42 by nick