giving apache permission to access display on remote machine I may have explained myself in wrongly. I'm using cgi to run the command and apache for the web page interface. man xhost state that " The name can be a host name or a user name." with command syntax: xhost [[+-]name ...]``.