Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common: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:common:configurations:auto-login [2022/07/08 05:06]
frank
products:sbc:common:configurations:auto-login [2022/10/21 21:18] (current)
nick update
Line 5: Line 5:
 This document mainly introduces automatic login under Ubuntu. This document mainly introduces automatic login under Ubuntu.
  
-===== System Configuration ===== 
  
 +===== Desktop OS =====
  
-<tabbox Desktop OS>  
  
 Edit file ''/usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf'' to add the configuration below: Edit file ''/usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf'' to add the configuration below:
Line 18: Line 17:
 ``` ```
  
-<tabbox Server OS+===== Server OS ===== 
 + 
 +**For tty1-tty6**:
  
-For tty1-tty6 
 ```shell ```shell
-khadas@Khadas:~$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin root \%I \$TERM/g" /lib/systemd/system/getty@.service+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**: 
 ```shell ```shell
-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+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 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 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> </WRAP>
  
Last modified: 2022/07/08 05:06 by frank