Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-16-2004, 11:59 AM   #1
LQ Newbie
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
give my machine a name

How do I give my machine a name? All the other machines on my LAN are running windows and have names. The DHCP server entry for my machine is blank.
Old 02-16-2004, 12:05 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
If you use the dhcpcd client then add a -h <name> to the command arguements.
Old 02-16-2004, 12:06 PM   #3
LQ Newbie
Registered: Feb 2004
Location: The netherlands
Distribution: Gentoo
Posts: 11

Rep: Reputation: 0

vim /etc/hostname

Or your favorite text editor...

Type in your machine's name. For example, the only thing in that file on my computer is: aphrodite

Save and quit.

Restart to see the change!
Old 02-16-2004, 12:07 PM   #4
Senior Member
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
Look in /etc/sysconfig/network if you have a static IP address.

Since you said it's DHCP, it's probably in /etc/hostname or /etc/hosts

You should have a hostname in the /etc/hostname file for your computer already. Also look in /etc/hosts

Check these out and edit them to name your PC and get back to us


As I was typing....everyone else answered

Last edited by Whitehat; 02-16-2004 at 12:13 PM.
Old 02-16-2004, 12:10 PM   #5
LQ Newbie
Registered: Feb 2004
Location: The netherlands
Distribution: Gentoo
Posts: 11

Rep: Reputation: 0
Originally posted by Whitehat

As I was typing....everyone else answered
Yep, I'm entertaining myself by seeing how many questions I can answer until somebody gets around to answering my question!


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
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 01:23 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 11:20 AM
How to give my Linux machine a name?? lemay_jeff Linux - Newbie 2 04-02-2004 10:17 PM
Linux PDC - How Do I give the Samba User Local Admin Rights on XP machine? Vince0000 Linux - Networking 4 12-18-2003 03:54 AM
How to install redhat linux on windows machine? please give detailed info.. superman254 Linux - Software 1 11-16-2000 06:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration