Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericrasch/ee6b6ae172c842b1a852 to your computer and use it in GitHub Desktop.
Save ericrasch/ee6b6ae172c842b1a852 to your computer and use it in GitHub Desktop.

Setup OSX 10.9 with a Clean Install

After two years of tinkering my machine is a bit all over. With Mavericks I wanted to start fresh

1. Run Software Update

Make sure everything is up to date.

Software Update

2. Install XCode

  • Open the App Store and search for XCode
  • Open XCode after it finishes installing and accpet the "Terms of Service"

3. Set OSX to show hidden files

defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder

4. Configure Git and Generate SSH keys for GitHub

Copy the attached gitconfig settings and set your user info (left out to avoid issues)

Be sure to setup your SSH keys first... visit GitHub's official guide for instructions.

cd ~/ && curl -O https://gist.github.com/jimmynotjim/7622492/raw/5e895d1da525594c14e1052feb5c9587fb99a41c/.gitconfig
git config --global user.name "Your Name Here"
git config --global user.email youremail@example.com

5. Install Homebrew

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

Run brew doctor after installing to ensure it installed correctly.

6. Install Bash-It (via git clone)

Visit the Bash-It repo for more details.

Chruby (install via brew install chruby) is required for the rest of the setup, be sure to enable it when setting up Bash-It plugins

git clone git@github.com:revans/bash-it.git ~/.bash_it
~/.bash_it/install.sh

Open a new terminal window to use the Bash-It options you've set

7. Install Phix Terminal Theme (via git clone)

Visit my OSX Phix Theme repo for more details.

mkdir ~/Repos && cd $_
git clone git@github.com:jimmynotjim/OSX-Terminal-Phix-Theme.git
open ~/Repos/OSX-Terminal-Phix-Theme/Phix_Dark.terminal

Open Terminal > Preferences (or CMD + ,) and select "Default" to make Phix the default theme

8. Install Brew-It (via git clone)

Many apps can be installed through Homebrew and homebrew-cask which makes the process way simpler

Visit my Brew-It repo for more details.

git clone git@github.com:jimmynotjim/brew-it.git ~/.brew_it
~/.brew_it/install.sh
brew update
brew upgrade

9. Install Rubies

ruby-install ruby 2.0
ruby-install ruby 1.9.3

10. Update PATH

Open .bash_profile and make the following edits

  • Add local bin and local sbin ahead of $PATH /usr/local/bin:/usr/local/sbin:
  • Switch Ruby version in PATH ~/.gem/ruby/1.9.3/bin:
  • Add chruby ruby-1.9.3 to the end of the file

11. Manual App Installs

Unfortunately some apps aren't available through homebrew, so you need to install it manually.

App Store
Manually

12. Install Global Node Packages

npm install -g yo bower grunt-cli gulp

13. Configure Sublime Text

ln -s /opt/homebrew-cask/Caskroom/sublime-text3/3047/Sublime\ Text.app/Contents/SharedSupport/bin/subl  /usr/local/bin/subl

14. Install Alfred Workflows

Download Alfred Workflow Searcher

WF:

  • Audio Switch
  • Colors
  • Dash
  • Domainr
  • Emoji
  • Github Commands
  • Kill Process
  • MyIP
  • Package Managers
  • TerminalFinder
  • TimeIn
  • Transmit Favorites
  • VirtualBox Control

Manual:

15. Set NPM user

npm adduser username

16. Download IE test VMs for VirtualBox

These take a while to download, so maybe do it on a separate day as a background process.

# IE8 - XP
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"

# IE9 - Win7
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7/IE9.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"

# IE10 - Win8
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}"

16. Download a base Ubuntu box for Vagrant

I'm using Vagrant to setup a few VMs locally for development.

Ubuntu 12.04 LTS 64-bits

vagrant box add precise64 http://files.vagrantup.com/precise64.box

17 Configure Environment for Genesis

vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-list
curl https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub >> ~/.ssh/authorized_keys
gem install capistrano -v 2.15.3
gem install capistrano-ext colored

All done, have fun!

This process has been borrowed from here, here, here and here

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