Armbian Bookworm 如何开机不用输入 root

Armbian Auto Login Setup

Armbian-unofficial 24.5.0-trunk Bookworm 如何开机不用输入 root …

ARM学习之实现开机自动登录以及修改开机启动项 –

In Armbian, you can configure the system to log in automatically at boot without requiring a username or password. This is typically done using systemd for modern versions like Bookworm.

Using systemd getty Service

Step 1: Create a drop-in configuration directory

sudo mkdir -p /etc/systemd/system/getty@tty1.service.d

Step 2: Create the autologin configuration file

sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf

Step 3: Add the following content Replace root with your desired username if needed:

[Service]
ExecStart=
ExecStart=-/sbin/agetty –autologin root –noclear %I $TERM

Step 4: Reload and restart the service

sudo systemctl daemon-reload
sudo systemctl restart getty@tty1

This will make tty1 automatically log in as the specified user after boot.

发表评论