Share

December 11, 2008

Change Mac OS X Hostname

So at my company the number of Mac Desktops and Laptops has been in inscreasing and everytime i turn on my laptop i get a message that the hostname is in use and the hostname after a year or use is not at Macintosh-10.local.

To fix this issue i ran the following command.

sudo scutil --set HostName myname-macbook-pro

restart type in your password, restart terminal and you should see the new name