Find the answer to your Linux question:
Results 1 to 3 of 3
Hi !!!I had given my computer a name when I installed red hat 8. But now the name has switched back to localhost and I have no clue how. How ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2003
    Posts
    8

    Changing computer name


    Hi !!!I had given my computer a name when I installed red hat 8. But now the name has switched back to localhost and I have no clue how. How do I revert back to the old name or change the name of the computer ???


  2. #2
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    try open this file: /etc/sysconfig/network
    it should contain something like
    Code:
    NETWORKING=yes
    HOSTNAME=computername
    I think you should change the name in these files too: (iirc the host file must be change or else sendmail can take a year to start at boot time)
    /etc/hosts
    /etc/HOSTNAME

    I think you should reboot you computer after changing.
    Regards Scienitca (registered user #335819 - http://counter.li.org )
    --
    A master is nothing more than a student who knows something of which he can teach to other students.

  3. #3
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    You dont have to reboot. execute hostname <and your computername> to set the hostname now. /etc/sysconfig/network will be parsed on next boot.
    Regards

    Andutt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •