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.
terminal
, before manually starting vino-server, dosystemctl status
and look for any services that failed to start. – heynnema Aug 14 '17 at 14:43So now my question is, how can I auto start vino-server after reboot without needing to login locally first? Added /usr/lib/vino/vino-server to rc.local, does not start after reboot.
– Ookla Aug 15 '17 at 14:11/etc/rc.local
(gksudo gedit /etc/rc.local), remove it from Startup Applications, and reboot. If that works for you, let me know, and I'll put it into an quickie answer that you can accept. Thanks. – heynnema Aug 15 '17 at 14:17