If servers are cattle, not pets, what are workstations? They are "show animals"--valuable, pampered beasts when compared to cattle, but in the end, we only keep them as long as they are useful.
We want our Macs to be tools--fungible, flexible and easily rebuilt--and this is a project to make it possible to rebuild a Mac every week.
PREREQUISITES
-
Install XCode Command Line Tools
- (the native Mac git install requires it)
- THERE HAS GOT TO BE A BETTER WAY TO DO THIS
-
Clone this repo:
git clone https://github.com/jodylent/project-show-animal.git
-
Set up any cloud storage used by your dotfiles repo(s).
-
Sign into iCloud (if you use mas to automate Mac App Store)
-
Copy down/up any SSH keys you use for repos
USAGE
-
Modify input_vars.sh
- Set your Git user info
- Set a new hostname
-
Run new_mac.sh
bash /path/to/project-show-animal/new_mac.sh
- Secures your ssh key with
chmod 600 ~/.ssh/id_rsa
if it exists. - Clones and runs Strap:
- Installs Homebrew
- Downloads/accepts license/installs Xcode Command Line Tools
- Downloads
https://github.com/$STRAP_GITHUB_USER/dotfiles
to~/.dotfiles
- Runs any scripts in
~/.dotfiles/setup
- (I symlink in my dotfiles)
- Runs any scripts in
- Downloads Brewfile from
https://github.com/$STRAP_GITHUB_USER/homebrew-brewfile
- Runs
brew bundle --global
- Does other awesome stuff. See the README
- Sets git config for your company URL to use SSH
- Sources ~/.bash_profile
- Installs pip-requirements from
~/.dotfiles/script/pip-requirements.txt
- Installs macOS settings from
~/.dotfiles/script/macos.sh
- Installs application settings from
~/.dotfiles/script/app_settings.sh
(someday, may use https://github.com/lra/mackup) - Syncs git repos using
~/.dotfiles/script/refresh_repos.sh
- Reboots if run with
--reboot
- AWS CLI & Boto config: ~/.aws/{config,credentials}
- Chrome Extensions: any configuration
- Pip/gem install requirements for repos
- System Preferences > Internet Accounts
- Installing anything without a Homebrew cask or formula
- Allow yourself unlimited cosmic power:
sudo su -
visudo -f /etc/sudoers
# Sudo no password -- USE AT YOUR OWN RISK
USERNAME ALL=(ALL) NOPASSWD: ALL
- Open SublimeText > Install Packages to refresh in symlinked configs
- Disable "Smart Quotes" in System Preferences > Keyboard > Text > "Use Smart Quotes and Dashes"
- https://github.com/MikeMcQuaid/strap
- https://github.com/jodylent/dotfiles
- https://github.com/jodylent/homebrew-brewfile
- https://github.com/mathiasbynens/dotfiles/blob/master/.macos
- https://github.com/lra/mackup
- https://github.com/tiiiecherle/osx_install_config