From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: networkmanager hostname woes Date: Sat, 16 Sep 2017 08:11:21 +0000 Message-ID: <20170916081121.pi5glf55vie5ll6i@abyayala> References: <20170913.120529.1808480687765633530.thomas.danckaert@aeronomie.be> <204ebc50.AEMAP_-w0oEAAAAAAAAAAAPHPkIAAAACwQwAAAAAAAW9WABZub7T@mailjet.com> <20170915121449.vkikuqpcstotovv7@abyayala> <20170916.085724.965729161976372490.post@thomasdanckaert.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="csql5vvpk4bxr5zr" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dt8CR-00086C-Ck for help-guix@gnu.org; Sat, 16 Sep 2017 04:11:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dt8CM-0003Qb-Je for help-guix@gnu.org; Sat, 16 Sep 2017 04:11:39 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dt8CM-0003OZ-Bq for help-guix@gnu.org; Sat, 16 Sep 2017 04:11:34 -0400 Content-Disposition: inline In-Reply-To: <20170916.085724.965729161976372490.post@thomasdanckaert.be> 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: Thomas Danckaert Cc: help-guix@gnu.org --csql5vvpk4bxr5zr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thomas Danckaert transcribed 2.2K bytes: > From: ng0 > Subject: Re: networkmanager hostname woes > Date: Fri, 15 Sep 2017 12:14:49 +0000 >=20 > > Arun Isaac transcribed 0.8K bytes: > > >=20 > > > Thomas Danckaert writes: > > >=20 > > > > AFAIU, the cause is that networkmanager changes my hostname (after > > > > DHCP?), in my case to =E2=80=9Cnew-host2=E2=80=9D or something simi= lar, and this > > > > seems to break the X session. When I manually restore the > > > hostname > > > > with =E2=80=9Csudo hostname =E2=80=9D, the probl= em is solved. > > > Is > > > > 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. > >=20 > > I don't understand your problem. >=20 > The problem is that changing the hostname after starting an X session, > breaks that session. >=20 > > This is public documented behavior of NM. >=20 > Can you point me to the networkmanager documentation? Not documented as in documentation, but that this is known by other systems. I've never read the documentation of NM in all the years I've known this. > Could help to find a > proper way to configure this (adding some configuration options to our > networkmanager service perhaps). I couldn't immediately find anything > helpful. >=20 > > Assuming that we build networkmanager with dhclient option/configure: >=20 > seems like we do: the networkmanager package in in gnu/packages/gnome.scm > has an option (string-append "--with-dhclient=3D" dhclient))) >=20 > > add to /etc/dhcp/dhclient.conf: > >=20 > > send host-name "yourhostname"; >=20 > I think some people prefer not to send their own hostname to any router t= hey > connect to (assuming that's what =E2=80=9Csend host-name=E2=80=9D does :-= ) ). Do you think > creating /etc/hostname instead is not a good solution? >=20 > Thanks! >=20 > Thomas I don't have any opinion or further help, I just shared what I know hoping that it could maybe help with further decisions. How is not sharing your hostname with any router you connect to a privacy option? Assuming you don't share it with your local router, looking just at email it still ends up (in the default case, if not set to forget on the server) with computers inbetween you, me and gnu.org and everyone and their email servers. You just have to be aware that the net is insecure and broken. Of course we can have a default hostname. And if /etc/hostname helps to solve the initial problem, go for it. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://krosos.org/dist/keys/ https://www.infotropique.org https://www.krosos.org --csql5vvpk4bxr5zr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlm83KkACgkQ4i+bv+40 hYj0SRAAlQYC4Ro9djBb8zsRP0PEAqWuX+oAR/ecYoJQJu84v1jMDc8ogf9J6LC9 thOe7IFWNsODqeWuSVsUk0CoV52fYFgVq0laaHTAiPSHwM+EujCRbbUqi/RD7Vo4 GyL+IuQad+60aOtc0/uaS+Wx7nTKzn3WXFYZSNwXwuZwhHYtETOctSDLvEwaJJfL 3gRIKOEHecMo5uz+OMdQOE7duQBxkJekL1xgDeoSzscwYiAlMNIiDrRKsq3qIkfp Ou/LwPb8vGMjzTfT/osZ+XJoakrAJMt1k/ucNYENKtDtPCJjU4BECpdWK/QGFrp3 8kfxGLcvPhw381cfKfkxjW5woTVTum59yPaUm2GgfBk7q72IzYOpw8BDf244r7sm 8T4ZJT/BBPdJ7vJTTgWTSiKGdaoEu2nbIVbYXsZph0jm0Ns7nkQrlvklGyhtpnPi pnkF/DYAh/b/QnBhvsPmuz8L5V+Upismw743lah5vq8aLaWNFmvW2yGMFdg/rjhF YvWBh9K51Kawmwlg67pqFDCs5RPnudbOAVwz3aP3iyUfcRyVye4SU1Eg9gJlwZen lZ9F/dsVzq/tqO4hDX77S0zSX5juO+yQLJhfEwkO+It/QoUEBottZjpkpDtKuIE0 QsywORiRLFYtlrG9U0baSBgA5h8j5aQxXbAL3/irUfKCahmdwtw= =DMUe -----END PGP SIGNATURE----- --csql5vvpk4bxr5zr--