get current session with VNC


I am trying to get the physical running session (desktop 0) on an opensuse 10.3 with VNC client.

I succeed to get the session :1 or :2 but the :0 session doesn’t works.

My xorg.conf is configured like that :

Section "ServerLayout"
    Identifier     "Layout[all]"
    Screen      0  "Screen0" 0 0
    Option         "Clone" "off"
    Option         "VNC" "9 2"
Section "Module"
    Load           "vnc"
Section "Device"
    Identifier     "Device[0]"
    Driver         "nvidia"
    VendorName     "VESA"
    BoardName      "Framebuffer Graphics"
    Option         "SecurityTypes" "VncAuth"
    Option         "usevnc" "yes"
    Option         "rfbauth" "/root/.vnc/passwd"
    Screen          0

the “/root/.vnc/passwd” file is populated with the vncpasswd command.

My X server is running under root user :

root     13125  1.0  1.6 529952 67632 tty7     SLs+ 11:57   0:34 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-OSp2CU

the 5900 TCP port is open and ther isn’t any firewall :

tcp        0      0  *               LISTEN      13125/X

but I allways get this error log message in the kdm log file :

Wed May 13 12:56:46 2009
 Connections: accepted:
 SConnection: Client needs protocol version 3.4
 SConnection: Client uses unofficial protocol version 3.4
 SConnection: Assuming compatibility with version 3.3

Wed May 13 12:56:49 2009
 SSecurityFactoryStandard: neither Password nor PasswordFile params set
 SConnection: AuthFailureException: No password configured for VNC Auth
 Connections: closed: (No password configured for VNC

For sure the vncpasswd is populated and the Xorg conf point correctly the auth file, so i don’t understand where i am wrong.

any help ?


Hi there John, this worked for me…

Solution discussed here:
vnc in opensuse 11.1 (and probably 11.0) -

Which pointed to here:
HOWTO: Setup x11vnc as krfb alternative. [Archive] - Ubuntu Forums

And for further info on x11vnc:
x11vnc: a VNC server for real X displays