How do I get rid of login?

I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <bruce.r.davis@boeing.com> wrote in message
news:3B210F36.F7FB4DA8@boeing.com

I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

Thanks for your reply. Looks like it is the LOGNAME envar according to
the documentation. So my next question is, how do I set that envar so
it will be set before photon starts? I am having trouble figuring out
which scripts start and configure photon at boot. BTW, you start a
photon app by putting it in phapps in the /root/.ph directory.

Igor Kovalenko wrote:

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol > :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

Create a rc.local script file in /etc/rc.d and add ‘export LOGNAME=’.
Make sure to make the file exectubile. This script gets run before photon
is started - it will boot you directly into photon.

Heather


Bruce Davis <bruce.r.davis@boeing.com> wrote:

Thanks for your reply. Looks like it is the LOGNAME envar according to
the documentation. So my next question is, how do I set that envar so
it will be set before photon starts? I am having trouble figuring out
which scripts start and configure photon at boot. BTW, you start a
photon app by putting it in phapps in the /root/.ph directory.

Igor Kovalenko wrote:

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol > :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

Thanks, that did the trick - but it had an unexpected consequence.
phapps in /root/.ph does not seem to be run now. The line I put in
rc.local was:

export LOGNAME=root

I seem to logged in as root (which I need for my app to run correctly)
because I have the hash prompt in the shell. Any idea why phapps didn’t
run? I can’t just add it to rc.local (I don’t think so anyway) because
I believe some of the commands need to be run when photon loads.

Heather Kilgour wrote:

Create a rc.local script file in /etc/rc.d and add ‘export LOGNAME=’.
Make sure to make the file exectubile. This script gets run before photon
is started - it will boot you directly into photon.

Heather

Bruce Davis <> bruce.r.davis@boeing.com> > wrote:
Thanks for your reply. Looks like it is the LOGNAME envar according to
the documentation. So my next question is, how do I set that envar so
it will be set before photon starts? I am having trouble figuring out
which scripts start and configure photon at boot. BTW, you start a
photon app by putting it in phapps in the /root/.ph directory.

Igor Kovalenko wrote:

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol > :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.

I think you have to set HOME as well. I’d check out the /usr/bin/ph
script for any other environment variables you may need to set.

Bruce Davis <bruce.r.davis@boeing.com> wrote:

Thanks, that did the trick - but it had an unexpected consequence.
phapps in /root/.ph does not seem to be run now. The line I put in
rc.local was:

export LOGNAME=root

I seem to logged in as root (which I need for my app to run correctly)
because I have the hash prompt in the shell. Any idea why phapps didn’t
run? I can’t just add it to rc.local (I don’t think so anyway) because
I believe some of the commands need to be run when photon loads.

Heather Kilgour wrote:

Create a rc.local script file in /etc/rc.d and add ‘export LOGNAME=’.
Make sure to make the file exectubile. This script gets run before photon
is started - it will boot you directly into photon.

Heather

Bruce Davis <> bruce.r.davis@boeing.com> > wrote:
Thanks for your reply. Looks like it is the LOGNAME envar according to
the documentation. So my next question is, how do I set that envar so
it will be set before photon starts? I am having trouble figuring out
which scripts start and configure photon at boot. BTW, you start a
photon app by putting it in phapps in the /root/.ph directory.

Igor Kovalenko wrote:

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol > :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.


cburgess@qnx.com

Thanks, you do have to set HOME, and PATH as well. Actually it sets a
default path but it is not the same as the path set in a normal login.
Still trying to figure out in which script(s) all the envars are set…

Thanks everyone for your help.

Colin Burgess wrote:

I think you have to set HOME as well. I’d check out the /usr/bin/ph
script for any other environment variables you may need to set.

Bruce Davis <> bruce.r.davis@boeing.com> > wrote:
Thanks, that did the trick - but it had an unexpected consequence.
phapps in /root/.ph does not seem to be run now. The line I put in
rc.local was:

export LOGNAME=root

I seem to logged in as root (which I need for my app to run correctly)
because I have the hash prompt in the shell. Any idea why phapps didn’t
run? I can’t just add it to rc.local (I don’t think so anyway) because
I believe some of the commands need to be run when photon loads.

Heather Kilgour wrote:

Create a rc.local script file in /etc/rc.d and add ‘export LOGNAME=’.
Make sure to make the file exectubile. This script gets run before photon
is started - it will boot you directly into photon.

Heather

Bruce Davis <> bruce.r.davis@boeing.com> > wrote:
Thanks for your reply. Looks like it is the LOGNAME envar according to
the documentation. So my next question is, how do I set that envar so
it will be set before photon starts? I am having trouble figuring out
which scripts start and configure photon at boot. BTW, you start a
photon app by putting it in phapps in the /root/.ph directory.

Igor Kovalenko wrote:

I believe if you set USER (or maybe LOGNAME) envar before starting
Photon it will skip phlogin. There is some way to start your app
automatically, but I don’t remember exactly off the top of my head.
Something about ~/.ph file I believe… Another way would be to link
your app to phlogin, lol > :slight_smile:

  • igor

Bruce Davis wrote:

Unfortunately it is a photon app so that does not seem to work. There
must be a way to remove the login prompt from system startup, does
anyone know how to do it?

Markus Loffler wrote:

Put the command to start your app in /etc/rc.d/rc.local if it is not a
photon app
Markus

“Bruce Davis” <> bruce.r.davis@boeing.com> > wrote in message
news:> 3B210F36.F7FB4DA8@boeing.com> …
I want my app to run when the computer is turned on, with no login. I
am using photon. Can someone tell me how? Thanks.


cburgess@qnx.com