第一步:nano /etc/gdm/custom.conf 第二步:光标移动到[daemon]后面,回车 第三步:添加两行文字(如果不想自动登录了,在前面加#注释) AutomaticLoginEnable=true AutomaticLogin=root 第四步:ctrl+o------回车 第五步:ctrl+x 第六步:reboot(查看是否已经实验)