LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-31-2005, 10:41 PM   #1
leduytien
Member
 
Registered: Oct 2004
Posts: 39

Rep: Reputation: 15
how to change the computer name?


I installed FC3 and the installer automatically choose a name for my computer in an "unreadable" format, like this: user_name@S0106000d610e02fd

How to change that name?
 
Old 02-01-2005, 12:41 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,239

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
Try editing /etc/hosts file (need to be root) eg:

127.0.0.1 localhost.localdomain localhost
1.2.3.4 name.subnet.net name

use /sbin/ifconfig to get the replacement for 1.2.3.4 ie eth0 inet address.
You'll need to reboot.
 
Old 02-01-2005, 12:41 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 31
edit your /etc/HOSTNAME file.
 
Old 02-01-2005, 02:04 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,296

Rep: Reputation: 205Reputation: 205Reputation: 205
Or as root type hostname (whatever you want the name to be) then press enter.
 
Old 02-01-2005, 02:29 AM   #5
fleluhern
LQ Newbie
 
Registered: Aug 2003
Location: Lyon (France)
Distribution: RH ES3, RH ES4, Fedora Core 3 - Solaris 8/10
Posts: 4

Rep: Reputation: 0
Your computer name is in the /etc/sysconfig/network file (HOSTNAME=xxxx).
 
Old 02-01-2005, 06:47 AM   #6
jontyrhodes
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
After editing the /etc/sysconfig/networking file, no need to restart the computer, use /etc/rc.d/init.d/network restart
 
Old 02-01-2005, 06:51 AM   #7
p.roumegoux
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
the hostname command will change your /etc/HOSTNAME file
You have to change your /etc/hosts

Make all these changes before to reboot and in the same terminal. This to avoid problems that may occur with the X server.

In Redhat 9 for example, I recommand you use redhat-config-network that will be easier to use (than to edit files) and make changes you may have forgotten (/etc/dommainname,...).

see you !
 
  


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
Change computer name? amer_58 Linux - Newbie 2 04-02-2005 08:10 AM
change computer imagineaxion Mandriva 6 11-17-2004 07:33 AM
How do I change the computer name ?? jadermf Linux - Software 4 03-18-2004 05:35 PM


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