Computing.Net > Forums > Linux > Change computer name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change computer name

Reply to Message Icon

Name: darkhalf
Date: February 9, 2004 at 10:04:03 Pacific
OS: RH 9
CPU/Ram: 512
Comment:

Hi, total noob in Linux...

How do you change the name of the computer.. I'm able to do hostname = whatever, but when I reboot it goes back to localhost...

How can I make the changes stick.



Sponsored Link
Ads by Google

Response Number 1
Name: heart_debian
Date: February 9, 2004 at 10:36:52 Pacific
Reply:

Edit /etc/hosts, the loopback interface is your own system.


0

Response Number 2
Name: 3Dave
Date: February 10, 2004 at 07:54:35 Pacific
Reply:

You also want to edit /etc/HOSTNAME before rebooting. The system usually sets the hostname at boot time when starting networking (eg by running /etc/rc.d/rc.inet1, /etc/init.d/boot etc) which in turn takes the name from the file /etc/HOSTNAME. I think under redhat you might want to check /etc/sysconfig/network too....


0

Response Number 3
Name: jamaas
Date: March 10, 2004 at 03:29:26 Pacific
Reply:

I'm attempting to do the same, change the name of my machine, as simply as possible from localhost to something else. I'm running Mandrake 9.2 on i586. I've checked and don't seem to have a file called "/etc/HOSTNAME.

Any suggestions how to get this done with M-9.2? If I create this file with that work? If so what might I put in it?

Thanks a bunch

Jim


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Samba Newbie fun DVD Player for RH 9



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Change computer name

Change computers name www.computing.net/answers/linux/change-computers-name/16218.html

Computer names of Linux www.computing.net/answers/linux/computer-names-of-linux/23234.html

rehat name www.computing.net/answers/linux/rehat-name/19516.html