> On Jan 4, 2017, at 2:50 AM, Andreas Fink <af...@list.fink.org> wrote: > > Can anyone shed light on where the hostname is set/stored in macOS Sierra? >
I don’t even try. Thanks to https://github.com/mathiasbynens/dotfiles/blob/master/.osx <https://github.com/mathiasbynens/dotfiles/blob/master/.osx>, I just use: #!/bin/sh # SetComputerNames.command jrc long ago # set hostname(s) interactively # inspired by # https://github.com/mathiasbynens/dotfiles/blob/master/.osx echo "" echo "Setting your computer name (as done via System Preferences → Sharing)" echo "What would you like it to be?" read COMPUTER_NAME sudo scutil --set ComputerName $COMPUTER_NAME sudo scutil --set HostName $COMPUTER_NAME sudo scutil --set LocalHostName $COMPUTER_NAME sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $COMPUTER_NAME echo "" James R. Cutler james.cut...@consultant.com PGP keys at http://pgp.mit.edu
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com