[Pkg-utopia-maintainers] Bug#637769: network-manager: please provide an example system-connections file

Luca Capello luca at pca.it
Thu Apr 5 23:57:16 UTC 2012


usertags 637769 + pca.it-communication
thanks

Hi there!

I just found out that this bug got more attention during the last days,
while I was preparing (and testing) the patch below.  I decided to
anyway sent this email because it was ready (I was simply waiting to
come back online, check the Git repository and commit...).

Because of the ongoing discussion on debian-devel@ (thanks to Josselin
and Michal) I discovered that it is actually possible to use
network-manager without the GUI:

  <http://lists.debian.org/1332506635.4294.9.camel@tomoyo>
  <http://lists.debian.org/20120323135014.02ca5696@rincewind.suse.cz>

This bug is tightly-linked to #641902, because ATM there is no way to
create a connection through nmcli.

On Sun, 14 Aug 2011 11:05:06 +0200, Tzafrir Cohen wrote:
> Below is an example system-connection file I used in the recent weeks.
> It seems to be good enough for practically anyhwere, even though it
> only configures wifi (unencrypted, WPA2-psk and WEP).
>
> As implied from the text, including the reference (settings-spec.html)
> in the package would also be nice.

The other option would be to include a fully-commented system-connection
file similar to what wpasupplicant does, with the disadvantage that it
should be manually updated over time:

  <file:///usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz>

OTOH, the reference file (since 0.9 called ref-settings.html despite the
HTML title still says "Network Configuration Setting Specification") is
already shipped by the network-manager-dev package (FWIW not really in a
"standard" location):

  <file:///usr/share/gtk-doc/html/NetworkManager/ref-settings.html>

IMHO the best option would be to include a basic example which explains
the format of system-connection files and directs to the full
network-manager-dev package.

Attached a Git and improved version of your patch, with some notes:

1) I was not able to find 'genuuid' in Debian sid, so I replaced it with
   uuidgen (shipped by the uuid-runtime package).

2) a symlink to /usr/share/gtk-doc/html/NetworkManager/ is created in
   /usr/share/doc/network-manager-dev/html to ease documentation lookup.

On Wed, 04 Apr 2012 17:23:24 +0200, Michael Biebl wrote:
> On 04.04.2012 16:28, Tzafrir Cohen wrote:
>> Update: a simple script to generate simple system-connections entry for
>> a wi-fi connection.
>
> thanks for the script, but I'm a bit uncertain about shipping it system
> wide. People might get used to it and then it's hard to get rid of it
> again. Maybe as example script in /usr/share/doc.

I have not tried Tzafrir's script, but any solution not involving nmcli
still requires root access to /etc/NetworkManager/system-connections/,
thus it is suboptimal.

> That said, we seriously need to grow a
> "nmcli con add" command.

Which, as I wrote at the beginning, is #641902.  Nevertheless, having
better documentation is still useful.

Thx, bye,
Gismo / Luca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-system-connection_wireless-Closes-637769-new-.patch
Type: text/x-diff
Size: 3507 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120406/0ba703b2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120406/0ba703b2/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list