LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mageia (https://www.linuxquestions.org/questions/mageia-97/)
-   -   Change host name (https://www.linuxquestions.org/questions/mageia-97/change-host-name-4175610529/)

nigelc 07-24-2017 10:06 PM

Change host name
 
Hello,
I have installed Mageia 6. would like to change from localhost to another name.
I asked this question before, but can't find the answer.
I remembering having to change it twice.


cheers.
nigelc

Ztcoracat 07-25-2017 12:06 AM

These links should do it:-;)

https://www.cyberciti.biz/faq/ubuntu...tname-command/
https://www.tecmint.com/set-hostname...ntly-in-linux/

nigelc 07-29-2017 10:40 PM

Thankyou,
Ztcoracat

Since this is systemd this is the answer:

$ sudo hostnamectl set-hostname NEW_HOSTNAME
cheers

Ztcoracat 07-30-2017 02:52 AM

Quote:

Originally Posted by nigelc (Post 5741574)
Thankyou,
Ztcoracat

Since this is systemd this is the answer:

$ sudo hostnamectl set-hostname NEW_HOSTNAME
cheers

You're welcome.

Did that work for you?

nigelc 07-31-2017 09:24 AM

Quote:

Did that work for you?
Yes

Ztcoracat 07-31-2017 08:06 PM

Quote:

Originally Posted by nigelc (Post 5742113)
Yes

Glad to hear the good news.


All times are GMT -5. The time now is 12:03 AM.