I'm running ubuntu 8.04 and x11vnc 0.9.3. I'm having trouble getting it running.
When I run "x11vnc" with no arguments, it tries to open :0 but fails:
08/12/2008 20:51:56 *** XOpenDisplay failed (:0)
*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
When I run "x11vnc -create" the server seems to start properly.
The VNC desktop is: desktop:0
However, when I connect to it with the windows realvnc viewer I get this server error:
08/12/2008 20:54:22 Got connection from client 10.11.12.254
08/12/2008 20:54:22 other clients:
08/12/2008 20:54:22 wait_for_client: got client
08/12/2008 20:54:22 wait_for_client: running: env X11VNC_SKIP_DISPLAY='' /bin/sh /tmp/x11vnc-find_display.CgbF4Q
08/12/2008 20:54:23 wait_for_client: find display cmd failed
08/12/2008 20:54:23 wait_for_client: FINDCREATEDISPLAY cmd: /bin/sh /tmp/x11vnc-find_display.CgbF4Q Xvfb
trying N=20 ...
08/12/2008 20:54:23 wait_for_client: read failed: /bin/sh /tmp/x11vnc-find_display.CgbF4Q Xvfb
08/12/2008 20:54:23 fgets: Bad file descriptor
The viewer gives this error:
read: Connection reset by peer (10054)
Do you wish to attempt to reconnect to shwick.com:0?
I'm not sure why this happens. I also tried starting the server with sudo- it gives the same error.
I'm pleased that the -listen option works, that's why I switched to x11vnc in the first place. vnc4server doesn't have the ability to listen on a specific interface.