Setting a Hostname

Debian-based systems use the file /etc/hostname to read the hostname of the system at boot time and to set up the hostname using the init script /etc/init.d/hostname.sh.

To change the hostname of the DT78xx, perform the following steps:

  1. Open the network configuration file /etc/hostname using an editor of your choosing. The following example uses the vi editor:

# vi /etc/hostname

  1. Replace the existing hostname with the name that you want to use. In the following example, the name DT7816_Lab is used for the hostname.

 DT7816_Lab

  1. Save and close the file.

  1. Apply the changes without rebooting by entering the following command:

# /etc/init.d/hostname.sh start