- Open the App Store
- Search for 'Xcode' and install
- From Terminal: xcode-select --install
- Browse to http://xquartz.macosforge.org/landing/
- Download the latest DMG and run the XQuartz.pkg
curl -sL https://raw.github.com/ksylvest/setup/master/setup.sh | bash