LinuxQuestions.org
Review your favorite Linux distribution.
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 05-11-2002, 11:53 AM   #1
Cerillean
LQ Newbie
 
Registered: May 2002
Posts: 5

Rep: Reputation: 0
Machine Rename?


How do you change a machine's name? No documentation I've read mentions this and web searches have been vague about this at best.
 
Old 05-11-2002, 12:12 PM   #2
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
just change your /etc/hosts...............pls correct me if I am wrong
 
Old 05-11-2002, 05:40 PM   #3
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
open a console, type (as root or su) "hostname *****".
(***=new computer name)
 
Old 05-11-2002, 06:04 PM   #4
Cerillean
LQ Newbie
 
Registered: May 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Druaga
open a console, type (as root or su) "hostname *****".
(***=new computer name)
That doesn't seem to do anything. I'm running Mandrake 8.1. Is there anything else I need to do? Reboot? Logout?
 
Old 05-12-2002, 12:49 AM   #5
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
Quote:
Originally posted by Cerillean


That doesn't seem to do anything. I'm running Mandrake 8.1. Is there anything else I need to do? Reboot? Logout?
if it didnt show an error, then it probly worked. When you log out and log in again it will show "user@newhostname#" in the console. You might have to do "ifconfig eth0 down", that will bring down (turn off) youy eth0 interface, then do "ifconfig eth0 up".

But it will also work if you reboot.
 
Old 05-12-2002, 11:41 AM   #6
Cerillean
LQ Newbie
 
Registered: May 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Logging out and in didn't help. However, running netconf and then rebooting did the trick.
 
Old 05-13-2002, 03:09 AM   #7
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
replace your old hostname in /etc/hosts by new hostname.
also change /etc/sysconfig/networking
{i don't remember exact name since i am on a windows m/c now}

reading /etc/rc.sysinit will help you to find the file containing hostname.
 
  


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
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 01:23 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 11:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM
Rename local machine CloudBuilder Linux - Networking 9 10-14-2003 11:51 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration