首先创建root账户:sudo passwd root
然后需要修改两个文件,第一:/etc/lightdm/lightdm.conf
Autologin-user=root
光改这个重启的时候会报一个错误:Error found when loading /root/.profile stdin: is not a tty
这时需要修改第二个文件:/root/.profile,修改最后一行改为:tty -s && mesg n
首先创建root账户:sudo passwd root
然后需要修改两个文件,第一:/etc/lightdm/lightdm.conf
Autologin-user=root
光改这个重启的时候会报一个错误:Error found when loading /root/.profile stdin: is not a tty
这时需要修改第二个文件:/root/.profile,修改最后一行改为:tty -s && mesg n