[FreeNX-kNX] Unable to open Display

Daniel Spannbauer ds at marco.de
Fri Jun 12 07:00:07 UTC 2009



Florian Schmidt schrieb:
> Hi,
> 
> NX set's locally the Display to 1000 plus the session number (the first 
> one is 0) so the display on your NX server is unix:1000 -> the unix is 
> used for local socket operations only.
> 
> When you connect to an different machine you need a possibility to 
> connect and forwarding you X11 credentials automatically. Telnet doesn't 
> support X11 forwarding (at least out of the box).
> 
> So I would suggest that you use ssh -X <hostname> instead to use X11 
> forwarding.
> 
> If there is any real reason (I can't see any in any case) that you are 
> forced to use telnet (I am wondering that this is still alive :) ) you 
> can set your display than on the machine by setenv DISPLAY 
> <loginserverhostname>:1000 (tcsh) or export 
> DISPLAY=<loginserverhostname>:1000 (bash) and than do an xhost 
> +<hostnamewhereItelnetedto> on your NX LoginServer.

Ok, now I understand the Problem.
But can I tell NX to use a Display that begins with the Hostname, not 
"unix"?

Regards

Daniel





> 
> Cheers,
> Florian
> 
> 
> 2009/6/9, Holger Krull <holger.krull at gmx.de <mailto:holger.krull at gmx.de>>:
> 
>     Daniel Spannbauer schrieb:
> 
>      >
>      > Holger Krull schrieb:
>      >> Daniel Spannbauer schrieb:
>      >>> Hello,
>      >>>
>      >>> I'M using FreeNX 0.5.0 and NX-1.5.0 under SuSE 10.2.
>      >>> The Login with the actal NXClient from Nomachine works
>     perfectly. But in
>      >>> NX when I do a telnet to an other host and try to start a
>     X-application
>      >>> I get "unable to open Display". Display is set to unix:1000.
>      >>> If I do a xhost + an try to start the app again there is also
>     the error
>      >>> "cannot connect to X server unix:1000.0".
>      >> Check if there really is a X-Server listening on Port 1000.
>      >> Why don't you set DISPLAY on the remote host to
>     ip.address.of.nx:1000 ?
>      >> How is unix:1000 supposed to work?
>      >
>      > unix:1000 is set automaticly by NX (oder FreeNX). Its the
>     default, not
>      > my idea.
>      > How can I check if a Xserver is listening on that port? If I
>     logged in
>      > with NX aon KDE a "echo $DISPLAY" sais "unix:1000".
> 
> 
>     Do a
>       netstat -tlnp |grep nx
> 
>     if that outputs something like
>     tcp        0      0 0.0.0.0:8000
>     <http://0.0.0.0:8000>            0.0.0.0:*              
>     LISTEN      6735/nxagent
> 
>     you have the Xserver listening.
> 
>     unix:1000.0 as DISPLAY will not work on the computer you logged in
>     via telnet. It is purely local to the computer your nxagent is
>     running on.
> 
> 
>     I recommend you use ssh with -X or -Y as parameter to connect from
>     your nx session to the third computer instead of telnet. That will
>     tunnel the X connection and set DISPLAY accordingly.
> 
> 
>     ________________________________________________________________
>          Were you helped on this list with your FreeNX problem?
>         Then please write up the solution in the FreeNX Wiki/FAQ:
> 
>     http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
> 
>              Don't forget to check the NX Knowledge Base:
>                      http://www.nomachine.com/kb/
> 
>     ________________________________________________________________
>            FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>     <mailto:FreeNX-kNX at kde.org>
>           https://mail.kde.org/mailman/listinfo/freenx-knx
>     ________________________________________________________________
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
> 
> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>   
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
> 
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________

-- 
Daniel Spannbauer                         Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/                      Email ds at marco.de
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München



More information about the FreeNX-kNX mailing list