Skip to content

Instantly share code, notes, and snippets.

@moisei
Created May 26, 2019 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moisei/0be8796b36bb219d07656497640d2621 to your computer and use it in GitHub Desktop.
Save moisei/0be8796b36bb219d07656497640d2621 to your computer and use it in GitHub Desktop.
Change hostname in ubuntu 18.04 permanently
change in /etc/cloud/cloud.cfg
preserve_hostname: true
hostnamectl set-hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment