public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom H <tomh0665@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
Date: Wed, 11 Mar 2015 18:11:14 -0400	[thread overview]
Message-ID: <CAOdo=Sy7OyG0FKf2UyE4m4QbtwFVW6BB0ptvGdgFM1NzLLwRrw@mail.gmail.com> (raw)
In-Reply-To: <1717438.lgrjPnUM43@navi>

On Wed, Mar 11, 2015 at 5:18 PM, Fernando Rodriguez
<frodriguez.developer@outlook.com> wrote:
> On Wednesday, March 11, 2015 4:15:53 PM Tom H wrote:
>>
>> I've never used nmcli except to get ip information (see below) but
>> setting up NM without a gui is simple.
>>
>> This is my home wifi setup:
>>
>> # cat /etc/NetworkManager/system-connections/thsky
>> [connection]
>> id=thsky
>> uuid=e03d75e4-043a-4276-bf03-3995270ec891
>> type=802-11-wireless
>>
>> [802-11-wireless]
>> ssid=myssidname
>> mode=infrastructure
>> security=802-11-wireless-security
>>
>> [802-11-wireless-security]
>> key-mgmt=wpa-psk
>> psk=myssidpassword
>>
>> [ipv4]
>> method=manual
>> address1=192.168.1.11/24,192.168.1.1
>> dns=192.168.1.111
>>
>> [ipv6]
>> method=link-local
>
> Did you find that documented somewhere or did you use an UI to create the file
> originally? What about when you need one of the many features that this simple
> example doesn't cover (like permissions)? what is the guid? It is hard.

I first started creating these connections by reading a page on
freedesktop.org that had the same info as what you now get with "man
nm-settings". The latter might even have existed at the time...

I haven't tested this in a while but in the past you needed one of id and uuid.

The uuid is easily generated with "uuidgen".


> When I started using NetworkManager I had hell trying to modify that file
> manually because plasma-nm ask for root password when modifying system wide
> connections but it doesn't save the changes (the solution was to run nm-
> connection-editor manually as root). The same applies to nmtui and it only
> covers a few options. I don't remember exactly what needed to be changed in
> the file but it wasn't intuitive.

There's a famous rant by Linus about having to provide the root
password in order to join a network.

I've never used KDE so I have no idea about which gui applet to use
and how/why settings are saved and I've never used nmtui but I suspect
(unless it was a specific NM bug at the time) that it was a problem
with the polkit settings like Linus' problem.


      reply	other threads:[~2015-03-11 22:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11  9:19 [gentoo-user] Network manager [ control of wireless and wired interafaces] German
2015-03-11  9:48 ` Fernando Rodriguez
2015-03-11 11:15   ` Neil Bothwick
2015-03-11 11:40     ` German
2015-03-11 11:52       ` Alan McKinnon
2015-03-11 12:03         ` German
2015-03-11 12:12           ` Paul Klos
2015-03-11 12:14             ` German
2015-03-11 12:38               ` Neil Bothwick
2015-03-11 13:16                 ` German
2015-03-11 14:40                   ` Neil Bothwick
2015-03-11 18:35                   ` Jc García
2015-03-11 18:51                     ` Jc García
2015-03-11 19:27                     ` German
2015-03-11 21:46                       ` Tom H
2015-03-11 20:15                     ` Tom H
2015-03-11 21:18                       ` Fernando Rodriguez
2015-03-11 22:11                         ` Tom H [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOdo=Sy7OyG0FKf2UyE4m4QbtwFVW6BB0ptvGdgFM1NzLLwRrw@mail.gmail.com' \
    --to=tomh0665@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox