Changing the hostname on Debian

From banana_wiki
Jump to: navigation, search

Either you get a VPS with a stupid hostname or you want to change the one you initially set this how to permanenty change the hostname of a Debian based box.

First we need to edit `/etc/hostname` and save in the hostname we want

Then we run:

/etc/init.d/hostname.sh start