Changing Hostname

Satish Balay balay at fastmail.fm
Wed Apr 14 21:43:31 UTC 2004



On Wed, 14 Apr 2004, Taylor, ForrestX wrote:

> On Wed, 2004-04-14 at 14:28, Clifford Snow wrote:
> > I'm attempting to change the hostname of my box.  I used the following
> > steps to change the hostname:
> > 1.  Edited /etc/sysconfig/network to change the
> > HOSTNAME=newname.example.com
> > 2.  Edited /etc/hosts to 127.0.0.1 localhost.localdomain localhost
> > newname 
> > 3. Ran /bin/hostname newname
> > 
> > I seem to be missing something because opening a web browser just
> > hangs.  What other places need to be changed to change the hostname?
> 
> You forgot step 0: xhost +localhost.  The X server is no longer able to
> send it's information to the original host name (since you changed it). 
> Restart X (Ctrl+Alt+Backspace) and you should be able to start a
> browser.

And also be consistant with the hostname (in the above 3 steps)

HOSTNAME=newname

Satish





More information about the fedora-list mailing list