From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: networkmanager hostname woes Date: Wed, 13 Sep 2017 18:01:14 +0100 Message-ID: <20170913180114.7d3647d3@cbaines.net> References: <20170913.120529.1808480687765633530.thomas.danckaert@aeronomie.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/bcKuT7CHp002KIND=JUuMFj"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsB2R-0005Sc-5R for help-guix@gnu.org; Wed, 13 Sep 2017 13:01:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsB2O-0007TV-Gi for help-guix@gnu.org; Wed, 13 Sep 2017 13:01:23 -0400 Received: from li622-129.members.linode.com ([212.71.249.129]:58406 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsB2O-0007Rq-A7 for help-guix@gnu.org; Wed, 13 Sep 2017 13:01:20 -0400 In-Reply-To: <20170913.120529.1808480687765633530.thomas.danckaert@aeronomie.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 --Sig_/bcKuT7CHp002KIND=JUuMFj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 13 Sep 2017 12:05:29 +0200 (CEST) Thomas Danckaert wrote: > 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). >=20 > 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, a= nd 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 is = solved. Is=20 > there anyway to disable this behaviour for networkmanager? I've had this too, it's very frustrating. Luckilly, I think I found a workaround. I created /etc/hostname and put the machines hostname in it, and I don't think I've had the issue since. --Sig_/bcKuT7CHp002KIND=JUuMFj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlm5ZFpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xe1vhAAlrPJM+eUPWnhKBQ5Ta9tavkI+okBuTOcl6h43ZvkZIAZW/tvyA3A4IgG jM7W4mjOyIL9LEGN+nc4Li48m+7Lqblm6ShzrmML+fnaLDuMGJ4VmPjwaH7FvnY5 GI4tFQ1RPg9AxxNm/XiGNSvRWaiJFkfWrKxLWrk9Ow0pp9FMGLmGBfloKFg01jWt bzBW5S1hZJC54JZ4sdq3veI3cWkPqzoWhlnAFbyHZ8VqbT6pMCmT7YpHit4mk8Vy 7MYFsXJ6aarYic7qQ12M22M+M5TpWtC1Upak3ZxkChNg46R08liB26sTti2c0JZN tFbIYqqpSxPoT2XIYdzbOKgTw4zQq/6WA4z5bqv4kHIPlNPuftzF/4mTDGv8k6FZ TeqCCBihBImUTPqtH5NMP81SUwVa2JNXhkKecMUIIOn9r8AiuzztIoCjLS4GPeKJ UJvFFbceQazBQNLLn9Bp0FuBNVFjQm9HSOj0E0pbLzO+7PQL8dTWXVCSWQdONsm3 M7pI8YzlSyzccD9zlXZsvCb6Dbtp2N8U2Wf2JX5LpkEwGcc7Ho3OGZVpprDVldPL yuzkFjvt84ejf5ptgZ25ycDf2U5oBccHC68gZ3YYoHWeIzKBoP6zWG2AjGNebfar tqXON0BXXa6owPPAz3o5nCny6FtcQKiAEUfYbZedyKsuOjDsji8= =qnGx -----END PGP SIGNATURE----- --Sig_/bcKuT7CHp002KIND=JUuMFj--