Configuring Hostname

Prev Next

Configuring a custom hostname is important in many environments. This is easily done by editing the file

/opt/fmadio/etc/hostname

Step 1) Confirm current hosname

The default hostname looks similar to below

fmadio@fmadio200v4-636:/opt/fmadio/etc$ cat hostname
fmadio200v4-636
fmadio@fmadio200v4-636:/opt/fmadio/etc$

Step 2) Edit the hostname

Edit the file to update the hostname as required

sudo vi /opt/fmadio/etc/hostname

OR use nano

sudo nano /opt/fmadio/etc/hostname

Step 3) Reboot to ensure hostname is persistent

Reboot the system to ensure the name change is persistent

sudo reboot

NOTE: /etc/hostname is volatile and will not be changed between reboots. It requires updating of /opt/fmadio/etc/hostname