When trying to enable "Screen Sharing" under the "Sharing" section of the system settings I can click on the "ON/OFF" slider but it will not stay set to "ON". I can set the "Sharing" slider to "ON" and the "Remote Login" slider to "ON" but not the "Screen Sharing" one. Am I missing something?
Running Ubuntu 18.04.1 LTS and have attempted this both on GNOME on xorg and GNOME Flashback
Best Answer
This happened to me, here is how I corrected it.
My network showed "wired-unmanaged"; to correct this, I had to do the following:
cd /etc/NetworkManager
NetworkManager.conf
toNetworkManager.orig
(as a backup)sudo vi NetworkManager.conf
Change
managed=false
tomanaged=true
New file looks like this:
sudo service network-manager restart
cd /etc/netplan
sudo vi 50-cloud-init.yaml
Add this line just below
network:
renderer: NetworkManager
New file looks similar to this (ensure the
renderer
line is indented as shown):sudo netplan apply
Settings
»Sharing
»Screen Sharing
Screen Sharing
toON
Networks
(bottom of dialog), toggle thoseON
as wellCommands
If all you're looking for is some terminal commands, and you haven't made any manual changes to the files mentioned in the instructions above, running the commands below should take care of the file modifications:
After you run these commands, refer to the final step above to enable screen sharing.