Help answer threads with 0 replies.
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, 10: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, 12:41 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,894

Rep: Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613
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, 12:41 AM   #3
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Rep: Reputation: 33
edit your /etc/HOSTNAME file.
Old 02-01-2005, 02:04 AM   #4
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
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
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
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
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 185

Rep: Reputation: 38


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 PM.

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
Open Source Consulting | Domain Registration