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
products:sbc:vim4:configurations:auto-login [2022/12/12 20:18]
nick
products:sbc:vim4:configurations:auto-login [2023/04/26 09:28] (current)
nick
Line 19: Line 19:
 ```shell ```shell
 sudo cp /lib/systemd/system/getty@.service /lib/systemd/system/getty@.service.backup 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+sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin khadas \%I \$TERM/g" /lib/systemd/system/getty@.service
 ``` ```
  
Line 26: Line 26:
 ```shell ```shell
 sudo cp /lib/systemd/system/serial-getty@.service /lib/systemd/system/serial-getty@.service.backup 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+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
 ``` ```
  
Last modified: 2022/12/12 20:18 by nick