Ubuntu 14.04自动登录到桌面

【原文链接:http://www.linuxidc.com/Linux/2014-04/100677.htm】



[日期:2014-04-24] 来源:Linux社区 作者:Linux [字体:大 中 小] 无须输入用户名密码让Ubuntu 14.04自动登录到桌面,每个Linux用户都必须设有密码,这与Windows不同,对于非专业使用Linux的用户来说,已经解决了自动锁屏输密 码问题,如果每次登录系统也不用输入密码 ,岂不是让我们的工作更加轻松更加easy。注意这里的免密码登录系统并不是说用户没有密码了,密码还在只是系统把密码记住了自动用你的密码登录而已。推荐阅读:Ubuntu 14.04 下载、安装、配置的相关知识 http://www.linuxidc.com/Linux/2014-04/100370.htm Ubuntu 14.04系统下载地址:http://www.linuxidc.com/Linux/2014-04/100352.htmWindows 7下硬盘安装Ubuntu 14.04图文教程 http://www.linuxidc.com/Linux/2014-04/100369.htmU盘安装Ubuntu 14.04 LTS正式版 http://www.linuxidc.com/linux/2014-04/100446.htm解决方案:(1)系统设置里找到“用户账户”Ubuntu 14.04自动登录到桌面Ubuntu 14.04自动登录到桌面(2)然后点击右上角的“解锁”,输入当前用户的密码解锁认证Ubuntu 14.04自动登录到桌面(3)解锁成功后,开启自动登录功能,即“自动登录 ”开关打开,保存设置即可。Ubuntu 14.04自动登录到桌面附:注意事项:较低版本的Ubuntu可能没有该设置选项,那么可以通过配置文件设置自动登录:在/etc/gdm/目录下有个custom.conf或者gdm.conf或gdm.conf-custom文件,比如我的Ubuntu9.11下的gdm下有这些文件:打开gdm.conf-custom,截取最前面的几句注释说明如下:# GDM Configuration Customization file.## This file is the appropriate place for specifying your customizations to the# GDM configuration. If you run gdmsetup, it will automatically edit this# file for you and will cause the daemon and any running GDM GUI programs to# automatically update with the new configuration. Not all configuration# options are supported by gdmsetup, so to modify some values it may be# necessary to modify this file directly by hand.## Older versions of GDM used the "gdm.conf" file for configuration. If your# system has an old gdm.conf file on the system, it will be used instead of# this file - so changes made to this file will not take effect. Consider# migrating your configuration to this file and removing the gdm.conf file. 文件中后面说到如果有gdm.conf老配置文件,那么该文件中的值就不会起作用。那么我们就去gdm.conf里配置吧,打开后找到下面这一段: [daemon]# Automatic login, if true the first attached screen will automatically logged# in as user as set with AutomaticLogin key.AutomaticLoginEnable=falseAutomaticLogin= 上面的意思很好理解,将AutomaticLoginEnable变量值改为true就可以了。 当然,通过上面的提示我们知道还有一种方法修改该配置文件,就是使用sudo gdmsetup这个命令,运行后会出现设置界面,进入“Security”选项卡: 将“Enable Automatic Login“选上,然后选择你自己的用户名即可。更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-04/100677.htmlinux本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2014-04/100677.htm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值