germanny
11/23/2013 - 5:50 PM

Setup OSX 10.9 Mavericks

Setup OSX 10.9 Mavericks

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.

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.

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:Bash-it/bash-it.git
~/.bash_it/install.sh

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

6. Install Material Theme

Visit my OSX Phix Theme repo for more details.

cd ~/ && curl -O https://gist.githubusercontent.com/mvaneijgen/4c56701215847dd5ddcf/raw/d78a58ac38197f3b46afc38617e31a07f39370d2/material-theme.terminal && open ./material-theme.terminal

Open Terminal > Preferences (or CMD + ,) and select "Default" to make Material Theme 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 gulp

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