Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4: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
Last revision Both sides next revision
products:sbc:vim4:configurations:auto-login [2022/07/06 08:50]
nick
products:sbc:vim4:configurations:auto-login [2022/12/12 20:18]
nick
Line 1: Line 1:
-====== Auto Login ======+{{indexmenu_n>15}} 
 + 
 + 
 +====== VIM4 Auto Login ======
  
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces automatic login under Ubuntu.+This page mainly introduces automatic login under Ubuntu.
  
-===== System Configuration =====+===== Desktop OS =====
  
-<tabbox Desktop OS>  
  
-Goto ''Settings->Users->Automatic Login''.+Check ''Settings''->''Users''->''Automatic Login''.
  
-<tabbox Server OS+===== Server OS (Headless) =====
  
-For tty1-tty6 +**For tty1-tty6**: 
-```sh + 
-khadas@Khadas:~$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin root \%I \$TERM/g" /lib/systemd/system/getty@.service+```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
 ``` ```
  
-For ttyS0 +**For ttyS0**: 
-```sh + 
-khadas@Khadas:~$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --autologin root --keep-baud 115200,38400,9600 \%I \$TERM/g" /lib/systemd/system/serial-getty@.service+```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 921600,115200,38400,9600 \%I \$TERM/g" /lib/systemd/system/serial-getty@.service
 ``` ```
-</tabbox> 
  
 <WRAP info > <WRAP info >
 Reboot to take effect. Reboot to take effect.
 </WRAP> </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: 2023/04/26 09:28 by nick