hostnamectl --static set-hostname yourhostnamegoeshere
now you need to restart the service
systemctl restart systemd-hostnamed
and finally check your new name with
hostname
hostnamectl --static set-hostname yourhostnamegoeshere
now you need to restart the service
systemctl restart systemd-hostnamed
and finally check your new name with
hostname