Change Hostname on Mac OSX#

sudo scutil --set HostName my-hostname