CentOS自动登录X11桌面

主要是修改 /etc/gdm/custom.conf ,添加AutomaticLogin和TimedLogin 重启即可。

 

vim /etc/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=simonsun
TimedLoginEnable=true
TimedLogin=simonsun
TimedLoginDelay=7

[security]
AllowRoot=false

[xdmcp]

[gui]
[greeter]
DefaultWelcome=false
Welcome=Wait seconds...
Logo=/usr/share/pixmaps/faces/penguin.jpg

[chooser]

[debug]

# Note that to disable servers defined in the defaults.conf file (such as
# 0=Standard, you must put a line in this file that says 0=inactive, as
# described in the Configuration section of the GDM documentation.
#
[servers]

# Also note, that if you redefine a [server-foo] section, then GDM will
# use the definition in this file, not the defaults.conf file.  It is
# currently not possible to disable a [server-foo] section defined
# in the defaults.conf file.
#
[server-Chooser]
name=Chooser server
command=/usr/bin/Xorg -audit 0
chooser=false
handled=true
flexible=false
priority=0

 

 

以上均在centos5系列和6系列下测试通过。

 

你可能感兴趣的:(centos,Security,vim)