Skip to content

Instantly share code, notes, and snippets.

@adamlogic
Created December 5, 2011 20:07
Show Gist options
  • Save adamlogic/1435139 to your computer and use it in GitHub Desktop.
Save adamlogic/1435139 to your computer and use it in GitHub Desktop.
Setup instructions for developer machine (Ruby)

My setup for Rails dev on OS X Lion

  1. Back up

    A few things to think about:

    • media
      • photos, music, and videos should all be on external drive
    • projects/code
      • make sure all Git repos are pushed up
      • make sure dotfile repos are pushed
    • prefs in Dropbox
      • iTerm/Terminal
      • Adium/iChat
      • Propane
      • PandoraOne
      • Things
      • LaunchBar
      • Divvy
      • 1Password
  2. Clean install of OS X Lion

    • Boot machine from Lion thumb drive (hold option during startup)
    • Open Disk Utility and erase primary HD
    • Begin installation process
  3. Run Software Update (or be interrupted later)

  4. System Preferences

    • General
      • turn off LCD font smoothing (it makes text puffy)
      • uncheck "Restore windows when quitting and re-opening apps"
    • Spotlight
      • remove/change keyboard shortcuts
    • Keyboard
      • fastest key repeat
      • shortest delay until repeat
      • map caps lock to control
      • enable full keyboard access to all controls
    • Trackpad
      • enable tap to click
    • Universal Access
      • enable access for assistive devices
      • zoom options -> check use scroll wheel with modifier keys to zoom
  5. Install Xcode from App Store

  6. Install command line tools for Xcode

    • In Xcode preferences, downloads tab
  7. Install DropBox

  8. Install QuickSilver/Launchbar/Alfred (optional)

  9. Install MacVim

  10. Configure shell for Zsh (zshenv tip)

    chsh -s /bin/zsh
    sudo mv /etc/zshenv /etc/zshrc
    
  11. Install Homebrew

    brew update
    brew install autoconf automake
    brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
    brew doctor
    
  12. Install Git and Ack

    brew install git ack
    
  13. Authenticate machine with Github

    ssh-keygen -t rsa
    

    Press enter to accept default name. Provide a memorable passphrase (or leave blank for pairing).

    cat ~/.ssh/id_rsa.pub | pbcopy
    

    Paste ssh key into your github account

  14. Symlink dotfiles

    cd ~
    mkdir -p projects
    cd projects
    git clone git@github.com:edgecase/pairing-config.git
    cd pairing-config
    rake
    
    cd ~/projects
    git clone git@github.com:edgecase/vim-config.git
    cd vim-config
    rake
    

    Open Vim and run :BundleInstall

  15. Symlink dotfile customizations

    cd ~/projects
    git clone git@github.com:adamlogic/vim-custom-config.git
    ln -s ~/.vim/custom_config ~/projects/vim-custom-config
    
    ln -s ~/.zsh/custom.zsh ~/Dropbox/AppSupport/custom.zsh
    
  16. Install RVM

    rvm install 1.9.2
    rvm install 1.9.3
    rvm 1.9.3 --default
    
  17. Install MySQL

    brew install mysql
    

    Follow instructions printed after install (mysql_install_db and launchctl)

  18. Install Postgres

    brew install postgresql
    

    Follow instructions printed after install (initdb and launchctl)

  19. Install remaining apps and sync prefs w/Dropbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment