[Peeweelinux] about autologin again
Ken Emmons, Jr.
[email protected]
Fri, 16 Jan 2004 13:18:23 -0500
I've created an example project that Autoboots, and also fires up a generic X windows for any machine.
It sounds like you are happy with the minimal setup, so all you need is how to autologin.
Basically, you need to add these two lines to your inittab file:
#Runlevel 4 is for auto login user.
#It can also be used to start X if "startx" is put in ~/.bashrc
id:4:initdefault:
#if in runlevel 4 change to autologin user
1:4:respawn:su -l autologin
Put any startup stuff in the "autologin" users bashrc.
Hope this helps...
~Ken
> -----Original Message-----
> From: Wang Ke [mailto:[email protected]]
> Sent: Friday, January 16, 2004 12:48 PM
> To: [email protected]
> Subject: [Peeweelinux] about autologin again
>
>
>
> I am a newbie in Embedded Linux world.
>
> I run minimal example nicely on a pc/104 via CompactFlash.
> Thank you for
> this wonderful tool!
>
>
> Now i want to enable the Autologin ability to my system.
>
> I checked the mailing list. And tried to modify the
> /etc/inittab file from
> one instruction.
>
> Create a file named autologin.c add this to the file: int
> main () { execlp
> ("login", "login", "-f", "root", 0); }
>
> Now gcc -o autologin autologin.c Now cp autologin /sbin Now edit
> etc/inittab file, look for the line that looks like this:
> 1:345:respawn:/sbin/getty 38400 tty1 and change to
> 1:2345:respawn:/sbin/getty -n -l /sbin/autologin 38400 tty1
>
>
> but the system is still asking for password!
>
> Do you have any other approach to do Autologin? How about by
> "tinylogin" in
> ./pwlconfig
> and can you tell me? Or some one would send me the bootx.gz file?
>
> Thank you very much.
>
>
> ---------------------------------------------
>
> Wang Ke
>
> Adress:
> Voyrinkatu 6 AS 2
> Vaasa 65100
> Finland
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> Peeweelinux mailing list
> [email protected]
> http://mail.adis.on.ca/lists/listinfo/peeweelinux
>