Thanks Eric.

U provided a good clue.

I got it running and heres what I did incase any one needs to know.

My Xen server runs Apache and I have VNC server enabled on it as a no priv user.

This user has, in there ,bashrc;

xhost +

In my Python script running server side via http://xen-dom-U-apache- server/python-script.py, I have

print os.putenv('DISPLAY',':3')
print.os.system('some program that needs display to run')

Its 3 because I have VNC running on port 3 to avoid any Xen console conflicts with dom0.

This allowed the program needing a display to work on the Apache server.



On Oct 20, 2009, at 6:23 PM, Eric Covener wrote:

On Tue, Oct 20, 2009 at 7:31 PM,  <aurfal...@gmail.com> wrote:
So I run a command in my script which requires an xterm, say xeyes for
example.

X11 applications look at the DISPLAY environment variable to figure
out where to well, display..  Your Xserver has access control that is
automagically sorted out for you by your desktop session or ssh
client.   It will be a little complicated having your Apache user be
able to securely access your X server.

"DISPLAY environment variable", "xauth", and "x11 forwarding"  might
be some good background.

--
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to