drrobotnik
12/3/2014 - 7:39 PM

new-machine.txt

# install Xcode from app store, then run:

open https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

# agree to apple license agreement
sudo xcodebuild

# agree to developer tools license
sudo gcc

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

# install dev essentials
$ brew install wget git dnsmasq

ssh-keygen -t rsa -C “brandon@caavadesign.com"

# start the ssh-agent in the background
eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_rsa

# pbcopy < ~/.ssh/id_rsa.pub


curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

cp $(brew list dnsmasq | grep /dnsmasq.conf.example$) /usr/local/etc/dnsmasq.conf

sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/

sudo chown root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

echo "address=/dev/127.0.0.1" >> /usr/local/etc/dnsmasq.conf

sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

sudo mkdir -p /etc/resolver

sudo touch /etc/resolver/dev

sudo tee /etc/resolver/dev >/dev/null <<EOF
nameserver 127.0.0.1
EOF

# Note: If your host hijacks 404’s resolver may not work until you change them:
# Go to System Preferences > Advanced > DNS, and add OpenDNS 68.105.28.13 and 68.105.29.13 to search domains.

$ curl -L http://install.ohmyz.sh | sh

# go to vagrant site download page, and download:
open https://www.vagrantup.com/downloads.html

$ open ~/Downloads/$(find vagrant*.dmg)

open https://www.virtualbox.org/wiki/Downloads

$ open ~/Downloads/$(find VirtualBox*.dmg)

vagrant box add laravel/homestead
composer global require "laravel/homestead=~2.0"

echo "export PATH=~/.composer/vendor/bin:$PATH" >> ~/.zshrc

homestead init && homestead edit


# sequel pro download
# Transmit