Automatic login on command line installation

Ruben Varela rovr138 at gmail.com
Sun May 3 02:27:59 UTC 2009


On Sat, May 2, 2009 at 9:11 PM, Ruben Varela <rovr138 at gmail.com> wrote:
> On Sat, May 2, 2009 at 7:42 PM, Ruben Varela <rovr138 at gmail.com> wrote:
>> With the alternate install disc I installed a command line system with
>> drive encryption.  My question is, how I can automatically login a
>> user?  When the system starts, I want to enter my passphrase and would
>> like the system to boot and login.
>>
>>
>> I searched on Google and the forums but the links I checked basically
>> said not to do it and that it isn't safe, etc but I couldn't find how
>> to do it.  After reading like 15 links I decided to come here and ask
>> for help.  I'm not saying the answer isn't out there. I just didn't
>> find it.
>>
>> I've only installed links2 to send this email.
>>
>> --
>> Rubén O. Varela Rosa
>> http://www.rovr138.com
>> rovr138 at gmail.com
>>
>
> I think I found something... (
> http://www.lalitkapoor.com/blog/2008/06/30/ubuntu-server-desktop-autologin/
> )
>
> Install mingetty
> Then you will want to edit /etc/event.d/tty1 and change the following:
> exec /sbin/getty 38400 tty1  to
> exec /sbin/mingetty –autologin your_username tty1
>
>
> I'll give it a try and see how it goes... I'll post back in a bit with
> what I find.
>
> --
> Rubén O. Varela Rosa
> http://www.rovr138.com
> rovr138 at gmail.com
>

Ok... That didn't work... But I decided to do this... I installed
xinit (apt-get install xinit) and edit rc.local. I added su -
user_name -c startx

This logs me in and starts X... (not exactly what I wanted, but it'll
do till I find something else...)


--
Rubén O. Varela Rosa
http://www.rovr138.com
rovr138 at gmail.com




More information about the ubuntu-users mailing list