如何在Ubuntu 20.04 上启用自动登录

使用管理员用户修改/etc/gdm3/custom.conf配置文件:

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

改成

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = onitroad

重新启动系统以使更改生效:

$ sudo reboot
日期:2020-07-07 20:55:19 来源:oir作者:oir