灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:2163回复:0

Centos自动登陆命令

楼主#
更多 发布于:2012-08-27 15:07


Centos自动登陆命令



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



vim /etc/gdm/custom.conf

[daemon]  

AutomaticLoginEnable=true #设置系统自动登陆为可用

AutomaticLogin=username #这里改为你要知动登陆的用户名

TimedLoginEnable=true  #

TimedLogin=username #同样将这里修改为你需要登陆的用户名

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 disableservers defined in the defaults.conf file (such as  

# 0=Standard, youmust put a line in this file that says 0=inactive, as  

# described inthe 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 thedefaults.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




喜欢0 评分0
游客

返回顶部