Jump to content

Setting Hostname in ML 10.0 CE


NeoXP
 Share

Recommended Posts

I had the same problem. Load the tool updates, remove the nic, add it back in, and enter your host name. That's how I fixed it using gui. :cheesy:

Link to comment
Share on other sites

Guest pipplo

You can change your host name by adding the command

 

hostname yourhostnamehere

 

in the top of your rc.local file, should be in /etc/rc.d/ directory

Link to comment
Share on other sites

?? Don't do anything in /etc/rc.local, just adapt the file: /etc/hosts and you're done. You have to logout and back in to see the changes, naturally you can do that by doing

su

in konsole.

Isnt that gone though on a reboot? Not that any of us reboot that much mind you. I'm not on 10 yet but I assume the process is the same. Edit the /etc/sysconfig/network file so it has a line saying HOSTNAME="hostname here"

then restart the network.

 

That should change your hosname and keep it when you reboot for whatever reason.

Link to comment
Share on other sites

You can change your host name by adding the command

 

 

CODE 

 

hostname yourhostnamehere

 

 

 

in the top of your rc.local file, should be in /etc/rc.d/ directory

 

Thxs Pipplo this works for me!

 

[edit] typo [/edit]

Edited by NeoXP
Link to comment
Share on other sites

Guest pipplo
?? Don't do anything in /etc/rc.local, just adapt the file: /etc/hosts and you're done. You have to logout and back in to see the changes, naturally you can do that by doing

su

in konsole.

Isnt that gone though on a reboot? Not that any of us reboot that much mind you. I'm not on 10 yet but I assume the process is the same. Edit the /etc/sysconfig/network file so it has a line saying HOSTNAME="hostname here"

then restart the network.

 

That should change your hosname and keep it when you reboot for whatever reason.

This might be a better solution.. I dunno

Link to comment
Share on other sites

I also tried Ronin's solution, but it did'nt work for me....

Umm a bit more information then it didnt work for me please. :-) I set my hostname that way last night and restarted the network and it works fine on all my machines.

 

:juggle:

Link to comment
Share on other sites

Funny thing is, I checked /etc/sysconfig/network and my hostname was already there! At boot there was a message like "setting hostname to: trinity.com. But when it was completely booted it would still give the standard hostname.

 

After editing /etc/rc.d/rc.local my prob was solved, dunno why!

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...