[CentOS] xhost: unable to open display

Tue May 20 18:39:11 UTC 2014
Les Mikesell <lesmikesell at gmail.com>

On Tue, May 20, 2014 at 11:49 AM, zep <zgreenfelder at gmail.com> wrote:
>
> 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.

Even better, install x2goserver from EPEL on the Centos side and the
windows client on windows, and aside from the connection being set up
for you, you will be able to disconnect/reconnect to running sessions.

-- 
   Les Mikesell
     lesmikesell at gmail.com