help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: networkmanager hostname woes


From: ng0
Subject: Re: networkmanager hostname woes
Date: Fri, 15 Sep 2017 12:14:49 +0000

Arun Isaac transcribed 0.8K bytes:
> 
> Thomas Danckaert writes:
> 
> > Hi Guix,
> >
> > since the change to networkmanager, I've been running into the 
> > following problem: when I connect to a wireless network using 
> > networkmanager, I can no longer start graphical applications 
> > (starting any program fails with “cannot open display :0.0” and 
> > similar messages).
> >
> > AFAIU, the cause is that networkmanager changes my hostname (after 
> > DHCP?), in my case to “new-host2” or something similar, and this 
> > seems to break the X session.  When I manually restore the hostname 
> > with “sudo hostname <original-hostname>”, the problem is solved.  Is 
> > there anyway to disable this behaviour for networkmanager?
> 
> I have the exact same problem too. If somebody has a solution, I'd like
> to hear about it.

I don't understand your problem. This is public documented behavior of
NM.
Assuming that we build networkmanager with dhclient option/configure:

add to /etc/dhcp/dhclient.conf:

send host-name "yourhostname";


This always worked for me on Gentoo.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://krosos.org/dist/keys/
https://www.infotropique.org https://www.krosos.org

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]