You are not logged in.
As soon as I connect to wifi I cannot run new applications and get the errors like: no protocol specified or Error: Can't open display: :0.0
As described elsewhere I checked the /etc/hosts, /etc/hostname, /etc/NetworkManager/nm-system-settings.conf
These are the 3 possible solutions I found for the changing hostname issue. However the hostname still gets reset.
What else can I try?
Offline
Maybe try including some relevant information: the output of hostnamectl, journal entries, etc...
Offline
No specific journal entries. Below is the output of hostname BEFORE I connect to the wifi
Static hostname: localhost
Transient hostname: localhost.localdomain
Icon name: computer-laptop
Chassis: laptop
Machine ID: b5cc086b74af4eeabe0199857db5a4cb
Boot ID: 31219f012a014922b8b17bb25a5f6606
Operating System: Arch Linux
Kernel: Linux 4.11.2-1-ARCH
Architecture: x86-64And here is the output AFTER I connect to wifi
Static hostname: localhost
Transient hostname: lanhost72
Icon name: computer-laptop
Chassis: laptop
Machine ID: b5cc086b74af4eeabe0199857db5a4cb
Boot ID: 31219f012a014922b8b17bb25a5f6606
Operating System: Arch Linux
Kernel: Linux 4.11.2-1-ARCH
Architecture: x86-64Offline
So, fix your hostname.
Offline
Sure. But it is a work around. It happens every time I connect to wifi.
Offline
did you actually set a hostname, as described in the installation guide?
Offline
What is a workaround? How are you "fixing" it. Please provide something more than vague handwaving so that this thread doesn't degenerate further into an even more painful process of information extraction.
And be very specific about what exactly it is you have done: https://wiki.archlinux.org/index.php/Ne … e_problems
Offline
I am setting it manually after I connect to the wifi
hostnamectl set-hostname localhost
hostnamectl set-hostname --transient localhost.localdomainI have the following 2 as well but they dont help
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhos/etc/hostname
localhostOffline
localhost is a reserved word for hostnames, if your set your hostname to localhost your are not setting your hostname correctly. You can pretty much use anything else it just shouldn't be localhost (e.g. mine's arch-videl to indicate that it's my arch machine)
Offline