Skip to content

Instantly share code, notes, and snippets.

@sheeley
Created January 28, 2014 05:11
Show Gist options
  • Save sheeley/8662588 to your computer and use it in GitHub Desktop.
Save sheeley/8662588 to your computer and use it in GitHub Desktop.
Headless install Xcode command line tools, node, and homebrew.
#! /bin/bash
# install xcode clt
curl -o clt.dmg https://s3.amazonaws.com/OHSNAP/command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg
hdiutil attach clt.dmg
sudo installer -pkg /Volumes/Command\ Line\ Developer\ Tools/Command\ Line\ Tools\ \(OS\ X\ 10.9\).pkg -target /
# install node
curl -o node.pkg http://nodejs.org/dist/v0.10.25/node-v0.10.25.pkg
sudo installer -pkg node.pkg -target /
# install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@efagerberg
Copy link

it looks like your dmg download path is now invalid. I couldn't find it so I worked around it by scp ing into the vagrant box

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