unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* NetworkManager instead of Wicd in ‘%desktop-services’?
@ 2017-07-30 14:50 Ludovic Courtès
  2017-07-30 14:59 ` ng0
                   ` (5 more replies)
  0 siblings, 6 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-07-30 14:50 UTC (permalink / raw)
  To: guix-devel

Hello Guix!

Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?

I’ve given it a try on a GuixSD GNOME installation and it appears to
work well, and it’s obviously well-integrated with GNOME, whereas Wicd
is a bit hidden (one has to know what to look for) and “foreign.”

Thoughts?

Now, as someone who doesn’t use GNOME, I wonder if NM would work well
for me.  Last time I tried it’s CLI was too low-level to be usable, and
I don’t remember seeing a curses interface.  Suggestions?

Thanks,
Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
@ 2017-07-30 14:59 ` ng0
  2017-07-30 15:18 ` Jan Nieuwenhuizen
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 34+ messages in thread
From: ng0 @ 2017-07-30 14:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

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

Ludovic Courtès transcribed 0.6K bytes:
> Hello Guix!
> 
> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
> 
> I’ve given it a try on a GuixSD GNOME installation and it appears to
> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
> is a bit hidden (one has to know what to look for) and “foreign.”
> 
> Thoughts?
> 
> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
> for me.  Last time I tried it’s CLI was too low-level to be usable, and
> I don’t remember seeing a curses interface.  Suggestions?
> 
> Thanks,
> Ludo’.

When I used it with GNOME it was okay.

But as I personally don't really use GNOME and fancy
integration doesn't help me: Don't we have nm-curses? or is
that a separate package?
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
  2017-07-30 14:59 ` ng0
@ 2017-07-30 15:18 ` Jan Nieuwenhuizen
  2017-07-30 18:39   ` NetworkManager instead of Wicd in ???%desktop-services???? Pjotr Prins
  2017-07-31  8:12   ` NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
  2017-07-30 17:25 ` Mark H Weaver
                   ` (3 subsequent siblings)
  5 siblings, 2 replies; 34+ messages in thread
From: Jan Nieuwenhuizen @ 2017-07-30 15:18 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Ludovic Courtès writes:

> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
> for me.  Last time I tried it’s CLI was too low-level to be usable, and
> I don’t remember seeing a curses interface.  Suggestions?

I would welcome some improvement here, or insight on my part.  Since I
moved away from desktop environments, wicd has not not worked for me and
I have been using ifconfig, wpa_supplicant and dhclient manually.  That
has removed my dependency on something like NM and it's apparent
inherent magic...but it's rather painful.

Seems like I don't have a concrete suggestion here, just a feeble wish
to have networking as simple and crisply declaritively configurable as
the rest of GuixSD.

janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
  2017-07-30 14:59 ` ng0
  2017-07-30 15:18 ` Jan Nieuwenhuizen
@ 2017-07-30 17:25 ` Mark H Weaver
  2017-07-31  8:26   ` Ludovic Courtès
                     ` (2 more replies)
  2017-07-30 18:31 ` Efraim Flashner
                   ` (2 subsequent siblings)
  5 siblings, 3 replies; 34+ messages in thread
From: Mark H Weaver @ 2017-07-30 17:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>
> I’ve given it a try on a GuixSD GNOME installation and it appears to
> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
> is a bit hidden (one has to know what to look for) and “foreign.”
>
> Thoughts?

I've been using Network Manager with GNOME for several months at least,
and generally I find it works very well, and reconnects much more
quickly than wicd.

However, there is one annoying bug: every time I reboot the system, the
first 1-3 times it connects to the network, name lookups do not work.  I
always have to manually ask Network Manager to disconnect, and then
reconnect.  Sometimes I have to do this two or three times before name
lookups work.  After I've done this, it works perfectly until the next
reboot.

I looked into this a bit, but haven't yet found the cause.  When name
lookups are failing, /etc/resolv.conf exists and is correctly
configured.  I've tried restarting 'nscd', but it doesn't help.

One caveat: for some time now I've only tested Network Manager with
wired networks.  I've recently been unable to use wireless, because I
had to replace the motherboard in my Thinkpad X200, and haven't yet
gotten around to getting the clip I need to reflash Libreboot.  The
proprietary BIOS refuses to boot with the Atheros wireless card
installed, so I had to remove the card for now.

> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
> for me.  Last time I tried it’s CLI was too low-level to be usable, and
> I don’t remember seeing a curses interface.  Suggestions?

There is a curses interface included with Network Manager.  It's called
'nmtui'.  It's not getting built because it depends on 'newt', which is
not an input to our Network Manager package.

      Mark

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
                   ` (2 preceding siblings ...)
  2017-07-30 17:25 ` Mark H Weaver
@ 2017-07-30 18:31 ` Efraim Flashner
  2017-07-31  1:35 ` Kei Kebreau
  2017-08-04  7:40 ` Chris Marusich
  5 siblings, 0 replies; 34+ messages in thread
From: Efraim Flashner @ 2017-07-30 18:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

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

On Sun, Jul 30, 2017 at 04:50:58PM +0200, Ludovic Courtès wrote:
> Hello Guix!
> 
> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
> 
> I’ve given it a try on a GuixSD GNOME installation and it appears to
> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
> is a bit hidden (one has to know what to look for) and “foreign.”
> 
> Thoughts?
> 
> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
> for me.  Last time I tried it’s CLI was too low-level to be usable, and
> I don’t remember seeing a curses interface.  Suggestions?
> 
> Thanks,
> Ludo’.
> 

For its integration with gnome to me it makes sense to have our gnome
desktop use network manager. I'm currently using connman on my debian
system. I'm not sure I'd really recommend it, but I've found it to be
easier to use than raw command line ifconfig and dhclient.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: NetworkManager instead of Wicd in ???%desktop-services????
  2017-07-30 15:18 ` Jan Nieuwenhuizen
@ 2017-07-30 18:39   ` Pjotr Prins
  2017-07-30 18:52     ` ng0
  2017-07-31  8:12   ` NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
  1 sibling, 1 reply; 34+ messages in thread
From: Pjotr Prins @ 2017-07-30 18:39 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: guix-devel

On Sun, Jul 30, 2017 at 05:18:59PM +0200, Jan Nieuwenhuizen wrote:
> Ludovic Court??s writes:
> 
> > Now, as someone who doesn???t use GNOME, I wonder if NM would work well
> > for me.  Last time I tried it???s CLI was too low-level to be usable, and
> > I don???t remember seeing a curses interface.  Suggestions?
> 
> I would welcome some improvement here, or insight on my part.  Since I
> moved away from desktop environments, wicd has not not worked for me and
> I have been using ifconfig, wpa_supplicant and dhclient manually.  That
> has removed my dependency on something like NM and it's apparent
> inherent magic...but it's rather painful.

I actually prefer doing it this way. wpa_supplicant with multiple
config files is the way when you travel a lot. No confusion between
phone tethering, eduroam and multiple wifi networks. Until these NM
tools start offering profiles... And general connecting is faster too.

Pj.

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

* Re: NetworkManager instead of Wicd in ???%desktop-services????
  2017-07-30 18:39   ` NetworkManager instead of Wicd in ???%desktop-services???? Pjotr Prins
@ 2017-07-30 18:52     ` ng0
  2017-07-31  9:42       ` Pjotr Prins
  0 siblings, 1 reply; 34+ messages in thread
From: ng0 @ 2017-07-30 18:52 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

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

Pjotr Prins transcribed 0.9K bytes:
> On Sun, Jul 30, 2017 at 05:18:59PM +0200, Jan Nieuwenhuizen wrote:
> > Ludovic Court??s writes:
> > 
> > > Now, as someone who doesn???t use GNOME, I wonder if NM would work well
> > > for me.  Last time I tried it???s CLI was too low-level to be usable, and
> > > I don???t remember seeing a curses interface.  Suggestions?
> > 
> > I would welcome some improvement here, or insight on my part.  Since I
> > moved away from desktop environments, wicd has not not worked for me and
> > I have been using ifconfig, wpa_supplicant and dhclient manually.  That
> > has removed my dependency on something like NM and it's apparent
> > inherent magic...but it's rather painful.
> 
> I actually prefer doing it this way. wpa_supplicant with multiple
> config files is the way when you travel a lot. No confusion between
> phone tethering, eduroam and multiple wifi networks. Until these NM
> tools start offering profiles... And general connecting is faster too.
> 
> Pj.

But we're discussing desktop-environments here, not minimal stripped
down WMs and their use cases.
Do you suggest we tell people to just use the CLI or "add one of the
following choices of network connectivity tools and their services"?
That won't work out very well in practice.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
                   ` (3 preceding siblings ...)
  2017-07-30 18:31 ` Efraim Flashner
@ 2017-07-31  1:35 ` Kei Kebreau
  2017-08-29 18:17   ` Andy Wingo
  2017-08-04  7:40 ` Chris Marusich
  5 siblings, 1 reply; 34+ messages in thread
From: Kei Kebreau @ 2017-07-31  1:35 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

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

ludo@gnu.org (Ludovic Courtès) writes:

> Hello Guix!
>
> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>
> I’ve given it a try on a GuixSD GNOME installation and it appears to
> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
> is a bit hidden (one has to know what to look for) and “foreign.”
>
> Thoughts?
>
> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
> for me.  Last time I tried it’s CLI was too low-level to be usable, and
> I don’t remember seeing a curses interface.  Suggestions?
>
> Thanks,
> Ludo’.

I'm in favor of the change as long as NetworkManager's equivalents to
wicd-gtk and wicd-curses are installed by default. Mark brought up
nmtui; that sounds like something we should enable. Also, it would be
nice to have notifications work (if they don't already) when using
nm-applet. I hear that this depends on xfce4-notifyd?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 15:18 ` Jan Nieuwenhuizen
  2017-07-30 18:39   ` NetworkManager instead of Wicd in ???%desktop-services???? Pjotr Prins
@ 2017-07-31  8:12   ` Ludovic Courtès
  1 sibling, 0 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-07-31  8:12 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: guix-devel

Jan Nieuwenhuizen <janneke@gnu.org> skribis:

> I would welcome some improvement here, or insight on my part.  Since I
> moved away from desktop environments, wicd has not not worked for me and
> I have been using ifconfig, wpa_supplicant and dhclient manually.  That
> has removed my dependency on something like NM and it's apparent
> inherent magic...but it's rather painful.

FWIW I use Wicd with ‘wicd-cli’ (GTK+).  It works OK, but Wicd is not
very smart when it comes to reconnecting, detecting new networks, etc.

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 17:25 ` Mark H Weaver
@ 2017-07-31  8:26   ` Ludovic Courtès
  2017-07-31 11:23     ` Mark H Weaver
  2017-08-04  4:10     ` Mark H Weaver
  2017-07-31 12:28   ` Maxim Cournoyer
  2017-08-02 21:54   ` Mekeor Melire
  2 siblings, 2 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-07-31  8:26 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

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

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> I've been using Network Manager with GNOME for several months at least,
> and generally I find it works very well, and reconnects much more
> quickly than wicd.

Good.

> However, there is one annoying bug: every time I reboot the system, the
> first 1-3 times it connects to the network, name lookups do not work.  I
> always have to manually ask Network Manager to disconnect, and then
> reconnect.  Sometimes I have to do this two or three times before name
> lookups work.  After I've done this, it works perfectly until the next
> reboot.
>
> I looked into this a bit, but haven't yet found the cause.  When name
> lookups are failing, /etc/resolv.conf exists and is correctly
> configured.  I've tried restarting 'nscd', but it doesn't help.

Weird.  (I’ve installed GuixSD/GNOME/NM on a laptop that’s almost always
on a wired network and it doesn’t have this problem AFAIK.)

Could you enable nscd debugging output, so we can at least see whether
the problem is due to nscd caching name lookup failures?  Something
like:

       (modify-services %desktop-services
         (nscd-service-type config
                            => (nscd-configuration
                                (inherit config)
                                (debug-level 3)
                                (log-file "/var/log/nscd.log"))))

>> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
>> for me.  Last time I tried it’s CLI was too low-level to be usable, and
>> I don’t remember seeing a curses interface.  Suggestions?
>
> There is a curses interface included with Network Manager.  It's called
> 'nmtui'.  It's not getting built because it depends on 'newt', which is
> not an input to our Network Manager package.

Nice.  The attached patch adds this dependency, changing the closure
size from 356 MiB to 360, which I think is reasonable:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 717 bytes --]

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 931c50e9d..d9d3fe793 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -109,6 +109,7 @@
   #:use-module (gnu packages rdesktop)
   #:use-module (gnu packages scanner)
   #:use-module (gnu packages selinux)
+  #:use-module (gnu packages slang)
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages gl)
@@ -4967,6 +4968,7 @@ users.")
        ("libnl" ,libnl)
        ("libsoup" ,libsoup)
        ("modem-manager" ,modem-manager)
+       ("newt" ,newt)                       ;for the 'nmtui' console interface
        ("polkit" ,polkit)
        ("ppp" ,ppp)
        ("readline" ,readline)

[-- Attachment #3: Type: text/plain, Size: 37 bytes --]


OK to apply?

Thanks,
Ludo’.

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

* Re: NetworkManager instead of Wicd in ???%desktop-services????
  2017-07-30 18:52     ` ng0
@ 2017-07-31  9:42       ` Pjotr Prins
  0 siblings, 0 replies; 34+ messages in thread
From: Pjotr Prins @ 2017-07-31  9:42 UTC (permalink / raw)
  To: Pjotr Prins, Jan Nieuwenhuizen, guix-devel

On Sun, Jul 30, 2017 at 06:52:55PM +0000, ng0 wrote:
> But we're discussing desktop-environments here, not minimal stripped
> down WMs and their use cases.
> Do you suggest we tell people to just use the CLI or "add one of the
> following choices of network connectivity tools and their services"?
> That won't work out very well in practice.

Sure.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31  8:26   ` Ludovic Courtès
@ 2017-07-31 11:23     ` Mark H Weaver
  2017-07-31 13:23       ` Ludovic Courtès
  2017-08-04  4:10     ` Mark H Weaver
  1 sibling, 1 reply; 34+ messages in thread
From: Mark H Weaver @ 2017-07-31 11:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> I've been using Network Manager with GNOME for several months at least,
>> and generally I find it works very well, and reconnects much more
>> quickly than wicd.
>
> Good.
>
>> However, there is one annoying bug: every time I reboot the system, the
>> first 1-3 times it connects to the network, name lookups do not work.  I
>> always have to manually ask Network Manager to disconnect, and then
>> reconnect.  Sometimes I have to do this two or three times before name
>> lookups work.  After I've done this, it works perfectly until the next
>> reboot.
>>
>> I looked into this a bit, but haven't yet found the cause.  When name
>> lookups are failing, /etc/resolv.conf exists and is correctly
>> configured.  I've tried restarting 'nscd', but it doesn't help.
>
> Weird.  (I’ve installed GuixSD/GNOME/NM on a laptop that’s almost always
> on a wired network and it doesn’t have this problem AFAIK.)
>
> Could you enable nscd debugging output, so we can at least see whether
> the problem is due to nscd caching name lookup failures?  Something
> like:
>
>        (modify-services %desktop-services
>          (nscd-service-type config
>                             => (nscd-configuration
>                                 (inherit config)
>                                 (debug-level 3)
>                                 (log-file "/var/log/nscd.log"))))

Okay, I'll try that soon.

>>> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
>>> for me.  Last time I tried it’s CLI was too low-level to be usable, and
>>> I don’t remember seeing a curses interface.  Suggestions?
>>
>> There is a curses interface included with Network Manager.  It's called
>> 'nmtui'.  It's not getting built because it depends on 'newt', which is
>> not an input to our Network Manager package.
>
> Nice.  The attached patch adds this dependency, changing the closure
> size from 356 MiB to 360, which I think is reasonable:
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 931c50e9d..d9d3fe793 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -109,6 +109,7 @@
>    #:use-module (gnu packages rdesktop)
>    #:use-module (gnu packages scanner)
>    #:use-module (gnu packages selinux)
> +  #:use-module (gnu packages slang)
>    #:use-module (gnu packages ssh)
>    #:use-module (gnu packages xml)
>    #:use-module (gnu packages gl)
> @@ -4967,6 +4968,7 @@ users.")
>         ("libnl" ,libnl)
>         ("libsoup" ,libsoup)
>         ("modem-manager" ,modem-manager)
> +       ("newt" ,newt)                       ;for the 'nmtui' console interface
>         ("polkit" ,polkit)
>         ("ppp" ,ppp)
>         ("readline" ,readline)
>
>
> OK to apply?

Looks good to me!

     Thanks,
       Mark

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 17:25 ` Mark H Weaver
  2017-07-31  8:26   ` Ludovic Courtès
@ 2017-07-31 12:28   ` Maxim Cournoyer
  2017-07-31 13:26     ` Ludovic Courtès
  2017-08-02 21:54   ` Mekeor Melire
  2 siblings, 1 reply; 34+ messages in thread
From: Maxim Cournoyer @ 2017-07-31 12:28 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

Hi,

Mark H Weaver <mhw@netris.org> writes:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>>
>> I’ve given it a try on a GuixSD GNOME installation and it appears to
>> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
>> is a bit hidden (one has to know what to look for) and “foreign.”
>>
>> Thoughts?
>
> I've been using Network Manager with GNOME for several months at least,
> and generally I find it works very well, and reconnects much more
> quickly than wicd.

Another reason to let go of wicd is that it doesn't support IPv6. I
tried extending our dhcp-client-service some time ago but got stuck with
some peculiarities of dhclient.

> However, there is one annoying bug: every time I reboot the system, the
> first 1-3 times it connects to the network, name lookups do not work.  I
> always have to manually ask Network Manager to disconnect, and then
> reconnect.  Sometimes I have to do this two or three times before name
> lookups work.  After I've done this, it works perfectly until the next
> reboot.
>
> I looked into this a bit, but haven't yet found the cause.  When name
> lookups are failing, /etc/resolv.conf exists and is correctly
> configured.  I've tried restarting 'nscd', but it doesn't help.
>
> One caveat: for some time now I've only tested Network Manager with
> wired networks.  I've recently been unable to use wireless, because I
> had to replace the motherboard in my Thinkpad X200, and haven't yet
> gotten around to getting the clip I need to reflash Libreboot.  The
> proprietary BIOS refuses to boot with the Atheros wireless card
> installed, so I had to remove the card for now.

I've noticed the same (lack of DNS resolution) following a reboot for
some minutes and was also wondering what was causing this. I'm using
wicd as part of the %desktop-services, so that specific problem is
probably not related to NetworkManager.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31 11:23     ` Mark H Weaver
@ 2017-07-31 13:23       ` Ludovic Courtès
  0 siblings, 0 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-07-31 13:23 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

Mark H Weaver <mhw@netris.org> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Mark H Weaver <mhw@netris.org> skribis:
>>
>>> I've been using Network Manager with GNOME for several months at least,
>>> and generally I find it works very well, and reconnects much more
>>> quickly than wicd.
>>
>> Good.
>>
>>> However, there is one annoying bug: every time I reboot the system, the
>>> first 1-3 times it connects to the network, name lookups do not work.  I
>>> always have to manually ask Network Manager to disconnect, and then
>>> reconnect.  Sometimes I have to do this two or three times before name
>>> lookups work.  After I've done this, it works perfectly until the next
>>> reboot.
>>>
>>> I looked into this a bit, but haven't yet found the cause.  When name
>>> lookups are failing, /etc/resolv.conf exists and is correctly
>>> configured.  I've tried restarting 'nscd', but it doesn't help.
>>
>> Weird.  (I’ve installed GuixSD/GNOME/NM on a laptop that’s almost always
>> on a wired network and it doesn’t have this problem AFAIK.)
>>
>> Could you enable nscd debugging output, so we can at least see whether
>> the problem is due to nscd caching name lookup failures?  Something
>> like:
>>
>>        (modify-services %desktop-services
>>          (nscd-service-type config
>>                             => (nscd-configuration
>>                                 (inherit config)
>>                                 (debug-level 3)
>>                                 (log-file "/var/log/nscd.log"))))
>
> Okay, I'll try that soon.
>
>>>> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
>>>> for me.  Last time I tried it’s CLI was too low-level to be usable, and
>>>> I don’t remember seeing a curses interface.  Suggestions?
>>>
>>> There is a curses interface included with Network Manager.  It's called
>>> 'nmtui'.  It's not getting built because it depends on 'newt', which is
>>> not an input to our Network Manager package.
>>
>> Nice.  The attached patch adds this dependency, changing the closure
>> size from 356 MiB to 360, which I think is reasonable:
>>
>> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
>> index 931c50e9d..d9d3fe793 100644
>> --- a/gnu/packages/gnome.scm
>> +++ b/gnu/packages/gnome.scm
>> @@ -109,6 +109,7 @@
>>    #:use-module (gnu packages rdesktop)
>>    #:use-module (gnu packages scanner)
>>    #:use-module (gnu packages selinux)
>> +  #:use-module (gnu packages slang)
>>    #:use-module (gnu packages ssh)
>>    #:use-module (gnu packages xml)
>>    #:use-module (gnu packages gl)
>> @@ -4967,6 +4968,7 @@ users.")
>>         ("libnl" ,libnl)
>>         ("libsoup" ,libsoup)
>>         ("modem-manager" ,modem-manager)
>> +       ("newt" ,newt)                       ;for the 'nmtui' console interface
>>         ("polkit" ,polkit)
>>         ("ppp" ,ppp)
>>         ("readline" ,readline)
>>
>>
>> OK to apply?
>
> Looks good to me!

Pushed as c27e02bf6b249321c9e699e414f474ce072a6f14.

Ludo'.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31 12:28   ` Maxim Cournoyer
@ 2017-07-31 13:26     ` Ludovic Courtès
  2017-07-31 17:37       ` Mark H Weaver
  2017-08-02 13:25       ` Maxim Cournoyer
  0 siblings, 2 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-07-31 13:26 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: guix-devel

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> I've noticed the same (lack of DNS resolution) following a reboot for
> some minutes and was also wondering what was causing this. I'm using
> wicd as part of the %desktop-services, so that specific problem is
> probably not related to NetworkManager.

Our default nscd config caches lookup failures for 20 seconds by default
(see ‘nscd-cache’ in the manual.)  So if you look up a host before
networking is up, and it fails, then there’s a window during which
lookup will keep failing.

I don’t know if that explains what you’re seeing.

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31 13:26     ` Ludovic Courtès
@ 2017-07-31 17:37       ` Mark H Weaver
  2017-08-02 13:25       ` Maxim Cournoyer
  1 sibling, 0 replies; 34+ messages in thread
From: Mark H Weaver @ 2017-07-31 17:37 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Maxim Cournoyer

ludo@gnu.org (Ludovic Courtès) writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> I've noticed the same (lack of DNS resolution) following a reboot for
>> some minutes and was also wondering what was causing this. I'm using
>> wicd as part of the %desktop-services, so that specific problem is
>> probably not related to NetworkManager.
>
> Our default nscd config caches lookup failures for 20 seconds by default
> (see ‘nscd-cache’ in the manual.)  So if you look up a host before
> networking is up, and it fails, then there’s a window during which
> lookup will keep failing.
>
> I don’t know if that explains what you’re seeing.

I don't know about Maxim, but waiting 20 seconds definitely doesn't
solve the problem for me.  I've sometimes waited quite a long time after
rebooting before doing something that requires network access, and then
realizing that DNS is not working and that I forgot to go through the
disconnect+reconnect+test loop until it starts working.

      Mark

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31 13:26     ` Ludovic Courtès
  2017-07-31 17:37       ` Mark H Weaver
@ 2017-08-02 13:25       ` Maxim Cournoyer
  2017-08-02 14:26         ` Adam Van Ymeren
  1 sibling, 1 reply; 34+ messages in thread
From: Maxim Cournoyer @ 2017-08-02 13:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> I've noticed the same (lack of DNS resolution) following a reboot for
>> some minutes and was also wondering what was causing this. I'm using
>> wicd as part of the %desktop-services, so that specific problem is
>> probably not related to NetworkManager.
>
> Our default nscd config caches lookup failures for 20 seconds by default
> (see ‘nscd-cache’ in the manual.)  So if you look up a host before
> networking is up, and it fails, then there’s a window during which
> lookup will keep failing.
>
> I don’t know if that explains what you’re seeing.

It can take much longer than 20 s upon a reboot to have the name
resolution working again (more than 5 minutes), so that doesn't seem to
explain it by itself.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-02 13:25       ` Maxim Cournoyer
@ 2017-08-02 14:26         ` Adam Van Ymeren
  2017-08-03 14:58           ` Maxim Cournoyer
  2017-08-05 20:52           ` Ludovic Courtès
  0 siblings, 2 replies; 34+ messages in thread
From: Adam Van Ymeren @ 2017-08-02 14:26 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: guix-devel

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>>
>>> I've noticed the same (lack of DNS resolution) following a reboot for
>>> some minutes and was also wondering what was causing this. I'm using
>>> wicd as part of the %desktop-services, so that specific problem is
>>> probably not related to NetworkManager.
>>
>> Our default nscd config caches lookup failures for 20 seconds by default
>> (see ‘nscd-cache’ in the manual.)  So if you look up a host before
>> networking is up, and it fails, then there’s a window during which
>> lookup will keep failing.
>>
>> I don’t know if that explains what you’re seeing.
>
> It can take much longer than 20 s upon a reboot to have the name
> resolution working again (more than 5 minutes), so that doesn't seem to
> explain it by itself.

Most of the time I have to restart my applications like icecat of emacs
when my network settings change.  I'm using wpa_supplicant and dhclient
by hand rather than wicd.

Something somewhere is caching network information longer than it should
be.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 17:25 ` Mark H Weaver
  2017-07-31  8:26   ` Ludovic Courtès
  2017-07-31 12:28   ` Maxim Cournoyer
@ 2017-08-02 21:54   ` Mekeor Melire
  2 siblings, 0 replies; 34+ messages in thread
From: Mekeor Melire @ 2017-08-02 21:54 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel


Mark H Weaver <mhw@netris.org> writes:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
>> for me.  Last time I tried it’s CLI was too low-level to be usable, and
>> I don’t remember seeing a curses interface.  Suggestions?
>
> There is a curses interface included with Network Manager.  It's called
> 'nmtui'.  It's not getting built because it depends on 'newt', which is
> not an input to our Network Manager package.

Personally, I like to use the command-line interface of network-manager
called 'nmcli' which comes with it out of the box.

--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-02 14:26         ` Adam Van Ymeren
@ 2017-08-03 14:58           ` Maxim Cournoyer
  2017-08-05 20:52           ` Ludovic Courtès
  1 sibling, 0 replies; 34+ messages in thread
From: Maxim Cournoyer @ 2017-08-03 14:58 UTC (permalink / raw)
  To: Adam Van Ymeren; +Cc: guix-devel

Hi,

On August 2, 2017 10:26:10 AM EDT, Adam Van Ymeren <adam@vany.ca> wrote:
>Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>>>
>>>> I've noticed the same (lack of DNS resolution) following a reboot
>for
>>>> some minutes and was also wondering what was causing this. I'm
>using
>>>> wicd as part of the %desktop-services, so that specific problem is
>>>> probably not related to NetworkManager.
>>>
>>> Our default nscd config caches lookup failures for 20 seconds by
>default
>>> (see ‘nscd-cache’ in the manual.)  So if you look up a host before
>>> networking is up, and it fails, then there’s a window during which
>>> lookup will keep failing.
>>>
>>> I don’t know if that explains what you’re seeing.
>>
>> It can take much longer than 20 s upon a reboot to have the name
>> resolution working again (more than 5 minutes), so that doesn't seem
>to
>> explain it by itself.
>
>Most of the time I have to restart my applications like icecat of emacs
>when my network settings change.  I'm using wpa_supplicant and dhclient
>by hand rather than wicd.
>
>Something somewhere is caching network information longer than it
>should
>be.

FWIW, I was testing the dns with 'ping'.

Maxim

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31  8:26   ` Ludovic Courtès
  2017-07-31 11:23     ` Mark H Weaver
@ 2017-08-04  4:10     ` Mark H Weaver
  2017-08-05 20:56       ` Ludovic Courtès
  1 sibling, 1 reply; 34+ messages in thread
From: Mark H Weaver @ 2017-08-04  4:10 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> I've been using Network Manager with GNOME for several months at least,
>> and generally I find it works very well, and reconnects much more
>> quickly than wicd.
>
> Good.
>
>> However, there is one annoying bug: every time I reboot the system, the
>> first 1-3 times it connects to the network, name lookups do not work.  I
>> always have to manually ask Network Manager to disconnect, and then
>> reconnect.  Sometimes I have to do this two or three times before name
>> lookups work.  After I've done this, it works perfectly until the next
>> reboot.
>>
>> I looked into this a bit, but haven't yet found the cause.  When name
>> lookups are failing, /etc/resolv.conf exists and is correctly
>> configured.  I've tried restarting 'nscd', but it doesn't help.
>
> Weird.  (I’ve installed GuixSD/GNOME/NM on a laptop that’s almost always
> on a wired network and it doesn’t have this problem AFAIK.)
>
> Could you enable nscd debugging output, so we can at least see whether
> the problem is due to nscd caching name lookup failures?  Something
> like:
>
>        (modify-services %desktop-services
>          (nscd-service-type config
>                             => (nscd-configuration
>                                 (inherit config)
>                                 (debug-level 3)
>                                 (log-file "/var/log/nscd.log"))))

I've since migrated my x86_64 GuixSD system to building everything
locally, using a local branch that's almost the same as 'core-updates'
except with 'expat' and 'pcre' ungrafted.  Since then, I've been unable
to reproduce the problem I described above.

However, I've run into a different problem.  Several times, after
reconnecting to the network, I've found that IceCat is unable to access
the network (or possibly just DNS), even when the everything works from
the command line.  Restarting IceCat solves the problem.

It's possible that waiting long enough would also work, but so far I
haven't been patient enough to try it.

Possibly related: the glibc-2.26 release announcement mentions the
following new feature:

  * Improvements to the DNS stub resolver, contributed by Florian Weimer:

    - The GNU C Library will now detect when /etc/resolv.conf has been
      modified and reload the changed configuration.  The new resolver
      option “no-reload” (RES_NORELOAD) disables this behavior.

       Mark

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
                   ` (4 preceding siblings ...)
  2017-07-31  1:35 ` Kei Kebreau
@ 2017-08-04  7:40 ` Chris Marusich
  2017-08-05 21:01   ` Ludovic Courtès
  5 siblings, 1 reply; 34+ messages in thread
From: Chris Marusich @ 2017-08-04  7:40 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

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

ludo@gnu.org (Ludovic Courtès) writes:

> Hello Guix!
>
> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?

Did we ever resolve the issue where NetworkManager wouldn't
automatically connect [1]?  I haven't tried it recently.

[1] https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00493.html

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-02 14:26         ` Adam Van Ymeren
  2017-08-03 14:58           ` Maxim Cournoyer
@ 2017-08-05 20:52           ` Ludovic Courtès
  2017-08-10 18:36             ` Adam Van Ymeren
  1 sibling, 1 reply; 34+ messages in thread
From: Ludovic Courtès @ 2017-08-05 20:52 UTC (permalink / raw)
  To: Adam Van Ymeren; +Cc: guix-devel, Maxim Cournoyer

Adam Van Ymeren <adam@vany.ca> skribis:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>>>
>>>> I've noticed the same (lack of DNS resolution) following a reboot for
>>>> some minutes and was also wondering what was causing this. I'm using
>>>> wicd as part of the %desktop-services, so that specific problem is
>>>> probably not related to NetworkManager.
>>>
>>> Our default nscd config caches lookup failures for 20 seconds by default
>>> (see ‘nscd-cache’ in the manual.)  So if you look up a host before
>>> networking is up, and it fails, then there’s a window during which
>>> lookup will keep failing.
>>>
>>> I don’t know if that explains what you’re seeing.
>>
>> It can take much longer than 20 s upon a reboot to have the name
>> resolution working again (more than 5 minutes), so that doesn't seem to
>> explain it by itself.
>
> Most of the time I have to restart my applications like icecat of emacs
> when my network settings change.  I'm using wpa_supplicant and dhclient
> by hand rather than wicd.
>
> Something somewhere is caching network information longer than it should
> be.

Could you try after running “sudo herd stop nscd”?

nscd caches host name lookups, so if you switch, say, to a captive
portal, you have to turn nscd off.

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-04  4:10     ` Mark H Weaver
@ 2017-08-05 20:56       ` Ludovic Courtès
  0 siblings, 0 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-08-05 20:56 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

Mark H Weaver <mhw@netris.org> skribis:

> I've since migrated my x86_64 GuixSD system to building everything
> locally, using a local branch that's almost the same as 'core-updates'
> except with 'expat' and 'pcre' ungrafted.  Since then, I've been unable
> to reproduce the problem I described above.

OK.

> However, I've run into a different problem.  Several times, after
> reconnecting to the network, I've found that IceCat is unable to access
> the network (or possibly just DNS), even when the everything works from
> the command line.  Restarting IceCat solves the problem.
>
> It's possible that waiting long enough would also work, but so far I
> haven't been patient enough to try it.

IceCat is too high-level to debug.  I think we should look at
getaddrinfo(3) or getent(1).

> Possibly related: the glibc-2.26 release announcement mentions the
> following new feature:
>
>   * Improvements to the DNS stub resolver, contributed by Florian Weimer:
>
>     - The GNU C Library will now detect when /etc/resolv.conf has been
>       modified and reload the changed configuration.  The new resolver
>       option “no-reload” (RES_NORELOAD) disables this behavior.

I didn’t understand this part because nscd 2.25 already detected
resolv.conf changes via inotify, AFAIK.

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-04  7:40 ` Chris Marusich
@ 2017-08-05 21:01   ` Ludovic Courtès
  2017-08-06  7:16     ` aurelien
  2017-08-06 11:47     ` maze
  0 siblings, 2 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-08-05 21:01 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

Chris Marusich <cmmarusich@gmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hello Guix!
>>
>> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>
> Did we ever resolve the issue where NetworkManager wouldn't
> automatically connect [1]?  I haven't tried it recently.
>
> [1] https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00493.html

I tested with a wired network, and it does connect automatically both on
startup and if I unplug/re-plug the Ethernet cable.

Perhaps it “fixed itself”?

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-05 21:01   ` Ludovic Courtès
@ 2017-08-06  7:16     ` aurelien
  2017-08-06 11:47     ` maze
  1 sibling, 0 replies; 34+ messages in thread
From: aurelien @ 2017-08-06  7:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Chris Marusich <cmmarusich@gmail.com> skribis:
>
>> ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> Hello Guix!
>>>
>>> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>>
>> Did we ever resolve the issue where NetworkManager wouldn't
>> automatically connect [1]?  I haven't tried it recently.
>>
>> [1] https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00493.html
>
> I tested with a wired network, and it does connect automatically both on
> startup and if I unplug/re-plug the Ethernet cable.
>
> Perhaps it “fixed itself”?
>
> Ludo’.
>
>

Hello Guix!

Well I do not understand why you prefer network manager or wicd when
netctl does the job perfectly.

But for thus who want to use nmcli (the network manager command line) I
have write that for you

https://github.com/aurelien-git/bash/blob/master/nmcli-sec/nmcli-sec.sh

:-)

Kind regards


-- aurelien

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-05 21:01   ` Ludovic Courtès
  2017-08-06  7:16     ` aurelien
@ 2017-08-06 11:47     ` maze
  2017-08-10 19:36       ` ng0
  1 sibling, 1 reply; 34+ messages in thread
From: maze @ 2017-08-06 11:47 UTC (permalink / raw)
  To: ludo; +Cc: guix-devel, Guix-devel

>> ludo@gnu.org (Ludovic Courtès) writes:
>> 
>>> Hello Guix!
>>> 
>>> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>> 
>> Did we ever resolve the issue where NetworkManager wouldn't
>> automatically connect [1]?  I haven't tried it recently.
>> 
>> [1] 
>> https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00493.html
> 
> I tested with a wired network, and it does connect automatically both 
> on
> startup and if I unplug/re-plug the Ethernet cable.
> 
> Perhaps it “fixed itself”?

For me, it does work with a wired connection as well, but _not_ for a 
wireless network. So the issue seems to persist.

Martin

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-05 20:52           ` Ludovic Courtès
@ 2017-08-10 18:36             ` Adam Van Ymeren
  0 siblings, 0 replies; 34+ messages in thread
From: Adam Van Ymeren @ 2017-08-10 18:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Maxim Cournoyer

ludo@gnu.org (Ludovic Courtès) writes:

> Adam Van Ymeren <adam@vany.ca> skribis:
>> Most of the time I have to restart my applications like icecat of emacs
>> when my network settings change.  I'm using wpa_supplicant and dhclient
>> by hand rather than wicd.
>>
>> Something somewhere is caching network information longer than it should
>> be.
>
> Could you try after running “sudo herd stop nscd”?
>
> nscd caches host name lookups, so if you switch, say, to a captive
> portal, you have to turn nscd off.

I finally had the problem reproduce.  It only really appears to happen
to me when changing from wireless to wired (when I get
back home to my desk for instance).

In that situation, icecat would fail to resolve any hostnames.  However
when I do "# herd stop nscd" like you suggested icecat immediately
starts working again.  So perhaps nscd is being a bit sticky to which
interface it should be using?

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-06 11:47     ` maze
@ 2017-08-10 19:36       ` ng0
       [not found]         ` <1502403919.10354.6@mail.strahlungsfrei.de>
  0 siblings, 1 reply; 34+ messages in thread
From: ng0 @ 2017-08-10 19:36 UTC (permalink / raw)
  To: maze; +Cc: guix-devel, Guix-devel

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

maze@strahlungsfrei.de transcribed 0.7K bytes:
> > > ludo@gnu.org (Ludovic Courtès) writes:
> > > 
> > > > Hello Guix!
> > > > 
> > > > Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
> > > 
> > > Did we ever resolve the issue where NetworkManager wouldn't
> > > automatically connect [1]?  I haven't tried it recently.
> > > 
> > > [1]
> > > https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00493.html
> > 
> > I tested with a wired network, and it does connect automatically both on
> > startup and if I unplug/re-plug the Ethernet cable.
> > 
> > Perhaps it “fixed itself”?
> 
> For me, it does work with a wired connection as well, but _not_ for a
> wireless network. So the issue seems to persist.
> 
> Martin
> 
> 

That's not very clear. What do you mean by wifi does not work?
Absolutely? Only on startup with networkmanager?
Only when connection drops?

For me at least wifi with network manager works for weeks now.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
       [not found]         ` <1502403919.10354.6@mail.strahlungsfrei.de>
@ 2017-08-10 22:43           ` ng0
  0 siblings, 0 replies; 34+ messages in thread
From: ng0 @ 2017-08-10 22:43 UTC (permalink / raw)
  To: guix-devel, Martin Honermeyer

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

Forwarded to the thread on the list.
Martin Honermeyer transcribed 1.9K bytes:
> 
> 
> Am Do, 10. Aug, 2017 um 9:36 schrieb ng0 <ng0@infotropique.org>:
> > >  For me, it does work with a wired connection as well, but _not_ for
> > > a
> > >  wireless network. So the issue seems to persist.
> > > 
> > >  Martin
> > > 
> > > 
> > 
> > That's not very clear. What do you mean by wifi does not work?
> > Absolutely? Only on startup with networkmanager?
> > Only when connection drops?
> > 
> > For me at least wifi with network manager works for weeks now.
> 
> Yes, upon first start of network manager it does not autoconnect to the wifi
> network, although it has been configured to do so. I have to select it
> manually each time in nm-applet.
> 
> Unfortunately I won't have any time to investigate this further until in a
> few weeks.

-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-07-31  1:35 ` Kei Kebreau
@ 2017-08-29 18:17   ` Andy Wingo
  2017-08-30 10:05     ` Ludovic Courtès
  0 siblings, 1 reply; 34+ messages in thread
From: Andy Wingo @ 2017-08-29 18:17 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: guix-devel

On Mon 31 Jul 2017 03:35, Kei Kebreau <kei@openmailbox.org> writes:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hello Guix!
>>
>> Shouldn’t we replace Wicd with NetworkManager in ‘%desktop-services’?
>>
>> I’ve given it a try on a GuixSD GNOME installation and it appears to
>> work well, and it’s obviously well-integrated with GNOME, whereas Wicd
>> is a bit hidden (one has to know what to look for) and “foreign.”
>>
>> Thoughts?
>>
>> Now, as someone who doesn’t use GNOME, I wonder if NM would work well
>> for me.  Last time I tried it’s CLI was too low-level to be usable, and
>> I don’t remember seeing a curses interface.  Suggestions?
>>
>> Thanks,
>> Ludo’.
>
> I'm in favor of the change as long as NetworkManager's equivalents to
> wicd-gtk and wicd-curses are installed by default. Mark brought up
> nmtui; that sounds like something we should enable. Also, it would be
> nice to have notifications work (if they don't already) when using
> nm-applet. I hear that this depends on xfce4-notifyd?

It seems like all GNOME users are ready for this change.  I tried it out
locally and it's quite nice.  Patch like this:

    diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
    index 0509bd8a4..f12fe78e5 100644
    --- a/gnu/services/desktop.scm
    +++ b/gnu/services/desktop.scm
    @@ -810,7 +810,8 @@ with the administrator's password."
     
              ;; The D-Bus clique.
              (avahi-service)
    -         (wicd-service)
    +         (service network-manager-service-type)
    +         (service wpa-supplicant-service-type)
              (udisks-service)
              (upower-service)
              (accountsservice-service)

The network manager command also seems to include `nmtui' for a
curses-based interface, and `nmcli' for a command-line interface.  I
don't know if there's an applet or something like that, but of course
that could be installed as part of the xfce-desktop-service package.
Seems to me like network manager could be a good default for Guix
desktop systems.

Andy

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-29 18:17   ` Andy Wingo
@ 2017-08-30 10:05     ` Ludovic Courtès
  2017-09-02  9:49       ` Mark H Weaver
  0 siblings, 1 reply; 34+ messages in thread
From: Ludovic Courtès @ 2017-08-30 10:05 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guix-devel, Kei Kebreau

Hi,

Andy Wingo <wingo@igalia.com> skribis:

> It seems like all GNOME users are ready for this change.  I tried it out
> locally and it's quite nice.  Patch like this:
>
>     diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
>     index 0509bd8a4..f12fe78e5 100644
>     --- a/gnu/services/desktop.scm
>     +++ b/gnu/services/desktop.scm
>     @@ -810,7 +810,8 @@ with the administrator's password."
>      
>               ;; The D-Bus clique.
>               (avahi-service)
>     -         (wicd-service)
>     +         (service network-manager-service-type)
>     +         (service wpa-supplicant-service-type)
>               (udisks-service)
>               (upower-service)
>               (accountsservice-service)

For GNOME it’s definitely better than Wicd.

> The network manager command also seems to include `nmtui' for a
> curses-based interface, and `nmcli' for a command-line interface.  I
> don't know if there's an applet or something like that, but of course
> that could be installed as part of the xfce-desktop-service package.
> Seems to me like network manager could be a good default for Guix
> desktop systems.

I went as far as switching to NM on my GNOME-less laptop.  ;-)  nmtui
works well for me, and overall NM works better than Wicd (it reconnects
more reliably and more quickly to wireless networks AFAICS.)

A GTK+ interface to NM similar to that of Wicd (i.e., not the GNOME
applet) would also be welcome; does anyone know of such a thing?

Overall, NM seems to work better than Wicd, whether or not one uses
GNOME.  Even if the issue Chris Marusich mentioned still applies, I
think switching to NM in ‘%desktop-services’ would be a net win.

Are there objections to this?

Ludo’.

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-08-30 10:05     ` Ludovic Courtès
@ 2017-09-02  9:49       ` Mark H Weaver
  2017-09-02 22:55         ` Ludovic Courtès
  0 siblings, 1 reply; 34+ messages in thread
From: Mark H Weaver @ 2017-09-02  9:49 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Kei Kebreau

ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@igalia.com> skribis:
>
>> It seems like all GNOME users are ready for this change.  I tried it out
>> locally and it's quite nice.  Patch like this:
>>
>>     diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
>>     index 0509bd8a4..f12fe78e5 100644
>>     --- a/gnu/services/desktop.scm
>>     +++ b/gnu/services/desktop.scm
>>     @@ -810,7 +810,8 @@ with the administrator's password."
>>      
>>               ;; The D-Bus clique.
>>               (avahi-service)
>>     -         (wicd-service)
>>     +         (service network-manager-service-type)
>>     +         (service wpa-supplicant-service-type)
>>               (udisks-service)
>>               (upower-service)
>>               (accountsservice-service)
>
> For GNOME it’s definitely better than Wicd.
>
>> The network manager command also seems to include `nmtui' for a
>> curses-based interface, and `nmcli' for a command-line interface.  I
>> don't know if there's an applet or something like that, but of course
>> that could be installed as part of the xfce-desktop-service package.

There's a 'network-manager-applet' package, already in Guix.  I've used
it with Xfce in the past, and it seemed to work well.

>> Seems to me like network manager could be a good default for Guix
>> desktop systems.

Agreed.

> I went as far as switching to NM on my GNOME-less laptop.  ;-)  nmtui
> works well for me, and overall NM works better than Wicd (it reconnects
> more reliably and more quickly to wireless networks AFAICS.)
>
> A GTK+ interface to NM similar to that of Wicd (i.e., not the GNOME
> applet) would also be welcome; does anyone know of such a thing?
>
> Overall, NM seems to work better than Wicd, whether or not one uses
> GNOME.  Even if the issue Chris Marusich mentioned still applies, I
> think switching to NM in ‘%desktop-services’ would be a net win.

I think we should do this.

       Mark

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

* Re: NetworkManager instead of Wicd in ‘%desktop-services’?
  2017-09-02  9:49       ` Mark H Weaver
@ 2017-09-02 22:55         ` Ludovic Courtès
  0 siblings, 0 replies; 34+ messages in thread
From: Ludovic Courtès @ 2017-09-02 22:55 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel, Kei Kebreau

Hi,

Mark H Weaver <mhw@netris.org> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:

[...]

>> Overall, NM seems to work better than Wicd, whether or not one uses
>> GNOME.  Even if the issue Chris Marusich mentioned still applies, I
>> think switching to NM in ‘%desktop-services’ would be a net win.
>
> I think we should do this.

Done!

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=4110fbc6dd9e22f05ef738da7abbd72feaea93f9

Ludo’.

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

end of thread, other threads:[~2017-09-02 22:55 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-30 14:50 NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
2017-07-30 14:59 ` ng0
2017-07-30 15:18 ` Jan Nieuwenhuizen
2017-07-30 18:39   ` NetworkManager instead of Wicd in ???%desktop-services???? Pjotr Prins
2017-07-30 18:52     ` ng0
2017-07-31  9:42       ` Pjotr Prins
2017-07-31  8:12   ` NetworkManager instead of Wicd in ‘%desktop-services’? Ludovic Courtès
2017-07-30 17:25 ` Mark H Weaver
2017-07-31  8:26   ` Ludovic Courtès
2017-07-31 11:23     ` Mark H Weaver
2017-07-31 13:23       ` Ludovic Courtès
2017-08-04  4:10     ` Mark H Weaver
2017-08-05 20:56       ` Ludovic Courtès
2017-07-31 12:28   ` Maxim Cournoyer
2017-07-31 13:26     ` Ludovic Courtès
2017-07-31 17:37       ` Mark H Weaver
2017-08-02 13:25       ` Maxim Cournoyer
2017-08-02 14:26         ` Adam Van Ymeren
2017-08-03 14:58           ` Maxim Cournoyer
2017-08-05 20:52           ` Ludovic Courtès
2017-08-10 18:36             ` Adam Van Ymeren
2017-08-02 21:54   ` Mekeor Melire
2017-07-30 18:31 ` Efraim Flashner
2017-07-31  1:35 ` Kei Kebreau
2017-08-29 18:17   ` Andy Wingo
2017-08-30 10:05     ` Ludovic Courtès
2017-09-02  9:49       ` Mark H Weaver
2017-09-02 22:55         ` Ludovic Courtès
2017-08-04  7:40 ` Chris Marusich
2017-08-05 21:01   ` Ludovic Courtès
2017-08-06  7:16     ` aurelien
2017-08-06 11:47     ` maze
2017-08-10 19:36       ` ng0
     [not found]         ` <1502403919.10354.6@mail.strahlungsfrei.de>
2017-08-10 22:43           ` ng0

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).