non-obvious Error: Can't open display: unix:1.0
"Beerse, Corné"
cbeerse "at" hiscom.nl
Mon Aug 19 16:27:01 2002
> -----Original Message-----
> From: Austin Schutz [mailto:tex "at" off.org]
> Running a commercial app, I get 'Error: Can't open
> display: unix:1.0'.
Can you replace your app with `xterm`? If that works, it is most likely the
application that cannot handle the :1 in the display number. (I've seen to
manny commercal apps that have this problem. Most of them can display on
other display names but they are hardcoded to :0.0....) If you have this
problem, try one of the next setups for vnc at :0.0 :
http://xf4vnc.sourceforge.net/
If you use the XFree86 Xserver: gives access to :0
http://www.hexonet.de/software/x0rfbserver/
If your Xserver uses the framebuffer device: gives access to :0
(btw: is your machine realy called unix?)
If `xterm` cannot start, then start Xvnc (or vncserver) without X-security:
add the -ac parameter: `Xvnc -ac` or `vncserver -ac`.
If this works, and you need security, check the X documentation on security.
The app to alter the X security on the fly is `xhost` (hence check `man
xhost`).
> It looks like possibly the app is using libxt? I get the following in
> truss output:
>
> 2901: stat("/tmp/.X11-pipe/X1", 0xFFBEDBC8) Err#2 ENOENT
> 2901: open("/export/src/X11/lib/X11/XtErrorDB", O_RDONLY)
> Err#2 ENOENT
>
> right before it writes the error message and quits. I
> am running:
>
> VNC viewer version 3.3.3r1 with SSH tunneling support
>
> on a linux 2.4 machine, X ver. 4.something. Server is solaris
> 8, same vnc version. Connection is made via an ssh tunnel.
>
> The app is spawned from a shell in an xterm window
> inside vncviewer.
> Other apps, such as xterm, _have no problems whatsoever_ being spawned
> thusly, and pop up in the vncviewer window just as one would expect.
> There are no interesting messages in .vnc/$DISPLAY.log, AFAICT.
>
> I tried symlinking /tmp/.X11-pipe to /tmp/.X11-unix. That didn't
> seem to have any effect. the 'stat("/tmp/.X11-pipe/X1"...)'
> would succeed
> but the app would still croak with the "Error: Can't open
> display: unix:1.0"
> message.
>
> I have browsed/searched the list archives and FAQ but
> not seen anything
> similar.
>
> Thanks for any help/pointers!
>
> Austin
>
> P.S. VNC Rocks! 10x faster than X direct over a cable modem
> connection!
> _______________________________________________
> VNC-List mailing list
> VNC-List "at" realvnc.com
> http://www.realvnc.com/mailman/listinfo/vnc-list