public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Network manager [ control of wireless and wired interafaces]
@ 2015-03-11  9:19 German
  2015-03-11  9:48 ` Fernando Rodriguez
  0 siblings, 1 reply; 18+ messages in thread
From: German @ 2015-03-11  9:19 UTC (permalink / raw
  To: gentoo-user

Hi. I was said that I need network manager to control my interfaces. What package should I emerge? I am in console mode. Is that ncurses based or command line? Any other pointers on how this can be configured are welcome. Thanks

-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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
  0 siblings, 1 reply; 18+ messages in thread
From: Fernando Rodriguez @ 2015-03-11  9:48 UTC (permalink / raw
  To: gentoo-user

On Wednesday, March 11, 2015 5:19:32 AM German wrote:
> Hi. I was said that I need network manager to control my interfaces. What 
package should I emerge? I am in console mode. Is that ncurses based or 
command line? Any other pointers on how this can be configured are welcome. 
Thanks
> 
> 

net-misc/networkmanager

It comes with CLI tools but it's usually used with a frontend GUI. See 
http://wiki.gentoo.org/wiki/NetworkManager#NetworkManager_GUI_bits_in_GTK

For KDE I use kde-misc/plasma-nm. If you don't have a desktop it propably 
makes more sense to just use wpa_supplicant directly.

If you use systemd net-misc/netctl has a nice curses UI but I've only tried on 
Arch.

-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11  9:48 ` Fernando Rodriguez
@ 2015-03-11 11:15   ` Neil Bothwick
  2015-03-11 11:40     ` German
  0 siblings, 1 reply; 18+ messages in thread
From: Neil Bothwick @ 2015-03-11 11:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

On Wed, 11 Mar 2015 05:48:08 -0400, Fernando Rodriguez wrote:

> On Wednesday, March 11, 2015 5:19:32 AM German wrote:
> > Hi. I was said that I need network manager to control my interfaces.
> > What   
> package should I emerge? I am in console mode. Is that ncurses based or 
> command line? Any other pointers on how this can be configured are
> welcome. Thanks
> > 
> >   
> 
> net-misc/networkmanager
> 
> It comes with CLI tools but it's usually used with a frontend GUI. See 
> http://wiki.gentoo.org/wiki/NetworkManager#NetworkManager_GUI_bits_in_GTK
> 
> For KDE I use kde-misc/plasma-nm. If you don't have a desktop it
> propably makes more sense to just use wpa_supplicant directly.

wpa_supplicant doesn't handle switching between wored and wireless
interfaces, which is why I suggest a network manager. That could be
NetworkManager, but you could equally use Wicd. Both are in portage.

Alternatively, you could just set up the two interfacs
in /etc/conf.d/net and switch between them by starting and
stopping /etc/init.d/net.{eth0,wlan0}.

It depends on how automatic you want it.


-- 
Neil Bothwick

Therapy is expensive, popping bubble wrap is cheap! You choose.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 11:15   ` Neil Bothwick
@ 2015-03-11 11:40     ` German
  2015-03-11 11:52       ` Alan McKinnon
  0 siblings, 1 reply; 18+ messages in thread
From: German @ 2015-03-11 11:40 UTC (permalink / raw
  To: gentoo-user





On Wed, 11 Mar 2015 11:15:06 +0000
Neil Bothwick <neil@digimed.co.uk> wrote:

> On Wed, 11 Mar 2015 05:48:08 -0400, Fernando Rodriguez wrote:
> 
> > On Wednesday, March 11, 2015 5:19:32 AM German wrote:
> > > Hi. I was said that I need network manager to control my interfaces.
> > > What   
> > package should I emerge? I am in console mode. Is that ncurses based or 
> > command line? Any other pointers on how this can be configured are
> > welcome. Thanks
> > > 
> > >   
> > 
> > net-misc/networkmanager
> > 
> > It comes with CLI tools but it's usually used with a frontend GUI. See 
> > http://wiki.gentoo.org/wiki/NetworkManager#NetworkManager_GUI_bits_in_GTK
> > 
> > For KDE I use kde-misc/plasma-nm. If you don't have a desktop it
> > propably makes more sense to just use wpa_supplicant directly.
> 
> wpa_supplicant doesn't handle switching between wored and wireless
> interfaces, which is why I suggest a network manager. That could be
> NetworkManager, but you could equally use Wicd. Both are in portage.
> 
> Alternatively, you could just set up the two interfacs
> in /etc/conf.d/net and switch between them by starting and
> stopping /etc/init.d/net.{eth0,wlan0}.
> 
> It depends on how automatic you want it.

Ok, I tried to emerge networkmanger and it tries to pull a bunch of dependencies which I do not need, e.g. x11-proto, x11-libs. I already set use flag to -X because for now I will be happy with console mode, but it still tries to pull them. How do I tell portage not emerge unneeded dependencies? Thanks

> 
> 
> -- 
> Neil Bothwick
> 
> Therapy is expensive, popping bubble wrap is cheap! You choose.


-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 11:40     ` German
@ 2015-03-11 11:52       ` Alan McKinnon
  2015-03-11 12:03         ` German
  0 siblings, 1 reply; 18+ messages in thread
From: Alan McKinnon @ 2015-03-11 11:52 UTC (permalink / raw
  To: gentoo-user

On 11/03/2015 13:40, German wrote:
>> wpa_supplicant doesn't handle switching between wored and wireless
>> > interfaces, which is why I suggest a network manager. That could be
>> > NetworkManager, but you could equally use Wicd. Both are in portage.
>> > 
>> > Alternatively, you could just set up the two interfacs
>> > in /etc/conf.d/net and switch between them by starting and
>> > stopping /etc/init.d/net.{eth0,wlan0}.
>> > 
>> > It depends on how automatic you want it.
> Ok, I tried to emerge networkmanger and it tries to pull a bunch of dependencies which I do not need, e.g. x11-proto, x11-libs. I already set use flag to -X because for now I will be happy with console mode, but it still tries to pull them. How do I tell portage not emerge unneeded dependencies? Thanks
> 


You tell portage to not pull in unneeded dependencies by setting the
appropriate USE flags. The people you are asking for assistance will
determine this by reading the ebuild, or by using the appropriate
portage tools to figure it out. You should start learning these skills
yourself so you can answer your own questions.

1. Run eix-e networkmanager. There is nothing there related to x11.

2. Read the ebuild for networkmanager-1.0.0. There is nothing in there
related to x11, so that's not it.

3. Run emerge -pvt networkmanager. This will give an indented view of
what is pulling in what. Find the entries of x11-proto etc and see what
is pulling them in. Investigate those packages to disable x11.



-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 11:52       ` Alan McKinnon
@ 2015-03-11 12:03         ` German
  2015-03-11 12:12           ` Paul Klos
  0 siblings, 1 reply; 18+ messages in thread
From: German @ 2015-03-11 12:03 UTC (permalink / raw
  To: gentoo-user

On Wed, 11 Mar 2015 13:52:02 +0200
Alan McKinnon <alan.mckinnon@gmail.com> wrote:

> On 11/03/2015 13:40, German wrote:
> >> wpa_supplicant doesn't handle switching between wored and wireless
> >> > interfaces, which is why I suggest a network manager. That could be
> >> > NetworkManager, but you could equally use Wicd. Both are in portage.
> >> > 
> >> > Alternatively, you could just set up the two interfacs
> >> > in /etc/conf.d/net and switch between them by starting and
> >> > stopping /etc/init.d/net.{eth0,wlan0}.
> >> > 
> >> > It depends on how automatic you want it.
> > Ok, I tried to emerge networkmanger and it tries to pull a bunch of dependencies which I do not need, e.g. x11-proto, x11-libs. I already set use flag to -X because for now I will be happy with console mode, but it still tries to pull them. How do I tell portage not emerge unneeded dependencies? Thanks
> > 
> 
> 
> You tell portage to not pull in unneeded dependencies by setting the
> appropriate USE flags. The people you are asking for assistance will
> determine this by reading the ebuild, or by using the appropriate
> portage tools to figure it out. You should start learning these skills
> yourself so you can answer your own questions.
> 
> 1. Run eix-e networkmanager. There is nothing there related to x11.

eix-e: command not found. What to do?


> 
> 2. Read the ebuild for networkmanager-1.0.0. There is nothing in there
> related to x11, so that's not it.
> 
> 3. Run emerge -pvt networkmanager. This will give an indented view of
> what is pulling in what. Find the entries of x11-proto etc and see what
> is pulling them in. Investigate those packages to disable x11.
> 
> 
> 
> -- 
> Alan McKinnon
> alan.mckinnon@gmail.com
> 
> 


-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 12:03         ` German
@ 2015-03-11 12:12           ` Paul Klos
  2015-03-11 12:14             ` German
  0 siblings, 1 reply; 18+ messages in thread
From: Paul Klos @ 2015-03-11 12:12 UTC (permalink / raw
  To: gentoo-user

Op woensdag 11 maart 2015 08:03:06 schreef German:
> eix-e: command not found. What to do?

Insert a space between "eix" and "-e".



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 12:12           ` Paul Klos
@ 2015-03-11 12:14             ` German
  2015-03-11 12:38               ` Neil Bothwick
  0 siblings, 1 reply; 18+ messages in thread
From: German @ 2015-03-11 12:14 UTC (permalink / raw
  To: gentoo-user

On Wed, 11 Mar 2015 13:12:04 +0100
Paul Klos <gentoo@klos2day.nl> wrote:

> Op woensdag 11 maart 2015 08:03:06 schreef German:
> > eix-e: command not found. What to do?
> 
> Insert a space between "eix" and "-e".
> 

Same result - command not found
> 


-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 12:14             ` German
@ 2015-03-11 12:38               ` Neil Bothwick
  2015-03-11 13:16                 ` German
  0 siblings, 1 reply; 18+ messages in thread
From: Neil Bothwick @ 2015-03-11 12:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

On Wed, 11 Mar 2015 08:14:13 -0400, German wrote:

> > > eix-e: command not found. What to do?  
> > 
> > Insert a space between "eix" and "-e".
> >   
> 
> Same result - command not found

emerge eix, then run eix-update as root.


-- 
Neil Bothwick

Sarchasm : The gulf between the author of sarcastic wit and the person
who doesn't get it.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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
  0 siblings, 2 replies; 18+ messages in thread
From: German @ 2015-03-11 13:16 UTC (permalink / raw
  To: gentoo-user

On Wed, 11 Mar 2015 12:38:08 +0000
Neil Bothwick <neil@digimed.co.uk> wrote:

> On Wed, 11 Mar 2015 08:14:13 -0400, German wrote:
> 
> > > > eix-e: command not found. What to do?  
> > > 
> > > Insert a space between "eix" and "-e".
> > >   
> > 
> > Same result - command not found
> 
> emerge eix, then run eix-update as root.

Ok, done that. Indeed there are anything related to x11-lib, but when I do emerge --ask net-misc/networkmanager I see x11-proto and x11-libs to be emerged. Use variable is set to "-X". Anyone can shed a light on this? How can I emerge networkmanager without X dependencies? Thanks so much
> 
> 
> -- 
> Neil Bothwick
> 
> Sarchasm : The gulf between the author of sarcastic wit and the person
> who doesn't get it.


-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 13:16                 ` German
@ 2015-03-11 14:40                   ` Neil Bothwick
  2015-03-11 18:35                   ` Jc García
  1 sibling, 0 replies; 18+ messages in thread
From: Neil Bothwick @ 2015-03-11 14:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

On Wed, 11 Mar 2015 09:16:04 -0400, German wrote:

> > emerge eix, then run eix-update as root.  
> 
> Ok, done that. Indeed there are anything related to x11-lib, but when I
> do emerge --ask net-misc/networkmanager I see x11-proto and x11-libs to
> be emerged. Use variable is set to "-X". Anyone can shed a light on
> this? How can I emerge networkmanager without X dependencies?

Alan's already told you what to do, use the -tree option with emerge to
see what pulls in the x11 packages. Then check the USE flags for them.


-- 
Neil Bothwick

A man needs a mistress - just to break the monogamy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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
                                       ` (2 more replies)
  1 sibling, 3 replies; 18+ messages in thread
From: Jc García @ 2015-03-11 18:35 UTC (permalink / raw
  To: gentoo-user

2015-03-11 7:16 GMT-06:00 German <gentgerman@gmail.com>:
> On Wed, 11 Mar 2015 12:38:08 +0000
> Neil Bothwick <neil@digimed.co.uk> wrote:
>
>> On Wed, 11 Mar 2015 08:14:13 -0400, German wrote:
>>
>> > > > eix-e: command not found. What to do?
>> > >
>> > > Insert a space between "eix" and "-e".
>> > >
>> >
>> > Same result - command not found
>>
>> emerge eix, then run eix-update as root.
>
> Ok, done that. Indeed there are anything related to x11-lib, but when I do emerge --ask net-misc/networkmanager I see x11-proto and x11-libs to be emerged. Use variable is set to "-X". Anyone can shed a light on this? How can I emerge networkmanager without X dependencies? Thanks so much

If you want an easy way of configuring wirless without GUI use wicd
and the wicd curses client(enabled via USE flag), NetworkManager is
simpler to use with a GUI, the CLI client is not so easy to use, but
if you want to, make sure none of the GUI related use flags are set
e.g. gtk qt X emerge it, and then read and search info(man, google)
about nmcli.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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 20:15                     ` Tom H
  2 siblings, 0 replies; 18+ messages in thread
From: Jc García @ 2015-03-11 18:51 UTC (permalink / raw
  To: gentoo-user

2015-03-11 12:35 GMT-06:00 Jc García <jyo.garcia@gmail.com>:

>  search info(man, google) about nmcli.
also nmtui, it seems easier to use, I hadn't looked at the list of
NetworkManager tools in a while, but still the wicd cli interface is
easier from what I remember.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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
  2 siblings, 1 reply; 18+ messages in thread
From: German @ 2015-03-11 19:27 UTC (permalink / raw
  To: gentoo-user

On Wed, 11 Mar 2015 12:35:26 -0600
Jc García <jyo.garcia@gmail.com> wrote:

> 2015-03-11 7:16 GMT-06:00 German <gentgerman@gmail.com>:
> > On Wed, 11 Mar 2015 12:38:08 +0000
> > Neil Bothwick <neil@digimed.co.uk> wrote:
> >
> >> On Wed, 11 Mar 2015 08:14:13 -0400, German wrote:
> >>
> >> > > > eix-e: command not found. What to do?
> >> > >
> >> > > Insert a space between "eix" and "-e".
> >> > >
> >> >
> >> > Same result - command not found
> >>
> >> emerge eix, then run eix-update as root.
> >
> > Ok, done that. Indeed there are anything related to x11-lib, but when I do emerge --ask net-misc/networkmanager I see x11-proto and x11-libs to be emerged. Use variable is set to "-X". Anyone can shed a light on this? How can I emerge networkmanager without X dependencies? Thanks so much
> 
> If you want an easy way of configuring wirless without GUI use wicd
> and the wicd curses client(enabled via USE flag), NetworkManager is
> simpler to use with a GUI, the CLI client is not so easy to use, but
> if you want to, make sure none of the GUI related use flags are set
> e.g. gtk qt X emerge it, and then read and search info(man, google)
> about nmcli.

Did you hear about CLI wi-fi tool iw? I am testing it right now, but seem cannot figure out how to use it
> 


-- 
German <gentgerman@gmail.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  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 20:15                     ` Tom H
  2015-03-11 21:18                       ` Fernando Rodriguez
  2 siblings, 1 reply; 18+ messages in thread
From: Tom H @ 2015-03-11 20:15 UTC (permalink / raw
  To: Gentoo User

On Wed, Mar 11, 2015 at 2:35 PM, Jc García <jyo.garcia@gmail.com> wrote:
>
> If you want an easy way of configuring wirless without GUI use wicd
> and the wicd curses client(enabled via USE flag), NetworkManager is
> simpler to use with a GUI, the CLI client is not so easy to use, but
> if you want to, make sure none of the GUI related use flags are set
> e.g. gtk qt X emerge it, and then read and search info(man, google)
> about nmcli.

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

If you want to use dhcp, you simply replace the three lines in the
"[ipv4]" stanza with "method=auto".

I have a script that uses nmcli and does the following:

# nmcli -f ip4 -m tabular -t c s id $(nmcli -t -f name c s --active)
IP4:ip = 192.168.1.11/24, gw = 192.168.1.1::192.168.1.111:--:--

"nmcli -t -f name c s --active" outputs the name of the active
connection, "thsky".

"nmcli -f ip4 c s id thsky" ouputs its ipv4 settings.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 20:15                     ` Tom H
@ 2015-03-11 21:18                       ` Fernando Rodriguez
  2015-03-11 22:11                         ` Tom H
  0 siblings, 1 reply; 18+ messages in thread
From: Fernando Rodriguez @ 2015-03-11 21:18 UTC (permalink / raw
  To: gentoo-user

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.
 
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.

-- 
Fernando Rodriguez



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 19:27                     ` German
@ 2015-03-11 21:46                       ` Tom H
  0 siblings, 0 replies; 18+ messages in thread
From: Tom H @ 2015-03-11 21:46 UTC (permalink / raw
  To: Gentoo User

On Wed, Mar 11, 2015 at 3:27 PM, German <gentgerman@gmail.com> wrote:
>
> Did you hear about CLI wi-fi tool iw? I am testing it right now,
> but seem cannot figure out how to use it

iw is OK to set up an unencrypted or wep connection but you need
wpa_supplicant for a wpa connection; and you need either ip or a dhcp
client for the actual ip setup.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]
  2015-03-11 21:18                       ` Fernando Rodriguez
@ 2015-03-11 22:11                         ` Tom H
  0 siblings, 0 replies; 18+ messages in thread
From: Tom H @ 2015-03-11 22:11 UTC (permalink / raw
  To: Gentoo User

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.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-03-11 22:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox