PDA

View Full Version : [ubuntu] x11vnc 0.9.9 - no mouse clicks or key clicks



juvan
April 28th, 2010, 05:12 AM
I have been trying to get vnc working from boot up in Ubuntu 9.10 and I have almost succeeded by following instructions in:

http://flukylogs.blogspot.com/2009/11/setting-up-vnc-for-gdm-login.html
http://www.karlrunge.com/x11vnc/faq.html#faq-display-manager

and a few other places. Default Ubuntu 9.10 distro seems to come with an older x11vnc and to get around the missing "KillInitClients=false" option in gdmI had to fetch the latest x11vnc and compile that.

Now the vnc client stays alive in the remote end, but I do not get any mouse our keyboard clicks going through. Mouse cursor moves OK, and movement is seen also seen by the server side, but clicks are not recorded.

By googling around, I could see some slightly related issues being reported in Debian a while ago, and it was suggested that option -noxdamage might resolve the issue. In my case that did not have any impact.

I'm starting the x11vnc in /etc/gdm/Init/Default with line: /usr/local/bin/x11vnc -nap -bg -many -repeat -noxdamage -clear_keys -rfbauth /etc/x11vnc.pass -rfbport 5900

Keys worked quite well with the older x11vnc (which had the problem of dying after login from gdm)

I'm using TightVNC client on the Win7 side in case that matters.

Any ideas how to fix it?

krunge
April 28th, 2010, 05:29 AM
I think you are seeing this problem:

http://www.karlrunge.com/x11vnc/faq.html#faq-missing-xtest
i.e. missing 'libxtst-dev' build package or something like that.

juvan
April 28th, 2010, 06:24 AM
Yes, that would seem a very likely explanation. I somehow missed that when I was browsing the faq last night (must have been too tired?)

I'll try to rebuild when I get back home.

juvan
April 28th, 2010, 03:22 PM
Yes, that was indeed the problem. I compiled it again with libxtst-dev and everything seems to be working just fine.

Thanks for the help.