Page 1 of 1

[Solved] Salix MATE, can't change hostname

Posted: 15. Aug 2014, 05:30
by maspai
I'm trying MATE edition and I like it. I change hostname in /etc/hosts and HOSTNAME, also check it in gtkhostsetup. But XAMPP reverts it; starting XAMPP says that the hostname is not okay, something like that.
BTW, I once used hostnamectl command in Xfce edition, CMIIW. Not found in MATE edition.
Thanks for help.

Re: Salix MATE, can't change hostname

Posted: 15. Aug 2014, 06:29
by gapan
change it and reboot.

Re: Salix MATE, can't change hostname

Posted: 16. Aug 2014, 09:52
by maspai
gapan wrote:change it and reboot.
XAMPP keeps changing the hostname. I don't know why.
Finally I tried editing /etc/hosts to:

Code: Select all

127.0.0.1	localhost
127.0.0.1	pai-acer.example.net pai-acer darkstar
I'm not connected to LAN now, so I'll try pinging my PC from another when I'm at office LAN to look if this solves.

Re: Salix MATE, can't change hostname

Posted: 22. Aug 2014, 07:55
by maspai
I think this is solved.
First, I ran "hostname myhost", then after reboot it was "darkstar" again.
Then I searched files containing word "hostname". I tried /etc/NetworkManager/NetworkManager.conf with "hostname=darkstar" inside. Changed the value, then after reboot my PC is recognized as "myhost".
Thanks for helps.
UPDATE: And XAMPP's apache doesn't complaint anymore about the hostname.