I've a strange behavior for Gnome screen sharing feature (Vino). I'm not sure what is wrong but sometimes it works flawlessly but after some time (i.e. 2 hours after it works) it doesn't work anymore. I haven't found out what might be the issue. Sometimes it helps to disable screen sharing and enable it again, sometimes I have to change connection to prompt and than back to password protected session. I can't figure out what might be the issue here or how to overcome it. When it happens I get from my Windows machine "The connection was closed remotely".
As an alternative, it would help me greatly if I could make it work/enable it via SSH; i.e. I first connect via SSH, enable it and then connect using VNC viewer, but I can't get this working either. I disabled screen sharing in gnome, and run manually /usr/lib/vino/vino-server
with these settings:
org.gnome.Vino prompt-enabled false
org.gnome.Vino require-encryption false
org.gnome.Vino use-alternative-port false
org.gnome.Vino disable-background false
org.gnome.Vino disable-xdamage false
org.gnome.Vino alternative-port uint16 5900
org.gnome.Vino icon-visibility 'client'
org.gnome.Vino authentication-methods ['none']
org.gnome.Vino network-interface ''
org.gnome.Vino notify-on-connect true
org.gnome.Vino mailto ''
org.gnome.Vino lock-screen-on-disconnect false
org.gnome.Vino use-upnp false
org.gnome.Vino vnc-password 'keyring'
org.gnome.Vino view-only false
I get the message on Ubuntu desktop that remote PC is controlling screen, but on my Windows machine I see just black screen.
Could you please help me with this? I'm sure that I'm doing something wrong but don't know what.