Review your favorite Linux distribution.
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 01-31-2005, 11:41 PM   #1
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, 01:41 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,917

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Try editing /etc/hosts file (need to be root) eg: localhost.localdomain localhost name

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

Rep: Reputation: 32
edit your /etc/HOSTNAME file.
Old 02-01-2005, 03:04 AM   #4
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
Or as root type hostname (whatever you want the name to be) then press enter.
Old 02-01-2005, 03:29 AM   #5
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, 07:47 AM   #6
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, 07:51 AM   #7
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 !


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

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