Chinaunix首页 | 论坛 | 博客
  • 博客访问: 207443
  • 博文数量: 127
  • 博客积分: 1998
  • 博客等级: 上尉
  • 技术积分: 1432
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-07 16:41
文章分类

全部博文(127)

文章存档

2014年(41)

2013年(1)

2012年(85)

分类: LINUX

2012-07-11 18:08:59

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


  1. vim /etc/gdm/custom.conf  
  2. [daemon]  
  3. AutomaticLoginEnable=true  #设置系统自动登陆为可用
  4. AutomaticLogin=username  #这里改为你要知动登陆的用户名
  5. TimedLoginEnable=true  #
  6. TimedLogin=username  #同样将这里修改为你需要登陆的用户名
  7. TimedLoginDelay=7  
  8. /*如果这个地方是个空白,则把上面的代码全给填上*/  
  9. [security]  
  10. AllowRoot=false  
  11.   
  12. [xdmcp]  
  13.   
  14. [gui]  
  15. [greeter]  
  16. DefaultWelcome=false  
  17. Welcome=Wait seconds...  
  18. Logo=/usr/share/pixmaps/faces/penguin.jpg  
  19.   
  20. [chooser]  
  21.   
  22. [debug]  
  23.   
  24. # Note that to disable servers defined in the defaults.conf file (such as  
  25. # 0=Standard, you must put a line in this file that says 0=inactive, as  
  26. # described in the Configuration section of the GDM documentation.  
  27. #  
  28. [servers]  
  29.   
  30. # Also note, that if you redefine a [server-foo] section, then GDM will  
  31. # use the definition in this file, not the defaults.conf file.  It is  
  32. # currently not possible to disable a [server-foo] section defined  
  33. # in the defaults.conf file.  
  34. #  
  35. [server-Chooser]  
  36. name=Chooser server  
  37. command=/usr/bin/Xorg -audit 0  
  38. chooser=false  
  39. handled=true  
  40. flexible=false  
  41. priority=0  

 

阅读(1573) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~