linux配置开机自动登入root Mate桌面

Linux开机自动登录与Linux桌面环境息息相关,每种桌面环境不一定一样

$ vim /etc/gdm/custom.conf

添加下面内容:

[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root

Mate桌面

$ vim /etc/lightdm/lightdm.conf

修改下面内容:

autologin-user=root