Jump to content

rename localhost [solved]


Guest thomascon
 Share

Recommended Posts

Guest thomascon

Is it possible to change the computer name from localhost to something else like "thomascon456" without hosing the working system? And if it is possible what files would need to be edited?

 

I did not see this as an option while installing 2009.1. I tried search but could not find an answer.

 

Thank you,

 

thomascon

 

 

[moved from Installing Mandriva by spinynorman]

Edited by thomascon
Link to comment
Share on other sites

If you want to edit the config file, it's /etc/sysconfig/network and in here you should have a HOSTNAME= entry which you can change from localhost to whatever you want. Also, make sure you edit /etc/hosts and put on the 127.0.0.1 line the new hostname, but don't delete localhost or localhost.localdomain as these are required in /etc/hosts.

Link to comment
Share on other sites

Guest thomascon

Thank you, that was the info I needed.

 

thomascon

 

 

 

 

If you want to edit the config file, it's /etc/sysconfig/network and in here you should have a HOSTNAME= entry which you can change from localhost to whatever you want. Also, make sure you edit /etc/hosts and put on the 127.0.0.1 line the new hostname, but don't delete localhost or localhost.localdomain as these are required in /etc/hosts.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...