Skip to content

Commit

Permalink
set hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed Jan 16, 2022
1 parent db77e88 commit d9de5c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mac-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
###############################################################################

# Set computer name (as done via System Preferences → Sharing)
#sudo scutil --set ComputerName "macbookpro13"
#sudo scutil --set HostName "macbookpro13"
#sudo scutil --set LocalHostName "macbookpro13"
#sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server \
# NetBIOSName -string "macbookpro13"
sudo scutil --set ComputerName "lars-mbp-14"
sudo scutil --set HostName "lars-mbp-14"
sudo scutil --set LocalHostName "lars-mbp-14"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server \
NetBIOSName -string "lars-mbp-14"

###############################################################################
# Security & Privacy
Expand Down

0 comments on commit d9de5c4

Please sign in to comment.