I have 2 machines both running Ubuntu 16.04.3 with the Unity desktop environment.
I enabled Desktop Sharing, and disabled Require Encryption. I am able to connect to and use desktop on Machine-A with TightVNC. Machine-B fails with this message:
...target machine actively refused it.
netstat shows vino-server listening on Machine-A.
Not listening on Machine-B.
I can enable vino-server by running /usr/lib/vino/vino-server and then successfully connect. I need to do this locally. Command does not work over remote SSH session.
The configuration is the same on both machines. Why does vino-server not start on one of them?
Added /usr/lib/vino/vino-server to Startup Applications, vino-server is now starting when I login locally. I tried this before without success. Possibly I entered the path wrong previously.
However, I would like vino-server to auto start without the need of me logging in locally first.
Rebooted and connected via SSH, ran /usr/lib/vino/vino-server and got: Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused Cannot open display:
Added /usr/lib/vino/vino-server to rc.local, no change.