You are not logged in.
Pages: 1
Hi guys! I'm new to Arch and the Linux world, so it's quite difficult to me to solve problems. And I need your help (:
The problem is that after connecting to some network (via wifi), either NetworkManager or something else (DHCP) changes my hostname. By default it is "localhost", and turns into "goga" (don't know why :D).
This affects Xorg, i.e.
~> xhost
No protocol specified
xhost: unable to open display ":0"
So I'm not able to launch GUI application (KDE5+plasma). This make me sad :(
I partially solve it by hostnamectl set-hostname localhost. As you can understand it's pretty annoying to enter this line every time I connect to any network.
-----
I've already tried to add [keyfile]hostname=localhost, as described at this guide, it does not help.
Last edited by xamgore (2015-05-20 12:49:28)
Offline
Do you have your hostname written in the file /etc/hostname?
And it might just be an issue using localhost as your hostname as localhost has a special meaning/redirect to 127.0.0.1
Last edited by Arogers10 (2015-05-20 13:04:12)
Offline
Do you have your hostname written in the file /etc/hostname?
Yes, it is also localhost :D
Offline
I partially solve it by hostnamectl set-hostname localhost.
If a static hostname is set, and is valid (something other than localhost), then the transient hostname is not used.
Offline
Hm. Thank you, Jason, I have switched it to goga and now everything is fine!
Offline
Pages: 1