/osx-for-developers

Check list to set up your shiny OS X for software development

Set up your shiny OS X for software development

Table of Contents


The Checklist

Command Line Tools

  1. Get Xcode from App Store
  2. Open Xcode
  3. Go to Preferences
  4. Downloads > Components > Command Line Tools > Install

Command Line Tools (CLI)

xcode-select --install

Homebrew

Follow instructions from http://brew.sh

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Homebrew dupes

brew tap homebrew/dupes

Homebrew versions

brew tap homebrew/versions

Homebrew Cask (http://caskroom.io/)

brew install caskroom/cask/brew-cask

Dropbox

brew cask install dropbpox

Google Drive

brew cask install google-drive

Google Chrome

brew cask install google-chrome

iTerm2

brew cask install iterm2

Git

brew install git
brew install git-extras # Git utilities
brew install tig        # front-end to Git (ncurses)
brew install gh         # GitHub wrapper

Ack

brew install ack

Grep

brew install grep

Perl

brew install perl
brew link perl --force

Python

brew install python
pip install --upgrade setuptools
pip install --upgrade pip

Freetype

brew install freetype
ln -s /usr/local/opt/freetype/include/freetype2 /usr/local/include/freetype

Fonts

brew cask install caskroom/fonts/font-hack # Hack

Curl

brew install curl
brew link curl --force

Bash

brew install bash

Findutils

brew install findutils

GNU tar

brew install gnu-tar

GNU sed

brew install gnu-sed

GnuPG

brew install gpg

ZSH

brew install zsh
sudo mv /etc/zshenv /etc/zprofile # system-wide environment settings

Vim

brew install vim
brew cask install macvim
mkdir ~/Applications
brew linkapps

ngrok

brew install ngrok2
brew link --overwrite ngrok2 # In case ngrok 1.x is already installed
ngrok http 3000 # To start tunneling the HTTP port 3000

Gist client

brew install gist
gist --login

Tmux

brew install reattach-to-user-namespace
brew install tmux

Rainbarf

brew install rainbarf

Docker

brew install boot2docker
brew install docker-compose
boot2docker init

Docker hub

docker login

Postgresql

brew install postgresql
initdb /usr/local/var/postgres -E utf8

Postgresql: Avoid passing a host

sudo mkdir /var/pgsql_socket
sudo ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/

Postgresql: Install pg gem on x86_64

ARCHFLAGS="-arch x86_64" gem install pg

MySQL

brew install mysql

Redis

brew install redis

Capybara dependencies

brew install qt5
brew link --force qt5

Imagemagick

brew install imagemagick --disable-openmp --build-from-source

libMagick: Dynamic libraries

cd /usr/local/Cellar/imagemagick/6.8.6-3/lib
ln -s libMagick++-6.Q16.1.dylib libMagick++.dylib

Ghostscript

brew install gs

TOR - OPTIONAL

brew install tor

Ruby

brew install rbenv
rbenv init
rbenv install -l
rbenv install 2.4.2

Install rubies

ruby-install ruby 1.9.3
ruby-install ruby 2.2.0
ruby-install ruby 2.2.2
...

Nodejs

brew install node

npm

curl https://npmjs.org/install.sh | sh

nvm

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

VirtualBox

brew cask install virtualbox

Vagrant

brew cask install vagrant

Keep VirtualBox Guest Additions updated

vagrant plugin install vagrant-vbguest

Java Runtime

http://support.apple.com/kb/dl1572

Microsoft IE OVA images

http://www.modern.ie/en-us/virtualization-tools

curl -O http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE6_WinXP.ova.zip
curl -O http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE7_Vista.ova.zip
curl -O http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_Win7.zip
curl -O http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7.zip
curl -O http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8.ova.zip