Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim-5:configurations:auto-login

Differences

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

Link to this comparison view

products:sbc:vim-5:configurations:auto-login [2026/09/15 01:45]
127.0.0.1 external edit
products:sbc:vim-5:configurations:auto-login [2026/09/15 02:00] (current)
nick
Line 2: Line 2:
  
  
-====== VIM4 Auto Login ====== +====== VIM 5 Auto Login ======
- +
-===== Introduction ===== +
- +
-This page mainly introduces automatic login under Ubuntu. +
- +
-===== Desktop OS ===== +
- +
- +
-Check ''Settings''->''Users''->''Automatic Login''+
- +
-===== Server OS (Headless) ===== +
- +
-**For tty1-tty6**: +
- +
-```shell +
-sudo cp /lib/systemd/system/getty@.service /lib/systemd/system/getty@.service.backup +
-sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin khadas \%I \$TERM/g" /lib/systemd/system/getty@.service +
-``` +
- +
-**For 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 khadas --keep-baud 921600,115200,38400,9600 \%I \$TERM/g" /lib/systemd/system/serial-getty@.service +
-``` +
- +
-<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> +
  
 +{{page>products:sbc:vim4:configurations:auto-login&noheader}}
Last modified: 2026/09/15 01:45 by 127.0.0.1