vim /etc/gdm/custom.conf 增加下面内容
AutomaticLoginEnable=trueAutomaticLogin=rocky # your username
修改结果如下:
# GDM configuration storage[daemon]# Uncomment the line below to force the login screen to use Xorg#WaylandEnable=falseAutomaticLoginEnable=trueAutomaticLogin=rocky[security][xdmcp][chooser][debug]# Uncomment the line below to turn on debugging#Enable=true
