When I'm trying to connect to x11vnc server started on Ubuntu 16.10
x11vnc
The "Screen Sharing" app on on OS X 10.11.6 just hangs.
How can I fix this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityWhen I'm trying to connect to x11vnc server started on Ubuntu 16.10
x11vnc
The "Screen Sharing" app on on OS X 10.11.6 just hangs.
How can I fix this?
If you want to connect to x11vnc server using "Screen Sharing" app on OS X, you need to tweak the x11vnc starting command:
x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -passwd 123456
-ncache
-passwd
I used the following to set up connections to remote systems, even those using slow internet.
x11vnc -rfbport 5900 -bg -o ~/.vnc/log -rfbauth ~/.vnc/passwd -ncache 0 -speeds modem -forever -shared -ultrafilexfer -skip_lockkeys -desktop <RemoteComputer>
This starts a VNC daemon that:
You can set an encrypted password via
x11vnc -storepasswd
And stop the server via a simple kill signal (-SIGTERM). Enjoy!
Building off prior answer, but too long for a comment. In MacOS Big Sur 11.1, I get better performance with this:
x11vnc -display :0 -noxrecord -forever -passwd 123456
By removing -noxdamage
, I see both a decrease in drawing latency and far fewer tears when resizing or minimizing windows in x11. Removing -noxfixes
make a much better experience as well, because the cursor displays properly - including when the x11 cursor changes shape (e.g. to resize a window). This is very handy, otherwise you will be constantly guessing if your cursor is properly over the reside selection box. No noticeable difference (to me) from removing noxrecord
, so I left it in
While the -ncache
option does successfully connect, I was unable to mix ncache
and multiple desktop windows. This appears to be an unexpected artifact of how desktop windows are implemented (in Y-coords, windows are "under" the main one) that conflicts with how ncache works (by also using duplicate windows under the main one).