编辑/etc/gdm/custom.conf,修改或者添加以下两行:
AutomaticLoginEnable=true 这个修改为 true
AutomaticLogin=root 这个修改为 root
#####################################
# GDM configuration storage
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root
[security]
[xdmcp]
[greeter]
[chooser]
[debug]
#####################################
登录到桌面时,不要直接点击用户名,而是选择“not list”,然后输入root,输入密码即可进入。