linux设置自动登录 字符终端[debian ubuntu s
2023-01-27 本文已影响0人
skkily
适用于使用systemd启动的文件系统, debian ubuntu等
- 编辑此文件
/etc/systemd/system/getty.target.wants/getty@tty1.service- 或者是
/etc/systemd/system/getty@tty1.service.d/autologin.conf
- 或者是
- 更改
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username %I $TERM- 与原文件对比, 增加了
-f --autologin username这三个字段, 其中username换成你的用户名, 如root
- 与原文件对比, 增加了