This is an ancient thread, but I ran into something with openSUSE-11.1 and x11vnc earlier today (over 1 year later) that has me a bit puzzled.
Typically, my method to open a remote VNC session from Linux PC to Linux PC is to open two terminals on the PC where I am sitting, and type:
ssh -t -L 5900:localhost:5900 remote-username@remote-pc-ip-address 'x11vnc -localhost -nolookup -nopw -display :0'
where ‘remote-username’ is the username on the remote PC, and ‘remote-pc-ip-address’ is the IP address of the remote PC.
Then I type in the 2nd terminal in front of me, and it reads the vnc output that is being streamed to my desktop via the ssh pipe:
vncviewer -encodings "tight copyrect hextile" localhost:0
and the connection ‘just works’. At least it has worked for me in openSUSE-10.1, 10.2, 10.3, 11.0, 11.1, 11.2, and 11.3 with KDE. I recall vaguely during the development of openSUSE-11.1 there was a hiccup with KDE (some sort of permissions issue ?? ) but it was solved before the final openSUSE release (I think, … or was there a work around I applied that I can’t recall ?? ).
Anyway, I installed the old openSUSE-11.1 on my wife’s old Fujitsu-Siemens Amilo 7400M laptop, and much to my surprise, **the above did not work ! **
**Surprisingly what DID work **was to type ‘x11vnc’ on the laptop (which is acting as the remote PC), and then on my desktop type:
vncviewer -encodings "tight copyrect hextile" remote-pc-ip-address:0
where ‘remote-pc-ip-address’ is the laptop’s IP address. Of course that is incredibly insecure as anyone can connect, but what is IMPORTANT here is that works.
Now if I open a terminal on my main PC, and ssh to the laptop, and I run x11vnc, and then try the above
vncviewer -encodings "tight copyrect hextile" remote-pc-ip-address:0
it does NOT work. ie x11vnc MUST be run by a local user and NOT by a remote user !
ie it makes me suspicious there has to be some sort of permissions problem with GNOME on openSUSE-11.1 that was solved with KDE but not with Gnome.
Or did I forget some work around I applied to KDE on 11.1 a long time back ?