Skip to content

jodylent/project-show-animal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-show-animal

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.

Directions:

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
    

What it does:

  • 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
    • 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

Things that have to be done by hand post-run:

  • 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"

Related repos

About

A project to make it possible to rebuild a Mac every week, using https://github.com/MikeMcQuaid/strap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages