<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/linux_AutomaticLogin/</link>
<title><![CDATA[CentOS/5.4/5.5 用户自动登录桌面环境]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Sun, 04 Dec 2011 07:09:36 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/linux_AutomaticLogin/</guid> 
<description>
<![CDATA[ 
	<p><span style="color: #008080"><strong>为了控制/操作/远程LINUX桌面，在本地WIN XP 下安装了VNC 客户端，即VNC Viewer 来实现跨平台连接远程桌面。</strong></span></p><p><span style="color: #008080"><strong>因为VNC 连接LINUX桌面，必须是用户登录状态。</strong></span></p><p><span style="color: #008080">也就是说必须保证GDM 是登录启动的状态，所以修改maste 自动登录GDM </span></p><p>====================================================</p><p><strong>GDM的自动登录可以通过设置<span style="color: #ff0000">/etc/gdm/custom.conf</span>文件。</strong></p><p><strong><span style="background-color: #ffff00">在[daemon]这一段中加入如下内容，其他内容保留。注意<span style="color: #ff0000">AutomaticLogin</span>和<span style="color: #ff0000">TimedLogin</span>后面跟的是你希望自动登录的用户名。<br /></span></strong><br /><span style="color: #0000ff">[daemon]<br /><br />AutomaticLogin=<span style="color: #ff0000">master<br /><br /></span>GtkModulesList=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libkeymouselistener:/usr/lib/gtk-2.0/modules/libdwellmouselistener<br /><br />AddGtkModules=true<br /><br />RemoteGreeter=/usr/libexec/gdmgreeter<br /><br />AutomaticLoginEnable=true<br /><br />TimedLoginEnable=true<br /><br />TimedLogin=<span style="color: #ff0000">master<br /><br /></span>TimedLoginDelay=1<br /></span><br /><br />修改完后，可以使用init 3;init 5命令重新启动x使设置生效，而且它默认就会以sengi用户登录，如果你通过Ctrl+Alt +Backspace实现注销GNOME，它有会5s时间等待，但是，只要操作移动鼠标或操作键盘，默认时间会变成30s。<br /><br />如果你默认的运行级别是3，当你init 5启动x时，它就会默认登录到sengi帐户。<br />&nbsp;</p><p><img height="210" alt="http://at.liuxinxiu.com/2011/12/image/VNC-1.gif" width="394" src="http://at.liuxinxiu.com/2011/12/image/VNC-1.gif" /><img height="663" alt="http://at.liuxinxiu.com/2011/12/image/VNC-2.gif" width="843" src="http://at.liuxinxiu.com/2011/12/image/VNC-2.gif" /></p>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/linux_AutomaticLogin/#blogcomment</link>
<title><![CDATA[[评论] CentOS/5.4/5.5 用户自动登录桌面环境]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/linux_AutomaticLogin/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>