Sets and persists a custom hostname on an Ubuntu server.