CentOS自动登录Gnome

From: http://hi.baidu.com/tangzzhh/item/0ece124e2b6904ed1e19bcfb

1.vi /etc/inittab
把“id:3:initdefault:”改成“id:5:initdefault:”

2.vi /etc/gdm/custom.conf
在[daemon]段下添加以下配置。
AutomaticLoginEnable = true
AutomaticLogin = username

3.reboot.

注:有时候你可能还有这样的要求,希望出现登录画面,让你可以选择登录别的用户,但是在一定时间内(我们以10秒为例),用户没有选择别的用户登录,那么 就自动以root登录系统。同样修改/etc/gdm3/daemon.conf,去掉刚才那2行,在[daemon]字段后面追加如下所示3 行:
   
[daemon]
TimedLoginEnable=true
TimedLogin=root
TimedLoginDelay=10

原文地址:https://www.cnblogs.com/spaces/p/3109558.html