Configuring Mac OS X 10.8.4 for web development

Mon, 07/29/2013 - 16:46 -- admin

Here are my steps to configuring a new Mac OS X 10.8.4 laptop for my needs:

  1. Install XCode via the App Store
    1. The next two commands you install from within XCode
    2. Launch XCode and go to XCode > Preferences > Downloads > Components
    3. You'll see the next two items in that list
  2. Install XCode/Command Line Tools
    1. rvm compilation will fail without this.
  3. Install XCode/iOS6 Simulator
  4. Install homebrew
  5. brew install git zsh
  6. Enable scheduled checks of brew via launchd:
    1. cd ~/Library/LaunchAgents
    2. git clone https://github.com/mkalmes/brewupdate.git
    3. mv brewupdate/net.mkalmes.brewupdate.plist ~/Library/LaunchAgents
    4. launchctl load ~/Library/LaunchAgents/net.mkalmes/brewupdate.plist
  7. Install "Oh-my-zsh" (you must install git before)
  8. Update ~/.zshrc so that plugins=(git osx vi-mode)
  9. Add Homebrew API token, which eliminates a cap on searches from github by adding to ~/.zshrc export HOMEBREW_GITHUB_API_TOKEN=<numvalue> Get your token here.
    1. Add brew autocomplete to zsh:
      1. mkdir -p ~/.zsh/func
      2. ln -s "$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh" ~/.zsh/func/_brew
    2. add to ~/.zshrc
      1. fpath=($HOME/.zsh/func $fpath)
      2. typeset -U fpath
  10. Install Compass
    1. One process I found was based on rbenv but this failed for me under brew
    2. curl -L https://get.rvm.io | bash -s stable #installs rvm, h/t here
    3. source /Users/USERNAME/.rvm/scripts/rvm
    4. brew install libksba
    5. rvm install 1.9.3 # installs ruby
    6. gem install compass #gem will include the sass and other dependencies
  11. brew install macvim
  12. mkdir ~/Applications
  13. brew linksapps puts a symlink to macvim in ~/Applications. However, this doesn't "play well" with spotlight, which is how I like to launch apps. Here's one recommended fix.
  14. Download and install XQuartz # required for inkscape
    1. Note that inkscape's binary is not aliased as is MacVim
  15. brew install p7zip lftp inkscape lynx links elinks imagemagick tidy # this takes a long time, maybe 40 minutes
    1. The inkscape depedencies icu4c, gettext, readline, and libffi render notices about non-brew compilation that call icu4c
  16. brew install fuse4x # brewed separately due to complexity of compilation
    1. Note the instruction text alert after the fuse4x-kext completes, and do it.
    2. H/t to this brilliant write up of the installation process
  17. (Google Chrome was installed)
  18. Install LastPass
  19. Download and install Gimp for Mac.
    1. Pending: how to compile the "Save for Web" plugin for Gimp
  20. Download and install Bitstream Vera TT fonts
  21. Download and install VirtualBox
  22. Run the "xdissent/ievms" script here .
    1. This will allow you to run Win/IE versions 6 - 10 under VirtualBox
  23. Download and install Firefox
    1. Install plugins: LastPass
    2. Install plugins: It's All Text
  24. Install Dropbox