LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-06-2011, 08:01 PM   #1
KimWill
LQ Newbie
 
Registered: Sep 2011
Distribution: CentOS 5
Posts: 4

Rep: Reputation: Disabled
CentOS rename machine


I am building my first CentOS 5 box and discovered I need to rename the box (host, machine). How do I do that in Linux?
 
Old 09-06-2011, 08:41 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Hello,

You should have been given the option when you installed CentOS. Otherwise, just use the "hostname" command to change your hostname.

Cheers,

Josh
 
1 members found this post helpful.
Old 09-06-2011, 10:26 PM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,520

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
Hi,

changing the hostname on the fly on Redhat based systems (like CentOS) seems to need some additional tweaks. I've used the following method to change the hostname on such systems in the past.

http://www.xenocafe.com/tutorials/li...boot/index.php

Cheers,

Evo2.
 
1 members found this post helpful.
Old 09-12-2011, 03:44 PM   #4
KimWill
LQ Newbie
 
Registered: Sep 2011
Distribution: CentOS 5
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks Corp769 and evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 01:33 AM
How to rename my machine icechong Linux - Newbie 5 11-02-2006 01:26 AM
CentOS machine + XP machine = XP invisible for Linux achtung_linux Linux - Networking 10 08-18-2006 04:16 AM
Rename local machine CloudBuilder Linux - Networking 9 10-14-2003 11:51 AM
Machine Rename? Cerillean Linux - Newbie 6 05-13-2002 03:09 AM


All times are GMT -5. The time now is 04:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration