osx/custompkg/root/usr/local/bin/new-system-setup

38 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-10-03 21:17:48 +00:00
#!/bin/bash
# make xcode shut up and give us build tools
sudo xcodebuild -license accept
# enable fde
sudo fdesetup enable
# destroy fv key on all standby events:
sudo pmset -a destroyfvkeyonstandby 1
2016-10-03 21:17:48 +00:00
# enable application firewall
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
sudo defaults write /Library/Preferences/com.apple.alf loggingenabled -bool true
sudo defaults write /Library/Preferences/com.apple.alf stealthenabled -bool false
# hush time machine
sudo defaults write /Library/Preferences/com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
2016-10-04 01:46:38 +00:00
# disable spotlight phone-home systemwide (belt and suspenders)
echo "127.0.0.1 api.smoot.apple.com" | sudo tee -a /etc/hosts
2016-10-03 21:17:48 +00:00
# update software
sudo softwareupdate -i -a
# enable all autoupdates
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE
sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE
sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE
# disable guest user account
sudo defaults write /Library/Preferences/com.apple.AppleFileServer guestAccess -bool false
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server AllowGuestAccess -bool false
2016-10-08 00:40:52 +00:00
# install pip so users can
# pip install --user <pkg>
2016-10-03 21:17:48 +00:00
sudo easy_install pip