Skip to main content
Topic: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11 (Read 1160 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Hi,

the networkmanager 1.14.7dev+3+g353743b99-1 set the hostname from DHCP in a way that break X11 authentication.
Symptom:  "Error: Can't open display: :0"
Diagnose: hostname and cat /etc/hostname are different
Hot Fix: revert hostname change:
Code: [Select]
sudo hostname -F /etc/hostname
or extend X11 authentication for new hostname
Code: [Select]
hostname
xhost +{YOUR NEW DHCP HOSTNAME}

cat /etc/NetworkManager/NetworkManager.conf
Code: [Select]
# Configuration file for NetworkManager.
# See "man 5 NetworkManager.conf" for details.
[main]
plugins=keyfile

[keyfile]
hostname-mode=none
may work too (not tested).

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #1
No issues here with all latest updates....Plasma w/runit init.

Best regards.
We should try to be kind to everyone.....we are all fighting some sort of battle.

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #2
I also met similar issue few year ago, when NM was setting hostname based on actual network I was connected to and I was unable to login to X or so...
I solved it the same way as you, I created /etc/hostname file and it works ever since.

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #3
No issues here with all latest updates....Plasma w/runit init.

The problem came up when I created a fixed WiFi IP in my router.
The WiFi router had then set some DHCP tags that motivated NetworkManager to change the hostname according to the DHCP tag.
And bang, X11 broken.

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #4
I think NetworkManager can do weird things with the generic network configs like overwrite/ignore certain values.

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #5
Never liked NM, TBH: too complicated and bound to break from time to time. I've always used wicd for wifi, static or dhclient/dhcpcd for dynamic ethernet.

 

Re: Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11

Reply #6
Also be prepared for NM 1.16, by default (or so it was in testing few days ago) I had to type my password to work with wifi, what a pain.