[SOLVED] How do change the name of the machine?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] How do change the name of the machine?

Postby nigelc » Sep 26th, '11, 03:34

Hello,
How do I change the name of the machine from localhost.
cheers
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: change name to endor

Postby nigelc » Sep 26th, '11, 07:39

I've worked out how to do it.
At the end of /etc/sysconfig/network I added the line
HOSTNAME=endor
and changed /etc/hosts to
127.0.0.1 endor localhost
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: How do change the name of the machine?

Postby Max » Sep 26th, '11, 07:51

Great!
Now one of the mods can mark this thread as SOLVED.

Also, watch out for the little furry guys. ;)
Image
User avatar
Max
 
Posts: 269
Joined: Apr 4th, '11, 09:16

Re: How do change the name of the machine?

Postby doktor5000 » Sep 26th, '11, 09:49

You could have also easily done that within Mageia Control Center, though ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] How do change the name of the machine?

Postby morgano » Jan 11th, '13, 15:41

In MCC, I have only found how to edit /etc/hosts (mcc > network and interfaces > machine definition)
But on my two last installs of mga2 i was confused to find only one of them contained the HOSTNAME= line in /etc/sysconfig/network so I too edited it by hand.
Then there is also possibly to spell the name in /etc/hostname and i have no idea where this takes precedence or how important it is.

Optimally i think the machine name should be asked and set during install.

And there should be a specific button to set own name in (mcc > network and interfaces > machine definition) that writes it in all relevant places.

But should it really be needed or even allowed to define machines own name in more than one place?
It feels like risk of odd problems!
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1493
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] How do change the name of the machine?

Postby jkerr82508 » Jan 11th, '13, 17:14

morgano wrote:Optimally i think the machine name should be asked and set during install.

At the Configuration Summary page you can choose to configure the network connection. There you can set the hostname. That module is also available in MCC - Network & Internet - Set up a new network interface. Running that wizard will enable you to re-configure your network device and give you an opportunity to set the hostname of your choice.

I agree that an explicit requirement to set a unique hostname would be desirable during installation, especially since so many people now have local networks, for which each machine should have a unique hostname.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest