Help - Search - Members - Calendar
Full Version: Naming A Linux Box
Linuxhelp > Support > Technical Support
0233453569
I just installed Red Hat Linux 7.0 and had to use text mode to install. No option was given to name the machine. Is there some file perhaps in /etc that I could just edit, or would I need to recompile, etc.? localhost just isn't doing it for me.
Corey
It's been a while, but, try the "hostname" program or edit /etc/hostname . You may need to edit your /etc/hosts file as well.
Hemant
well
1.enter command hostname
#hostname <hostname_u_want>
2.edit /etc/hosts file
and make a entry like this
127.0.0.1 <hostname_u_want> localhost
and don't delete the existing entry
3.edit file /etc/sysconfig/network
and change the hostname there
4.if have apache running the edit the file /etc/httpd/conf/httpd.conf
and uncomment the line related to the server name and put ur preferred name there
Corey
gethemant: Thanks, whenever i answer questions in this forum, i'm usually at work on a windows 2000 computer, so almost every question I answer is from memory. But it's great to have a bit of backup smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.