LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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: Slackware 14.2
Posts: 849

Rep: Reputation: 33
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 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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 !
 
Old 02-01-2005, 08:03 AM   #8
walker
Member
 
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 193

Rep: Reputation: 38
http://www.linuxquestions.org/questi...hreadid=276991
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration