launch X apps on a server from a php script

launch X apps on a server from a php script

am 21.04.2008 22:41:04 von gaetanoortisi

Hello,
I would like to use php - apache to work as a solution for a kiosk
that has to be
managed from a remote client.
I have obtained the pc shutdown with a system() call, and now I would
like
to know if there is a way to launch openoffice from the php script.
The -dislay option seems not to work..
Suggestions?
Thanks,
tano

Re: launch X apps on a server from a php script

am 22.04.2008 15:42:58 von colin.mckinnon

On 21 Apr, 21:41, "\"\"" wrote:
> Hello,
> I would like to use php - apache to work as a solution for a kiosk
> that has to be
> managed from a remote client.
> I have obtained the pc shutdown with a system() call, and now I would
> like
> to know if there is a way to launch openoffice from the php script.
> The -dislay option seems not to work..
> Suggestions?
> Thanks,
> tano

Sounds like a very strange way of managing a system.

You need to learn a lot about X and how it works. Have you allowed the
client to connect to the server (in X lingo, the server is where the
screen mouse and keyboard are, while the client is where the program
runs) using xhost or by transfering the cookies?

I suggest you send follow-ups to an X or Unix newsgroup

C.

Re: launch X apps on a server from a php script

am 22.04.2008 15:43:39 von colin.mckinnon

On 22 Apr, 14:42, "C. (http://symcbean.blogspot.com/)"
wrote:
> On 21 Apr, 21:41, "\"\"" wrote:
>
> > Hello,
> > I would like to use php - apache to work as a solution for a kiosk
> > that has to be
> > managed from a remote client.
> > I have obtained the pc shutdown with a system() call, and now I would
> > like
> > to know if there is a way to launch openoffice from the php script.
> > The -dislay option seems not to work..
> > Suggestions?
> > Thanks,
> > tano
>
> Sounds like a very strange way of managing a system.
>
> You need to learn a lot about X and how it works. Have you allowed the
> client to connect to the server (in X lingo, the server is where the
> screen mouse and keyboard are, while the client is where the program
> runs) using xhost or by transfering the cookies?
>
> I suggest you send follow-ups to an X or Unix newsgroup
>
> C.

(or use sudo)

C.

Re: launch X apps on a server from a php script

am 22.04.2008 19:20:06 von gaetanoortisi

It could be strange, but I do not find a better one. (Suggestions? The
only
alternative I found is run apache as the same user that login
automatically
on gnome). I know how X works, however I was not pratical with all the
security settings X provides (it seems that add a sudo line that allow
to run a shell script as the X server user works, even if I have to
run
xhost for the user that use sudo (it seems very complicated)).
Really, for the future I would like to know if there are more direct
ways
to do things like this.. :-)

Re: launch X apps on a server from a php script

am 22.04.2008 22:43:01 von Claudio Corlatti

this is not a elegant solution but maybe you can write a link to a
openoffice empty document, this way when the user click it (if he had
associated open office with that extension) openoffice will open