1 |
On Wednesday, March 11, 2015 4:15:53 PM Tom H wrote: |
2 |
> I've never used nmcli except to get ip information (see below) but |
3 |
> setting up NM without a gui is simple. |
4 |
> |
5 |
> This is my home wifi setup: |
6 |
> |
7 |
> # cat /etc/NetworkManager/system-connections/thsky |
8 |
> [connection] |
9 |
> id=thsky |
10 |
> uuid=e03d75e4-043a-4276-bf03-3995270ec891 |
11 |
> type=802-11-wireless |
12 |
> |
13 |
> [802-11-wireless] |
14 |
> ssid=myssidname |
15 |
> mode=infrastructure |
16 |
> security=802-11-wireless-security |
17 |
> |
18 |
> [802-11-wireless-security] |
19 |
> key-mgmt=wpa-psk |
20 |
> psk=myssidpassword |
21 |
> |
22 |
> [ipv4] |
23 |
> method=manual |
24 |
> address1=192.168.1.11/24,192.168.1.1 |
25 |
> dns=192.168.1.111 |
26 |
> |
27 |
> [ipv6] |
28 |
> method=link-local |
29 |
|
30 |
Did you find that documented somewhere or did you use an UI to create the file |
31 |
originally? What about when you need one of the many features that this simple |
32 |
example doesn't cover (like permissions)? what is the guid? It is hard. |
33 |
|
34 |
When I started using NetworkManager I had hell trying to modify that file |
35 |
manually because plasma-nm ask for root password when modifying system wide |
36 |
connections but it doesn't save the changes (the solution was to run nm- |
37 |
connection-editor manually as root). The same applies to nmtui and it only |
38 |
covers a few options. I don't remember exactly what needed to be changed in |
39 |
the file but it wasn't intuitive. |
40 |
|
41 |
-- |
42 |
Fernando Rodriguez |