Go to TogaWare.com Home Page. Note this image has an 
              incorrect black background on MS - Use Linux!

Debian GNU/Linux

Hostname Changes

next up previous contents index

Changing your hostname is not so trivial because it sometimes permeates to various files in /etc/. But the starting point to change your hostname from porsche to zafira is:

  # hostname zafira

This alone will not suffice as the change in hostname will not survive a reboot. You need to edit /etc/hostname which is where the name is obtained at boot time.

Then search through /etc, for example, for occurances of the old name, just in case:

  # grep -r inco /etc

Typically you will find the hostname hardwired in /etc/hosts, /etc/mailname, /etc/motd, and various apache, ppp, ssh, and exim files, depending on your setup. These can probably be edited by hand to replace the host name.

Users have reported making such changes without problem. Some people have reported problems rebooting after making some of these changes so be careful!


Copyright (c) 2003-2004 Graham.Williams@togaware.com