LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-22-2004, 12:29 PM   #1
Maverick1182
Member
 
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, 12:38 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
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.
 
  


Reply


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


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