Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-18-2004, 12:28 PM   #1
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 ??


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

Old 03-18-2004, 12:30 PM   #2
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, 01:59 PM   #3
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...



Old 03-18-2004, 05:39 PM   #4
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, 06:35 PM   #5
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,593

Rep: Reputation: 96
You want to grep the /etc/ directory to make sure that you get every file that contains it.
HappyTux:/home/stephen# grep -r HappyTux /etc/*
/etc/exim/exim.conf:qualify_domain = HappyTux
/etc/exim/exim.conf:local_domains = HappyTux:localhost
/etc/hosts:  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]


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

All times are GMT -5. The time now is 02:38 AM.

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