[Solved] Salix MATE, can't change hostname

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

[Solved] Salix MATE, can't change hostname

Post 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.
Last edited by maspai on 22. Aug 2014, 07:57, edited 1 time in total.
sorry for my noob-ness guys, i'm new in linux and salix.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Salix MATE, can't change hostname

Post by gapan »

change it and reboot.
Image
Image
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: Salix MATE, can't change hostname

Post 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.
sorry for my noob-ness guys, i'm new in linux and salix.
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: Salix MATE, can't change hostname

Post 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.
sorry for my noob-ness guys, i'm new in linux and salix.
Post Reply