- Manually install commandline developer tools:
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; xcode_version="$(softwareupdate --list | grep -E --only-matching "Command Line Tools for Xcode-[0-9]+\.[0-9]+" | tail -n 1)" softwareupdate --install "$xcode_version" --verbose rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
- Manually install brew (requires sudo)
- Run the following to download the latest release of this repo and then run the setup script:
setup_repo="$(mktemp -d)" zipball_url="$(curl -s https://api.github.com/repos/will-gant/mac-setup/releases/latest | grep zipball_url | cut -d '"' -f 4)" zip_file="${setup_repo}/repo.zip" curl --location "$zipball_url" --output "${setup_repo}/repo.zip" unzip "$zip_file" -d "$setup_repo" mkdir -p "${HOME}/Library/LaunchAgents" bash ${setup_repo}/*mac-setup*/setup.sh
- Retrieve SSH private key from password manager and copy it into
~/.ssh/id_rsa
with file permissions 400 - Run
eval "$(ssh-agent -s)"
- Run
ssh-add ~/.ssh/id_rsa
- Start and manually setup settings syncing for Brave, Warp and Visual Studio Code
- Run the following to update system settings:
sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool true sudo defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool true # enable firewall sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2 # enable FileVault encryption (interactive) sudo fdesetup enable
-
Notifications
You must be signed in to change notification settings - Fork 0
will-gant/mac-setup
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Script and instructions for myself to get up and running on a new mac
Resources
Stars
Watchers
Forks
Packages 0
No packages published