Ubuntu 22 root桌面登录
1.
sudo nano /etc/pam.d/gdm-autologin
sudo nano /etc/pam.d/gdm-password
#auth required pam_succeed_if.so user != root quiet_success
2.
sudo nano /root/.profile
#mesg n 2> /dev/null || true
tty -s && mesg n || true
1.
sudo nano /etc/pam.d/gdm-autologin
sudo nano /etc/pam.d/gdm-password
#auth required pam_succeed_if.so user != root quiet_success
2.
sudo nano /root/.profile
#mesg n 2> /dev/null || true
tty -s && mesg n || true