shellfish 发表于 2013-2-7 11:46:01

CentOS自动登录X11桌面

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

AutomaticLoginEnable=true
AutomaticLogin=simonsun
TimedLoginEnable=true
TimedLogin=simonsun
TimedLoginDelay=7


AllowRoot=false





DefaultWelcome=false
Welcome=Wait seconds...
Logo=/usr/share/pixmaps/faces/penguin.jpg





# 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.
#


# Also note, that if you redefine a section, then GDM will
# use the definition in this file, not the defaults.conf file.  It is
# currently not possible to disable a section defined
# in the defaults.conf file.
#

name=Chooser server
command=/usr/bin/Xorg -audit 0
chooser=false
handled=true
flexible=false
priority=0
 
 
以上均在centos5系列和6系列下测试通过。
 
页: [1]
查看完整版本: CentOS自动登录X11桌面