howtos

Change hostname in Debian

As root - run the command:

hostnamectl set-hostname NEW-HOSTNAME

Remember that the hostname can only contain letters, digits, and dashes.

about these howtos

This howto is part of a larger collection of howtos maintained by the author (mostly for his own reference). The source code for the current howto in plain Markdown is available on GitHub. If you have a GitHub account, you can jump straight in, and suggest edits or improvements via the link at the bottom of the page (Improve this page).

made with ❤ by Valera Rozuvan