Automatic login

How do I configure QNX to automaitically logon, start photon, and then start
my app after a boot?

Thanks
Kevin

I have never done this myself, but here are the steps that I would
try.

/usr/bin/ph is a simple shell script that starts photon.
You could rewrite or replace it with one that doesn’t
use phlogin or uses “phlogin -u username”

Note: Be careful how you edit this file, as mistakes in it
might make booting your system very difficult :slight_smile: I would
recommend testing your script (under another name) from
the commandline before installing it.

Create a file called .phapps in your user’s home directory.
Any commands that you list there will be run whenever the
user enters Photon. I believe that the .phapps file has to
be executable (chmod a+x .phapps)

Kevin Brown wrote:

How do I configure QNX to automaitically logon, start photon, and then start
my app after a boot?

Thanks
Kevin

Whoops, a couple of errors in my last post.

The file is ~/.ph/phapps , not ~/.phapps

It is referenced in the /usr/bin/ph script, so it could
be anything that you want really.

Good luck.
(^_^)

James MacMillan wrote:

I have never done this myself, but here are the steps that I would
try.

/usr/bin/ph is a simple shell script that starts photon.
You could rewrite or replace it with one that doesn’t
use phlogin or uses “phlogin -u username”

Note: Be careful how you edit this file, as mistakes in it
might make booting your system very difficult > :slight_smile: > I would
recommend testing your script (under another name) from
the commandline before installing it.

Create a file called .phapps in your user’s home directory.
Any commands that you list there will be run whenever the
user enters Photon. I believe that the .phapps file has to
be executable (chmod a+x .phapps)

Kevin Brown wrote:

How do I configure QNX to automaitically logon, start photon, and then
start
my app after a boot?

Thanks
Kevin

\

Read up on how to write your own boot image. There are a couple of sample
build files in /boot/build.
http://qdn.qnx.com/support/docs/embedding_sdk_en/building/building_nto.html
http://qdn.qnx.com/support/docs/embedding_sdk_en/building/config.html
Alternatively, you could meddle with the system files to customize eg.
/etc/rc.local, …

“Kevin Brown” <kbrown@bytewise.com> wrote in message
news:aa47ol$rqk$1@inn.qnx.com

How do I configure QNX to automaitically logon, start photon, and then
start
my app after a boot?

Thanks
Kevin