LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Computer Name (https://www.linuxquestions.org/questions/linux-newbie-8/computer-name-85759/)

kbeaver 08-26-2003 01:15 AM

Computer Name
 
Hey All,
I just installed Red Hat 9.0 for the second time (hard disk failure). The last time I installed it, I made the computer name something like BeaverBox...this time I forgot to say it, now it is some long, lame looking name. is there a way to change this without having to reinstall? Thanks,

jalal 08-26-2003 01:17 AM

yes, by editing /etc/hosts

Robert0380 08-26-2003 03:41 AM

or use the hostname command:

#hostname BeaverBox

if you dont use any parameters, it will spit out the current hostname.

kbeaver 08-26-2003 12:56 PM

I tried both ways, but it doesn't permanentyl change the name. do I have to reinstall? (kinda driving me nuts.)

Keil

DrOzz 08-26-2003 01:19 PM

you must edit the line in the file:
---> /etc/sysconfig/network
that says:

---> HOSTNAME=


All times are GMT -5. The time now is 11:10 AM.