Public bug reported:

I have installed Ubuntu Server 17.10.  At request from a colleague I
then tried to install ubuntu-desktop and enable screen sharing.
However, this did not work as expected.  When trying to enable screen
sharing (same goes for file sharing), the enable button just jumps
straight back to disabled when toggling it.  I assumed this had
something to do with the fact that the "networks" list at the bottom of
the sharing dialog was empty. This appears in the syslog when trying to
toggle:

Nov 20 11:31:06 bcubuntu3 gnome-control-c[1054]: Failed to enable
service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs:
Sharing cannot be enabled on this network, status is '0'

This computer has only a single wired network connection (no wifi).
This connection shows in the system menu as "Wired unmanaged" which
seems to be the reason that it doesn't show up in the sharing dialogs.

As a workaround, I tried the following things:

1. Change "managed=false" to "managed=true" in 
/etc/NetworkManager/NetworkManager.conf as suggested in 
https://askubuntu.com/a/2905
2. Touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf as 
suggested in 
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1676547
3. Change renderer to NetworkManager in /etc/netplan/01-netcfg.yaml

1 and 2 was not enough to get NetworkManager to manage the wired
interface, but 3, possibly together with one or both of the previous
steps did the trick.

When I finally got NetworkManager to manage the wired connection, it did
show up in the sharing dialogs, and I was able to enable screen sharing.
However, it would seem reasonable to be able to enable sharing even on
unmanaged interfaces by some mechanism, especially since unmanaged
interfaces seem to be the norm these days.

~$ lsb_release -rd
Description:    Ubuntu 17.10
Release:        17.10

gnome-control-center:
  Installed: 1:3.26.1-0ubuntu5
  Candidate: 1:3.26.1-0ubuntu5
  Version table:
 *** 1:3.26.1-0ubuntu5 500
        500 http://se.archive.ubuntu.com/ubuntu artful-updates/main amd64 
Packages
        100 /var/lib/dpkg/status
     1:3.26.1-0ubuntu4 500
        500 http://se.archive.ubuntu.com/ubuntu artful/main amd64 Packages

** Affects: gnome-control-center (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1733322

Title:
  Unable to enable file or screen sharing with unmanaged network
  connection

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1733322/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to