how phrelay starts photon....

Hi,
I wan’t to setup photon just for phditto connections but when I start
phDitto, I just get a black screen. pwm, etc… is not launched, I think
that PHOTON env var is not created and photon apps cannot find the display.

Any help?
Alain.

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I start
phDitto, I just get a black screen. pwm, etc… is not launched, I think
that PHOTON env var is not created and photon apps cannot find the display.

Any help?
Alain.

Hi Garry,
It’s a minimal installation based on ‘Photon in Embedded systems’ doc.
But I just want to be able to start a photon session in phindows/phditto.
So, I don’t really know what do I need.

Actually, I have inetd running.
I just start phfontFA -d /usr/photon/font_repository&

(sloginfo displays some incomprehensible log such as May 27 15:35:53 1 0
0 1701012818 1684371049…)

When I start phditto -t 172.20.26.12, I see phrelay starting Photon, I
just get a black screen and pidin shows a Zombie.
So, there is something wrong somewhere!

How phrelay knows what to start phlogin, pwm, shelf, etc… Does it
execute the ph script?

Any idea?


Garry Turcotte a écrit:

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I start
phDitto, I just get a black screen. pwm, etc… is not launched, I
think that PHOTON env var is not created and photon apps cannot find
the display.

Any help?
Alain.

phrelay runs the
ph.setup script (currently this just starts phfont, so you won’t need
it if you start it manually)
then it runs “Photon -N… -l’phlogin’ …”
phlogin, by default, runs the ph script (with the user’s login shell
I believe)

Change the phrelay line in /etc/inetd.conf to add
-D/tmp/phrelay.out -VVVVVVV and you’ll see the sequence in the debug
file. (and hopefully an error message about what is missing…)

Alain Bonnefoy wrote:

Hi Garry,
It’s a minimal installation based on ‘Photon in Embedded systems’ doc.
But I just want to be able to start a photon session in phindows/phditto.
So, I don’t really know what do I need.

Actually, I have inetd running.
I just start phfontFA -d /usr/photon/font_repository&

(sloginfo displays some incomprehensible log such as May 27 15:35:53 1 0
0 1701012818 1684371049…)

When I start phditto -t 172.20.26.12, I see phrelay starting Photon, I
just get a black screen and pidin shows a Zombie.
So, there is something wrong somewhere!

How phrelay knows what to start phlogin, pwm, shelf, etc… Does it
execute the ph script?

Any idea?


Garry Turcotte a écrit:

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I start
phDitto, I just get a black screen. pwm, etc… is not launched, I
think that PHOTON env var is not created and photon apps cannot find
the display.

Any help?
Alain.

Interesting!!!
ph.setup answer a very very old question; Why does phDitto complain
about a ‘Connection error 13’.
Up to know, the only answer I ever heard was: Start a font server manually!!

Thanks a lot!

But my problem still remains.
It seems that somebody cannot find libAp.so.2 but that library is in
/usr/lib and LD_LIBRARY_PATH is ok.

What env var should I have to set ?
I join the phrelay.out in case!!

Thanks,
Alain.


Garry Turcotte a écrit:

phrelay runs the
ph.setup script (currently this just starts phfont, so you won’t
need it if you start it manually)
then it runs “Photon -N… -l’phlogin’ …”
phlogin, by default, runs the ph script (with the user’s login shell
I believe)

Change the phrelay line in /etc/inetd.conf to add
-D/tmp/phrelay.out -VVVVVVV and you’ll see the sequence in the debug
file. (and hopefully an error message about what is missing…)

Alain Bonnefoy wrote:

Hi Garry,
It’s a minimal installation based on ‘Photon in Embedded systems’ doc.
But I just want to be able to start a photon session in
phindows/phditto.
So, I don’t really know what do I need.

Actually, I have inetd running.
I just start phfontFA -d /usr/photon/font_repository&

(sloginfo displays some incomprehensible log such as May 27 15:35:53
1 0 0 1701012818 1684371049…)

When I start phditto -t 172.20.26.12, I see phrelay starting Photon,
I just get a black screen and pidin shows a Zombie.
So, there is something wrong somewhere!

How phrelay knows what to start phlogin, pwm, shelf, etc… Does it
execute the ph script?

Any idea?


Garry Turcotte a écrit:

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I
start phDitto, I just get a black screen. pwm, etc… is not
launched, I think that PHOTON env var is not created and photon
apps cannot find the display.

Any help?
Alain.
\

Is /usr/lib in CS_LIBPATH? Is it included in your procnto startup line?
setuid programs do not look at LD_LIBRARY_PATH

Alain Bonnefoy wrote:

Interesting!!!
ph.setup answer a very very old question; Why does phDitto complain
about a ‘Connection error 13’.
Up to know, the only answer I ever heard was: Start a font server
manually!!

Thanks a lot!

But my problem still remains.
It seems that somebody cannot find libAp.so.2 but that library is in
/usr/lib and LD_LIBRARY_PATH is ok.

What env var should I have to set ?
I join the phrelay.out in case!!

Thanks,
Alain.


Garry Turcotte a écrit:

phrelay runs the
ph.setup script (currently this just starts phfont, so you won’t
need it if you start it manually)
then it runs “Photon -N… -l’phlogin’ …”
phlogin, by default, runs the ph script (with the user’s login shell
I believe)

Change the phrelay line in /etc/inetd.conf to add
-D/tmp/phrelay.out -VVVVVVV and you’ll see the sequence in the debug
file. (and hopefully an error message about what is missing…)

Alain Bonnefoy wrote:

Hi Garry,
It’s a minimal installation based on ‘Photon in Embedded systems’ doc.
But I just want to be able to start a photon session in
phindows/phditto.
So, I don’t really know what do I need.

Actually, I have inetd running.
I just start phfontFA -d /usr/photon/font_repository&

(sloginfo displays some incomprehensible log such as May 27 15:35:53
1 0 0 1701012818 1684371049…)

When I start phditto -t 172.20.26.12, I see phrelay starting Photon,
I just get a black screen and pidin shows a Zombie.
So, there is something wrong somewhere!

How phrelay knows what to start phlogin, pwm, shelf, etc… Does it
execute the ph script?

Any idea?


Garry Turcotte a écrit:

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I
start phDitto, I just get a black screen. pwm, etc… is not
launched, I think that PHOTON env var is not created and photon
apps cannot find the display.

Any help?
Alain.

\

Houla, setuid programs, or YOUR setuid programs?
Those started from init script?

It’s much better about my problems except that desktop menus
(right-click) don’t do anything and I don’t see why in the phrelay.out.
I know that some exe are missing but pterm and phshutdown are present.
What’s wrong?

Alain.

Garry Turcotte a écrit:

Is /usr/lib in CS_LIBPATH? Is it included in your procnto startup line?
setuid programs do not look at LD_LIBRARY_PATH

Alain Bonnefoy wrote:

Interesting!!!
ph.setup answer a very very old question; Why does phDitto complain
about a ‘Connection error 13’.
Up to know, the only answer I ever heard was: Start a font server
manually!!

Thanks a lot!

But my problem still remains.
It seems that somebody cannot find libAp.so.2 but that library is in
/usr/lib and LD_LIBRARY_PATH is ok.

What env var should I have to set ?
I join the phrelay.out in case!!

Thanks,
Alain.


Garry Turcotte a écrit:

phrelay runs the
ph.setup script (currently this just starts phfont, so you won’t
need it if you start it manually)
then it runs “Photon -N… -l’phlogin’ …”
phlogin, by default, runs the ph script (with the user’s login
shell I believe)

Change the phrelay line in /etc/inetd.conf to add
-D/tmp/phrelay.out -VVVVVVV and you’ll see the sequence in the debug
file. (and hopefully an error message about what is missing…)

Alain Bonnefoy wrote:

Hi Garry,
It’s a minimal installation based on ‘Photon in Embedded systems’ doc.
But I just want to be able to start a photon session in
phindows/phditto.
So, I don’t really know what do I need.

Actually, I have inetd running.
I just start phfontFA -d /usr/photon/font_repository&

(sloginfo displays some incomprehensible log such as May 27
15:35:53 1 0 0 1701012818 1684371049…)

When I start phditto -t 172.20.26.12, I see phrelay starting
Photon, I just get a black screen and pidin shows a Zombie.
So, there is something wrong somewhere!

How phrelay knows what to start phlogin, pwm, shelf, etc… Does
it execute the ph script?

Any idea?


Garry Turcotte a écrit:

How are you starting phditto?
How are you starting phrelay?
Is this a full install or a minimal one?

Alain Bonnefoy wrote:

Hi,
I wan’t to setup photon just for phditto connections but when I
start phDitto, I just get a black screen. pwm, etc… is not
launched, I think that PHOTON env var is not created and photon
apps cannot find the display.

Any help?
Alain.


\

I believe all setuid programs. (security risk)
The right click problem is likely a missing config file
in $HOME/.ph (assuming you’re even running pwm?)

Alain Bonnefoy wrote:

Houla, setuid programs, or YOUR setuid programs?
Those started from init script?

It’s much better about my problems except that desktop menus
(right-click) don’t do anything and I don’t see why in the phrelay.out.
I know that some exe are missing but pterm and phshutdown are present.
What’s wrong?

Alain.

Garry Turcotte a écrit:

Is /usr/lib in CS_LIBPATH? Is it included in your procnto startup line?
setuid programs do not look at LD_LIBRARY_PATH

I get the following message:
dlopen(/usr/photon/dll/shelf/launchmenu.so): Library cannot be found

but the library is there and the access rights are correct.
Another env var ?

Alain.

Garry Turcotte a écrit:

I believe all setuid programs. (security risk)
The right click problem is likely a missing config file
in $HOME/.ph (assuming you’re even running pwm?)

Alain Bonnefoy wrote:

Houla, setuid programs, or YOUR setuid programs?
Those started from init script?

It’s much better about my problems except that desktop menus
(right-click) don’t do anything and I don’t see why in the phrelay.out.
I know that some exe are missing but pterm and phshutdown are present.
What’s wrong?

Alain.

Garry Turcotte a écrit:

Is /usr/lib in CS_LIBPATH? Is it included in your procnto startup line?
setuid programs do not look at LD_LIBRARY_PATH

Alain Bonnefoy wrote:

I get the following message:
dlopen(/usr/photon/dll/shelf/launchmenu.so): Library cannot be found

but the library is there and the access rights are correct.
Another env var ?

Alain.

I’m guessing it depends on another lib that you don’t have.
Try objdump -x launchmenu.so | grep NEEDED

Now that you have phditto working, maybe you should start another
thread. The shelf developer may not be reading this deep into the thread :slight_smile:

Ok Gary and thanks a lot!

Alain.

Garry Turcotte a écrit:

Alain Bonnefoy wrote:

I get the following message:
dlopen(/usr/photon/dll/shelf/launchmenu.so): Library cannot be found

but the library is there and the access rights are correct.
Another env var ?

Alain.


I’m guessing it depends on another lib that you don’t have.
Try objdump -x launchmenu.so | grep NEEDED

Now that you have phditto working, maybe you should start another
thread. The shelf developer may not be reading this deep into the
thread > :slight_smile: