Skip to content

Instantly share code, notes, and snippets.

@davidmcooper
Forked from jimmynotjim/_instructions.md
Last active August 29, 2015 14:17
Show Gist options
  • Save davidmcooper/f3bc255f8005da57ac45 to your computer and use it in GitHub Desktop.
Save davidmcooper/f3bc255f8005da57ac45 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)

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

Visit GitHub's official guide for instructions.

5. Clone and Install Bash-It

Visit the Bash-It repo for more details.

My personal setup is ahead of @revans, be sure to clone mine and checkout the personal-set-up branch for those changes

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:jimmynotjim/bash-it.git ~/.bash_it
git checkout personal-set-up
~/.bash_it/install.sh

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

6. Clone and Install Phix Terminal Theme

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

7. Clone and Install Brew-It

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

8. Install Rubies

ruby-install ruby 2.0
ruby-install ruby 1.9.3

9. 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

10. Manual App Installs

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

App Store
Manually

11. Install Global Node Packages

npm install -g yo bower grunt-cli

12. Configure Sublime Text

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

13. 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:

14. Set NPM user

npm adduser username

15. 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.github.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