LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-16-2007, 02:35 PM   #1
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Rep: Reputation: 15
How to change the computer name of fedora core 7 permanently?


How to change the computer name of fedora core 7 permanently?

Right now it shows as [root@new-host-2 ~], i want to change this to different name permanently. Could anyone please help me.

Thanks,
TP
 
Old 06-16-2007, 02:48 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look in /etc/sysconfig/network. I think you'll find the hostname there under "HOSTNAME="
 
Old 06-16-2007, 02:54 PM   #3
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
This is what I found in \etc\sysconfig\network

NETWORKING=yes
HOSTNAME=localhost.localdomain


I am not sure what to change here.
I would like to change root@new-host-2 ==> root@myhome. Please can anybody help me.

Thanks,
TP
 
Old 06-16-2007, 02:59 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
what do you get if you typ

hostname

from the terminal?
 
Old 06-16-2007, 03:12 PM   #5
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Hi billymayday,

This is what I get when I type hostname.
[root@new-host-2 ~]# hostname
new-host-2

Thanks,
TJ
 
Old 06-16-2007, 03:23 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you getting a hostname by dhcp?
 
Old 06-16-2007, 03:29 PM   #7
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Yes, thats correct.
 
  


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
Fedora Core 5 Computer Providing A Windows Xp Computer With Internet FedoraNewbie Linux - Networking 6 10-28-2006 11:24 PM
NIC Inactive when I restart my Fedora Core 5 computer maheshmahajan Linux - Networking 1 08-24-2006 09:46 AM
Can't get computer to boot after installing fedora core 5 along with WinXP gbiv007 Linux - Newbie 1 05-20-2006 02:50 PM
How-to install fedora core to old computer? tyyp88 Fedora 5 02-13-2006 02:14 PM
my computer specs: is this supported in Fedora Core 1? sweet*amber Fedora 5 05-04-2004 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 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