Set a Custom Hostname in Armbian - hakehardware/comet GitHub Wiki

On a fresh install of Armbian you typically get a host name of something like

nanopc-cm3588-nas

Although this is great, I like to give my computers fun names. For my COMETs I name them all COMET and then some phonetic alphabet like "cometbravo" (I know, fun). So anyways, it is pretty easy!

First run

sudo hostnamectl set-hostname <YOUR HOSTNAME>

Replacing "YOUR HOSTNAME" with the hostname you want. Remember that it should be between 1-63 characters, use lowercase, avoid special characters, no spaces, should not start or end with a hyphen.

image

Next, edit the hosts file

sudo nano /etc/hosts

You will want to replace all references to the previous hostname

image

Then press CTRL+X, then Y, then ENTER to save. You will need to reboot or logout for the changes to take effect. Once you log back in you should see the update!

image