主要是修改 /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 5 和 6 系列中配置 GDM 以实现自动登录和定时登录功能。主要涉及修改 /etc/gdm/custom.conf 文件,并添加 AutomaticLogin 和 TimedLogin 相关设置。
2597

被折叠的 条评论
为什么被折叠?



