LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2004, 11:28 AM   #1
jadermf
LQ Newbie
 
Registered: Jan 2004
Location: Sao Luis- MA - BR
Distribution: red hat 9
Posts: 17

Rep: Reputation: 0
How do I change the computer name ??


hello,

How do I change the computer name??
I'm using Red-Hat 9

jader
 
Old 03-18-2004, 11:30 AM   #2
kernel_mustard
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
well, you can try editing /etc/hostname
then you might have to change entries in /etc/hosts as well.
 
Old 03-18-2004, 12:59 PM   #3
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Hello jader!

In the file /etc/sysconfig/network, just set the variable HOSTNAME to the desired name.

for eg...

HOSTNAME=jader

Regards,

amit
 
Old 03-18-2004, 04:39 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
hostname myhostname
 
Old 03-18-2004, 05:35 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,543

Rep: Reputation: 82
You want to grep the /etc/ directory to make sure that you get every file that contains it.
Code:
HappyTux:/home/stephen# grep -r HappyTux /etc/*
/etc/exim/exim.conf:qualify_domain = HappyTux
/etc/exim/exim.conf:local_domains = HappyTux:localhost
/etc/hostname:HappyTux
/etc/hosts:192.168.0.1  HappyTux
/etc/mailname:HappyTux
/etc/mailname.O:HappyTux
/etc/motd:Linux HappyTux 2.4.25 #1 Wed Mar 17 02:40:26 AST 2004 i686 GNU/Linux
/etc/motd.old:Linux HappyTux 2.4.20-bf2.4 #1 Sun Mar 9 07:22:41 UTC 2003 i686 unknown

[snip ssh keys]
 
  


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
Change computer name l23x4 Linux - Networking 8 07-17-2005 10:47 AM
how to change the name of the computer greghua Linux - Software 2 05-24-2005 08:35 PM
how to change the computer name? leduytien Linux - Software 7 02-01-2005 08:03 AM
change computer imagineaxion Mandriva 6 11-17-2004 07:33 AM
How to change computer name? tied2 *BSD 3 09-14-2003 04:43 AM


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