LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10:06 PM   #1
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406
Blog Entries: 4

Rep: Reputation: 80
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, 12:06 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

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

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

Original Poster
Blog Entries: 4

Rep: Reputation: 80
Thankyou,
Ztcoracat

Since this is systemd this is the answer:

$ sudo hostnamectl set-hostname NEW_HOSTNAME
cheers
 
1 members found this post helpful.
Old 07-30-2017, 02:52 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 09:24 AM   #5
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406

Original Poster
Blog Entries: 4

Rep: Reputation: 80
Quote:
Did that work for you?
Yes
 
Old 07-31-2017, 08:06 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

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


Reply

Tags
hostname, mageia6



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 04:14 AM
how to change host name? gobi_dgm Linux - Newbie 6 05-01-2005 12:34 AM
how do i change my host name? jsmarshall85 Debian 7 10-19-2004 03:04 PM
How to change the host name? aroop Linux - Networking 8 09-12-2004 08:29 PM
how do you change the host name? Culbert Linux - Software 3 03-15-2003 12:09 PM

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

All times are GMT -5. The time now is 05:49 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
Open Source Consulting | Domain Registration