环境:Debian9.6 64位
0. 确保Debian能够联网
1. apt install x-window-system-core gnome-core #安装最基本的gnome图形相关软件
2. init 6 #设置系统为图形界面启动,该命令执行后系统会重启
3. 设置系统可以root登录
1) 修改/etc/gdm3/daemon.conf文件,在[security]下增加一行AllowRoot = true
2)修改/etc/pam.d/gdm-password文件,注释掉auth required pam_succeed_if.so user != root quiet_success
3)重启系统后,即可使用root登录。