Last active
December 29, 2015 23:59
-
-
Save zhaorui/7746604 to your computer and use it in GitHub Desktop.
Change hostname in Mac, disable auto-mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get and Set Hostname | |
sudo scutil --get HostName | |
sudo scutil --get ComputerName | |
sudo scutil --get LocalHostName | |
hostname | |
sudo scutil --set HostName billMacMini | |
# Disable automount folder, modify /etc/auto_master, comment the "home" line | |
# Finally, restart the Mac, if you think it's cumbersome, use | |
sudo automount -vc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment