Share your knowledge at the LQ Wiki.
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 08-22-2004, 11:29 AM   #1
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Changing my computer name

I have looked in previous threads to find how to permanently change my computer name to something cooler. Unfortuantely, most of them suggest "hostname <newname here>"
but that only works for each boot session and resets itself on startup.

the other suggestions seem very complicated and changing lots of files.

just wanted to know if there is a standard way of changing my computer name from "00-45454-545454 etc...." to something meaningful?
Old 08-22-2004, 11:38 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you have such a hostname it means it's assigned by your ISP (it seems you're using DHCP). In your situation the easiest solution would be to add the command changing your hostname to starting scripts. An example of such script is /etc/rc.d/rc.local. You can add something like 'hostname mymachine' at the end of it.


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
Changing Computer Name chris21000 Linux - Networking 1 11-28-2004 04:45 AM
CHanging Computer name minm Linux - Newbie 4 08-20-2004 02:44 PM
Changing Computer Name Tank400 Mandriva 6 04-22-2004 09:47 AM
Computer name/Domain name changing tweselak Linux - Newbie 4 07-31-2003 03:29 PM
Changing Computer Name Lorddraco98 Slackware 6 04-24-2002 06:02 AM > Forums > Linux Forums > Linux - Newbie

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