get current session with VNC

Hello,

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"
...]
EndSection
Section "Module"
...]
    Load           "vnc"
EndSection
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
EndSection


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 0.0.0.0:5900            0.0.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: 192.168.240.240::1222
 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: 192.168.240.240::1222 (No password configured for VNC
              Auth)

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 ?

John

Hi there John, this worked for me…

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

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