Preetham,

I did the following and it worked for me (although maybe someone else
can give you a better/alternative solution).  This solution is based on
the howto at http://ubuntuforums.org/showthread.php?t=152274

1.      Create a file autologin.c and add the following line of code to
it:
                int main() { execlp( "login", "login", "-f", "root", 0);
}

2.      Compile the autologin.c file.  This can be done either on the
host system with cross-compile or the target system natively.  For the
target system do:
                gcc autologin.c -o autologin

3.      Copy the autologin executable to /usr/local/sbin

4.      Open /etc/inittab on the target file system and change the line
"con:2345:respawn:/sbin/getty console" to "con:2345:respawn:/sbin/getty
-n -l /usr/local/sbin/autologin console"

5.      Change directory on the target file system to /root and create a
.bash_profile file with the following line:
                startx &

I hope this helps.  Let me know if it does and I'll add this information
to the DaVinci Wiki.

Sincerely,
Chase Maupin
Software Applications
Catalog DSP Products
e-mail: [EMAIL PROTECTED]
phone: (281) 274-3285

> -----Original Message-----
> From: davinci-linux-open-source-
> [EMAIL PROTECTED]
[mailto:davinci-linux-
> [EMAIL PROTECTED] On
Behalf Of
> Preetham Soundararajan
> Sent: Sunday, June 22, 2008 8:57 AM
> To: [email protected]
> Subject: Autologin into Davinci
> 
> Hello all,
>           Has anyone made the Davinci system
> standalone.
> That is right now we have to login over serial
> terminal
> and then manually start X windows by typing "startx".
> 
>     Has anyone autologged into the system and then
> start
> X windows using some start up script.
> 
> Any suggestions are welcome and helpful.
> 
> Thanks,
> Preetham
> 
> Send instant messages to your online friends
http://uk.messenger.yahoo.com
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to