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  
www.2cto.com  
[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]  
  www.2cto.com  
# 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  
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值