root打开文件/etc/gdm/custom.conf,改成如下即可: gedit /etc/gdm/custom.conf [daemon] AutomaticLoginEnable=true AutomaticLogin=root