系统:Ubuntu10.04
操作步骤:
1.su 进入root账号,
然后 vim /etc/gdm/custom.conf etc/gdm/目录下并没有custom.conf文件,直接创建这个文件2. 将以下内容复制进去:
[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimedLogin=root
AutomaticLogin=root
TimedLoginDelay=30
3. 重启系统:
直接进入root账户了。
系统:Ubuntu14.04
操作步骤:
1.su 进入root账号,
然后 vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf ,如果 目录下并没有50-ubuntu.conf f文件,直接创建这个文件2. 将以下内容复制进去:
[SeatDefaults]
user-session=ubuntu
autologin-user=root
greeter-session=unity-greete
greeter-show-manual-login=true
allow-guest=false
3. 重启系统:
直接进入root账户了。
系统:Ubuntu12.04
操作步骤:
1.su 进入root账号,
2. vim /etc/lightdm/lightdm.conf. 修改配置文件
[SeatDefaults]
allow-guest=false
autologin-user=root
autologin-user-timeout=0
autologin-session=lightdm-autologin
user-session=ubuntu
greeter-session=unity-greeter
3. 重启系统:
直接进入root账户了。