ubuntu 10.04 设置root自动登录
设置root密码
1.sudo passwd root
2. vim /etc/gdm/custom.conf #此时,/etc/gdm/目录下并没有custom.conf文件
3. 输入如下内容:
[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimedLogin=root
AutomaticLogin=root
TimedLoginDelay=30
4. 重启系统
ubuntu 14.04 设置root自动登录
设置root密码
1.sudo passwd root
2. vim /etc/lightdm/lightdm.conf
3. 输入如下内容:
[SeatDefaults]
autologin-user=root
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true
allow-guest=false
4. vim /root/.profile.
修改最后一行:
tty -s && mesg n
5. 重启系统