Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - automatic login, running of programs: (3 Items)
   
automatic login, running of programs  
I have been reading and trying to get my QNX Momentics machine to automatically log into root and run programs (such as 
qconn) once it has booted; I have been editing the /etc/system/sysinit file at the end, changing the entry for /etc/rc.d
/rc.sysinit (and also adding the file /etc/system/config/nophoton and trying to load the login components manually) and 
adding an entry for tinit to run the login command.  I do not need phlogin or any photon running, simply a console for 
now.  Where can I find a suitable snippet from sysinit that allows QNX Momentics to automatically login and run a 
program through a console or shell (such as qconn or any other program)?
Thank you very much for your help.
RE: automatic login, running of programs  
Hi Joe,

If you want to have programs executed on system startup you can add them to
the /etc/rc.d/rc.local shell script. This is invoked fairly late in the
process. For example, that's where I start inetd.

If you want a shell instead of a login you can edit /etc/config/ttys and
replace /bin/login with /bin/sh. I've used this trick to start a high
priority shell on console 4, for example.

Hope this helps,
Keith Russell


-----Original Message-----
From: Joe Stern [mailto:sternj@email.uc.edu] 
Sent: February 12, 2008 15:31
To: general-community
Subject: automatic login, running of programs

I have been reading and trying to get my QNX Momentics machine to
automatically log into root and run programs (such as qconn) once it has
booted; I have been editing the /etc/system/sysinit file at the end,
changing the entry for /etc/rc.d/rc.sysinit (and also adding the file
/etc/system/config/nophoton and trying to load the login components
manually) and adding an entry for tinit to run the login command.  I do not
need phlogin or any photon running, simply a console for now.  Where can I
find a suitable snippet from sysinit that allows QNX Momentics to
automatically login and run a program through a console or shell (such as
qconn or any other program)?
Thank you very much for your help.

_______________________________________________
General
http://community.qnx.com/sf/go/post4971
Re: RE: automatic login, running of programs  
you can add this in your rc.local

/usr/photon/bin/Photon -l '/usr/photon/bin/phlogin -O -U user:password'

change user to your login name

For more detail, do a search of "Controlling How Neutrino Starts" in Help 

then go to rc.local section.