编辑 /etc/gdm/custom.conf 文件,具体如下所示:
在daemon选项中修改AutomaticLoginEnable=true,AutomaticLogin=root
如果daemon下为空则添加:
AutomaticLoginEnable=trueAutomaticLogin=root 如:
[daemon] AutomaticLoginEnable=trueAutomaticLogin=root