LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 07-24-2017, 11:06 PM   #1
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 6
Posts: 354
Blog Entries: 4

Rep: Reputation: 63
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
 
Old 07-25-2017, 01:06 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,874
Blog Entries: 10

Rep: Reputation: Disabled
These links should do it:-

https://www.cyberciti.biz/faq/ubuntu...tname-command/
https://www.tecmint.com/set-hostname...ntly-in-linux/
 
1 members found this post helpful.
Old 07-29-2017, 11:40 PM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 6
Posts: 354
Blog Entries: 4

Original Poster
Rep: Reputation: 63
Thankyou,
Ztcoracat

Since this is systemd this is the answer:

$ sudo hostnamectl set-hostname NEW_HOSTNAME
cheers
 
Old 07-30-2017, 03:52 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,874
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by nigelc View Post
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?
 
Old 07-31-2017, 10:24 AM   #5
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 6
Posts: 354
Blog Entries: 4

Original Poster
Rep: Reputation: 63
Quote:
Did that work for you?
Yes
 
Old 07-31-2017, 09:06 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,874
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by nigelc View Post
Yes
Glad to hear the good news.
 
  


Reply

Tags
hostname, mageia6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change the host name? cagemarvs Fedora 2 06-09-2007 05:14 AM
how to change host name? gobi_dgm Linux - Newbie 6 05-01-2005 01:34 AM
how do i change my host name? jsmarshall85 Debian 7 10-19-2004 04:04 PM
How to change the host name? aroop Linux - Networking 8 09-12-2004 09:29 PM
how do you change the host name? Culbert Linux - Software 3 03-15-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration