[TriLUG] An easy one...

Benjamin Reed ranger at befunk.com
Thu May 2 14:32:22 EDT 2002


On Thu, 2002-05-02 at 14:23, Chris Knowles wrote:
> OK, here's a question that has been tickling at the back of my head for some 
> time.  
> 
> How do you change the hostname of a computer, permanently, from the 
> command-line?  I know how to do it from the GUI, but how do you do it from 
> the console?
> 
> See, wasn't that horribly easy?  Don't you think less of me now?

on redhat/mandrake/probably others you do:

  hostname <new-hostname>
  vi /etc/sysconfig/network
     [change the HOSTNAME line]

-- 
Ben Reed a.k.a. Ranger Rick (ranger at befunk.com)
http://defiance.dyndns.org/ / http://radio.scenespot.org/
...if humanoids eat chicken, then obviously they'd eat their own
species.  Otherwise they'd just be picking on the chickens. -- Kryten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20020502/de5ea7ec/attachment.pgp>


More information about the TriLUG mailing list