Boot directly into Photon

Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on the
net and doesn’t run nameloc. There is another node running nameloc. In any
case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit file?

After this I get the Photon login, but I can’t login as root nor any other
user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the login
window?

TIA

Augie

nameloc -k $SERVER_NODE will wait for the nameloc on the server node to kick
you so you will block here until you get the license info.

To boot directly into Photon without logging in you can set LOGNAME to a
given name.

  • Richard

“apps” <apps@qnx.com> wrote in message news:3C114106.6090100@qnx.com

Hello Augie,


Augie Henriques wrote:

Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on
the
net and doesn’t run nameloc. There is another node running nameloc. In
any
case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit
file?


You can run the ph script from your ‘.profile’ in your home directory by
simply adding the line ‘ph’ at the bottom. If this file doesn’t exist
you can create it and mark it executable.

Does this go directly into Photon? Don’t I have to login?

I had an old version of phlogin in this system by mistake. I fixed this and
now I can login just fine. If I want to go into Photon directly without
doing the login, then I still need to know how to set the user name/id?

TIA

Augie

After this I get the Photon login, but I can’t login as root nor any
other
user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the
login
window?

TIA

Augie






Regards,
Dave B.

“apps” <apps@qnx.com> wrote in message news:3C116413.4040605@qnx.com

Have a look at the tinit utility in the QNX OS Utilities Reference N –
Z.
Specifically the “-c command” option.

I looked at this and I don’t see how this helps me with login in directly
into Photon without entering a user name and password. I would like the
Photon session to belong to some user, not just ‘none’.

How do I do this?


Augie

Regards,
Dave B.

Augie Henriques wrote:

“apps” <> apps@qnx.com> > wrote in message news:> 3C114106.6090100@qnx.com> …

Hello Augie,


Augie Henriques wrote:


Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on

the

net and doesn’t run nameloc. There is another node running nameloc.
In

any

case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit

file?


You can run the ph script from your ‘.profile’ in your home directory by
simply adding the line ‘ph’ at the bottom. If this file doesn’t exist
you can create it and mark it executable.


Does this go directly into Photon? Don’t I have to login?

I had an old version of phlogin in this system by mistake. I fixed this
and
now I can login just fine. If I want to go into Photon directly without
doing the login, then I still need to know how to set the user name/id?

TIA

Augie



After this I get the Photon login, but I can’t login as root nor any

other

user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the

login

window?

TIA

Augie






Regards,
Dave B.


\

Hello Augie,


Augie Henriques wrote:

Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on the
net and doesn’t run nameloc. There is another node running nameloc. In any
case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit file?

You can run the ph script from your ‘.profile’ in your home directory by
simply adding the line ‘ph’ at the bottom. If this file doesn’t exist
you can create it and mark it executable.


After this I get the Photon login, but I can’t login as root nor any other
user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the login
window?

TIA

Augie

\

Regards,
Dave B.

Have a look at the tinit utility in the QNX OS Utilities Reference N –
Z.
Specifically the “-c command” option.

Regards,
Dave B.

Augie Henriques wrote:

“apps” <> apps@qnx.com> > wrote in message news:> 3C114106.6090100@qnx.com> …

Hello Augie,


Augie Henriques wrote:


Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on

the

net and doesn’t run nameloc. There is another node running nameloc. In

any

case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit

file?


You can run the ph script from your ‘.profile’ in your home directory by
simply adding the line ‘ph’ at the bottom. If this file doesn’t exist
you can create it and mark it executable.


Does this go directly into Photon? Don’t I have to login?

I had an old version of phlogin in this system by mistake. I fixed this and
now I can login just fine. If I want to go into Photon directly without
doing the login, then I still need to know how to set the user name/id?

TIA

Augie



After this I get the Photon login, but I can’t login as root nor any

other

user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the

login

window?

TIA

Augie






Regards,
Dave B.
\

Hello Augie,

What you can do in this case is modify your ph script to add a test on
LOGNAME and use ‘phlogin -Uusername:password’ accordingly.

Hope this helps,

Regards,
Dave B.



Augie Henriques wrote:

“apps” <> apps@qnx.com> > wrote in message news:> 3C116413.4040605@qnx.com> …

Have a look at the tinit utility in the QNX OS Utilities Reference N –
Z.
Specifically the “-c command” option.


I looked at this and I don’t see how this helps me with login in directly
into Photon without entering a user name and password. I would like the
Photon session to belong to some user, not just ‘none’.

How do I do this?


Augie


Regards,
Dave B.

Augie Henriques wrote:


“apps” <> apps@qnx.com> > wrote in message news:> 3C114106.6090100@qnx.com> …


Hello Augie,


Augie Henriques wrote:



Hi.

Using QNX 4.25 and Photon 1.14 (latest CD release).

I’m trying to setup a system to boot directly into Photon.

I have added ‘ph’ to the end of the sysinit file. This machine is on


the


net and doesn’t run nameloc. There is another node running nameloc.

In

any


case, I get a no license message when I try to run Photon this way. Is
there a way to solve this, other than adding nameloc to the sysinit


file?


You can run the ph script from your ‘.profile’ in your home directory by
simply adding the line ‘ph’ at the bottom. If this file doesn’t exist
you can create it and mark it executable.


Does this go directly into Photon? Don’t I have to login?

I had an old version of phlogin in this system by mistake. I fixed this

and

now I can login just fine. If I want to go into Photon directly without
doing the login, then I still need to know how to set the user name/id?

TIA

Augie



After this I get the Photon login, but I can’t login as root nor any


other


user in the system. Why? Do I have the wrong version of Photon login?

How do set the user id (name) when login into Photon without using the


login


window?

TIA

Augie






Regards,
Dave B.



\