change mac osx hostname

$sudo scutil –set ComputerName “newcompname”
$sudo scutil –set LocalHostName “newhostname”

Advertisements