
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=En:HOWTO:_Setting_Up_Autologin&amp;feed=atom&amp;action=history</id>
		<title>En:HOWTO: Setting Up Autologin - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=En:HOWTO:_Setting_Up_Autologin&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=En:HOWTO:_Setting_Up_Autologin&amp;action=history"/>
		<updated>2013-05-21T23:27:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=En:HOWTO:_Setting_Up_Autologin&amp;diff=8756&amp;oldid=prev</id>
		<title>Fitzcarraldo: Added item about removing sabayon-mce from system runlevels (still reported as a problem in SL 5.4 and good to mention anyway. Also tidied some text up.</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=En:HOWTO:_Setting_Up_Autologin&amp;diff=8756&amp;oldid=prev"/>
				<updated>2010-10-06T12:17:00Z</updated>
		
		<summary type="html">&lt;p&gt;Added item about removing sabayon-mce from system runlevels (still reported as a problem in SL 5.4 and good to mention anyway. Also tidied some text up.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{I18n| [[En:HOWTO:_Setting_Up_Autologin|en]] [[It:HOWTO:_Setting_Up_Autologin|it]] [[Tr:NASIL: Otomatik girişi etkinleştirme|tr]]}}&lt;br /&gt;
{{Warning|&amp;lt;center&amp;gt;'''Never''' ever enable Autologin for root!&amp;lt;/center&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This Howto will help you setting up your Autologin, so that you will need no more to authenticate in a login prompt.&amp;lt;br&amp;gt;&lt;br /&gt;
Be aware that this is a security risk, since anyone will be able to get access to your computer with no need of any password or authorization, this is intended  just for home computers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Setting Up Autologin in KDE4 =&lt;br /&gt;
&lt;br /&gt;
Some users reported the inability to set up the Autologin from within the KDE Control Center, they reported the page to be grayed out, with the message:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;quot;There is no login dialog in themed mode&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
If it is not your case, then  setting the Autologin with the Control Center is the recommended way, otherwise proceed with the Howto.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1.''' Become root with the ''su'' command in your favourite console application, for example &amp;quot;Konsole&amp;quot;.&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;su&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Type in your root password.&lt;br /&gt;
&lt;br /&gt;
'''2.''' Make sure that the Sabayon Media Centre init script is not in a system runlevel:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;rc-update del sabayon-mce boot&lt;br /&gt;
rc-update del sabayon-mce default&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
'''3.''' Open up the ''kdmrc'' file with your favourite editor, we will use ''kwrite'' in this example.&amp;lt;br&amp;gt;&lt;br /&gt;
The ''kdmrc'' file is usually located in: ''/usr/kde/4.2/share/config/kdm/kdmrc''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it is not there, try to find it with the locate command:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;locate kdmrc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
or the find command:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;find / -name kdmrc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
In this example we will suppose that it is located at ''/usr/kde/4.2/share/config/kdm/kdmrc''.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we will open it up with ''kwrite'':&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;kwrite /usr/kde/4.2/share/config/kdm/kdmrc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Notice that KDE4 may require the full path to &amp;quot;kwrite&amp;quot;, in this case you will receive an error message:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# kwrite&lt;br /&gt;
bash: kwrite: command not found&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
You could use &amp;quot;nano&amp;quot; instead:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;nano /usr/kde/4.2/share/config/kdm/kdmrc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
or launch &amp;quot;kwrite&amp;quot; using &amp;quot;kdesu&amp;quot; '''from your normal user account, not the root user account''':&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;kdesu kwrite /usr/kde/4.2/share/config/kdm/kdmrc&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
'''4.''' Now we are going to setup our preferences, we can notice a section in this file with the Autologin preferences; these lines are commented.&amp;lt;br&amp;gt;&lt;br /&gt;
Commented lines are marked with a '#', and are ignored; if a preference is commented, it is going to be used the default configuration for that setting.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The relevant lines for our purpose are:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;#AutoLoginEnable=true&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
and&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;#AutoLoginUser=fred&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
We want them to enable the Autologin with our default user, assume that the default user we want to Autologin is ''micia''.&amp;lt;br&amp;gt;&lt;br /&gt;
We set ''#AutoLoginEnable=true'' to:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;AutoLoginEnable=true&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
So that the preference is no more ignored, and we set ''#AutoLoginUser=fred'' to:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;AutoLoginUser=micia&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This is it, save the file, reboot, and see if it worked.&lt;br /&gt;
&lt;br /&gt;
= Setting Up Autologin for Gnome (GDM) =&lt;br /&gt;
&lt;br /&gt;
This is an easy one, just use ''gdmsetup'' to configure your preferences.&amp;lt;br&amp;gt;&lt;br /&gt;
You have to run it as ''root'', so, as usual:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1.''' Open up your favourite console application, for example ''gnome-terminal'' and type:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;su&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Now type in your root password.&lt;br /&gt;
&lt;br /&gt;
'''2.''' Make sure that the Sabayon Media Centre init script is not in a system runlevel:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;rc-update del sabayon-mce boot&lt;br /&gt;
rc-update del sabayon-mce default&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
'''3.''' Run ''gdmsetup'':&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;gdmsetup&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
And enable Automatic Login for your user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Someone reported that ''gdmsetup'' was not in their root $PATH variable, if this is your case executing ''gdmsetup'' should output something like:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;il-padre-mobile micia # gdmsetup&lt;br /&gt;
bash: gdmsetup: command not found&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
You will need to find the ''gdmsetup'' executable, with ''locate'' or ''find'' as above, for example using ''find'':&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;find / -name gdmsetup&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Suppose that the result is:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;# find / -name gdmsetup&lt;br /&gt;
/usr/sbin/gdmsetup&lt;br /&gt;
/etc/security/console.apps/gdmsetup&lt;br /&gt;
/etc/pam.d/gdmsetup&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
Obviously the one which interests us is ''/usr/sbin/gdmsetup'', we then execute it explicitly with:&lt;br /&gt;
{{Console| &amp;lt;pre class=&amp;quot;clear&amp;quot;&amp;gt;/usr/sbin/gdmsetup&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This should work for the GDM Display Manager.&amp;lt;br&amp;gt;&lt;br /&gt;
I hope this will help someone, good luck!&lt;/div&gt;</summary>
		<author><name>Fitzcarraldo</name></author>	</entry>

	</feed>