sudo visudo
#ALL=(ALL) NOPASSWD:ALL
gucloud ALL=(ALL) NOPASSWD: ALL
vim /etc/gdm3/custom.conf
TimedLoginEnable=false
AutomaticLoginEnable=true #设为true
TimedLogin=root #设成root
AutomaticLogin=root #设成root
TimedLoginDelay=10
AutomaticLoginEnable=true #设为true
AutomaticLogin=root #设为root
https://blog.csdn.net/qq_44673299/article/details/108658078
https://blog.csdn.net/m0_46128839/article/details/116133371