Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'renaming localhost?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
renaming localhost?
Authored by: rg200 on Jun 18, '02 05:05:50AM

I have used the first part of this hint to tell my OS X computer the names of the other machines on my network.

I would also like to change the name "localhost" to the name of my OS X machine, so that it appears instead of localhost in the terminal prompt - can I do it in the same way without breaking anything?

Russell



[ Reply to This | # ]
renaming localhost?
Authored by: serversurfer on Jun 18, '02 05:53:49AM
Edit /etc/hostconfig and change the HOSTNAME entry from -AUTOMATIC- to mybox. I think you'll need to restart afterwards.

[ Reply to This | # ]
renaming localhost?
Authored by: stephen on Jun 18, '02 10:00:42PM

Edit /etc/hostconfig and change this line:

HOSTNAME=-AUTOMATIC-

HOSTNAME=your user name

and that's all



[ Reply to This | # ]