From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: networkmanager hostname woes Date: Fri, 15 Sep 2017 12:14:49 +0000 Message-ID: <20170915121449.vkikuqpcstotovv7@abyayala> References: <20170913.120529.1808480687765633530.thomas.danckaert@aeronomie.be> <204ebc50.AEMAP_-w0oEAAAAAAAAAAAPHPkIAAAACwQwAAAAAAAW9WABZub7T@mailjet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="crmgzhzjjewjucjo" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dspWd-00050e-O7 for help-guix@gnu.org; Fri, 15 Sep 2017 08:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dspWY-0004B7-2c for help-guix@gnu.org; Fri, 15 Sep 2017 08:15:15 -0400 Received: from aibo.runbox.com ([91.220.196.211]:52742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dspWX-00044r-Rc for help-guix@gnu.org; Fri, 15 Sep 2017 08:15:10 -0400 Content-Disposition: inline In-Reply-To: <204ebc50.AEMAP_-w0oEAAAAAAAAAAAPHPkIAAAACwQwAAAAAAAW9WABZub7T@mailjet.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Arun Isaac Cc: Thomas Danckaert , help-guix@gnu.org --crmgzhzjjewjucjo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Arun Isaac transcribed 0.8K bytes: >=20 > Thomas Danckaert writes: >=20 > > Hi Guix, > > > > since the change to networkmanager, I've been running into the=20 > > following problem: when I connect to a wireless network using=20 > > networkmanager, I can no longer start graphical applications=20 > > (starting any program fails with =E2=80=9Ccannot open display :0.0=E2= =80=9D and=20 > > similar messages). > > > > AFAIU, the cause is that networkmanager changes my hostname (after=20 > > DHCP?), in my case to =E2=80=9Cnew-host2=E2=80=9D or something similar,= and this=20 > > seems to break the X session. When I manually restore the hostname=20 > > with =E2=80=9Csudo hostname =E2=80=9D, the problem i= s solved. Is=20 > > there anyway to disable this behaviour for networkmanager? >=20 > 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. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://krosos.org/dist/keys/ https://www.infotropique.org https://www.krosos.org --crmgzhzjjewjucjo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlm7xDkACgkQ4i+bv+40 hYjTmg//YKIRlcN4nIblsllxpa9kWYmYQ90X07h1+tMxaPlIoFKxeW1MAVzIYLat B0JU5dfWYpsqWmP0cxDJrJQWOwVkxF8mPXZYY5y/03vqd2ot08su81L9ytgMoebQ qbSI3g7NnyFdzbIhbyDgT2PTO1e60lpv0sk4sj3duaul+mX1M7biswQ9JQYONo5Y fE6Pf5VmXvAw4zbPCZ9IJVjiq2K/FS1dVG2WphSYgfOAZGdsbzfjrDL/XtPcnUa8 IHthJzlUpgA2oHPGAv9qTYUDIAhmzwxfFRGzWuAmh6s1ixVHiPTFEhCt4iuo+6GE T4Ca+laaXTeliBIXfSfojcHrncdDD8R4c6avjEtYWo0CVjRPPDEK8a1AFPx0ILth Adxt0GyTNivUaKHX5Vkum9Ih3wWIPRR/5gALdMACdSXSbP+FlO2gMw5QbJbv0piK QEJxxQJO90Uyo9owtkK88cw5EWv9GznPputknhK6sEt4rUuhcBXEEmf8mnA7FVw2 fy3tKBwfsFo2T629ooGVbHLOa4HNFov2KvJfl5cfj2FDzhKAqd2/tmkguaRFVPwW o/VqPm0SGVCQjEqxKKzCMxbeHSL2L+7+YT+hr2GHDsloFuDfu2qjYNrBC262SryG r5YHbRp6o1dmksn/ds0+JYg6XpTNn/KQlzYkVPj/hFS9T5CPJM8= =7lyr -----END PGP SIGNATURE----- --crmgzhzjjewjucjo--