[CentOS] xhost: unable to open display

Tue May 20 16:49:56 UTC 2014
zep <zgreenfelder at gmail.com>

On 05/20/2014 11:29 AM, Dan Hyatt wrote:
> On 5/20/2014 9:46 AM, Charles Whitby wrote:
>> You running doing the xhost + on the Win8 box and the export DISPLAY on the
>> Linux side, right?
>>
> There is no xhost command on the windows side.... I have not done this in two years, but as I remember it, the xhost + was done on the console and the export DISPLAY was done in the user profile.  It is the UNIX box exporting the display to allow windows (or another UNIX box) to receive it.
>
> What am I missing.
>

with the definitions of 'an X server is the machine controlling your
display/showing you
the desktop' and client being 'some machine that wants to run processes
which then
show their graphical output to some other location', you want to run
'host +' (although
it should really be something more like 'xhost + hostname') on the
server and run
'export display=somemachine:somenumber(s)' on the client.  

or better yet, run ssh -X user at hostname and let ssh tunnel it for you.