Skip to content

Instantly share code, notes, and snippets.

@newhavengill
Forked from kevinelliott/osx-10.10-setup.md
Last active August 29, 2015 14:12
Show Gist options
  • Save newhavengill/0fe8cdfa48443dee4d14 to your computer and use it in GitHub Desktop.
Save newhavengill/0fe8cdfa48443dee4d14 to your computer and use it in GitHub Desktop.

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

I was encouraged to fork this and modify it to my heart's content to match my own needs. Thanks to @kevinelliott

Note: I manage my dotfiles and vimrc with Homeshick. My environment is hyper customized and is not for everyone's taste.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

Install from Third-Party Websites

  • Browsers

  • Development

    • Dropbox
    • Textmate2 (installed via Cask)
    • Webstorm (installed via Cask)
    • Tmate (installed via Homebrew)
    • Vim v7.4 (installed via Homebrew)
    • Puppet
    • Chef
    • VirtualBox
    • Maven (installed version 3.0.2 via Homebrew)
    • jdk 6
    • jdk 7
    • jdk 8
    • rvm (installed via Dotfiles)
    • nvm (installed via Dotfiles)
    • Yeoman Stack
    • MongoDB (installed via Homebrew)
  • Utilities

  • Virtualization

    • Docker (installed via brew)
    • Vagrant (installed via Cask)
  • Training

    • Excercism (installed via brew binary)

#Xcode Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools

#Homebrew

Run Xcode and accept the license

Homebrew can not install properly until this occurs.

Install Homebrew

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

At the time of this writing, brew doctor says that Xcode 6.1 is required, which means downloading it from the Apple Developer Center until it is released in the Mac App Store.

Install Homebrew extension Cask

brew install caskroom/cask/brew-cask

** Install Homebrew binary

brew tap homebrew/binary
```

## Install common applications via Homebrew
```bash
brew install ack autojump automake colordiff curl git \
             hub icoutils libmemcached memcached openssl ossp-uuid qt \
             readline redis wget libxml2
```

## Install applications via Homebrew
```bash
brew update
brew tap homebrew/versions
brew tap nviennot/tmate

brew install vim
brew install tmate
brew install maven30
brew install mongodb
```
## Tmux
```
brew install tmux
brew install reattach-to-user-namespace
brew install cmatrix
```

## Install applications via Homebrew Cask
```bash

brew cask install awareness
brew cask install google-chrome
brew cask install joinme
brew cask install iterm2
brew cask install webstorm
brew cask install spotify
brew cask install vagrant
brew cask install vagrant-manager
brew cask install textmate2
brew cask install slack
```
## Install applications via Homebrew binary
````bash
brew install exercism

#Shell

Global Set Up

Call homeshick.sh to install dotfiles and vimrc

https://gist.githubusercontent.com/newhavengill/11e92538ed89ca7e9c56/raw/homeshick.sh

Local Set Up

* RVM
* NVM
* Heroku Toolbelt

Javascript

Yeoman Stack

npm install -g yo bower grunt-cli
npm install -g generator-webapp

Optional OS X Preferences

#Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02

#Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

#Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

#Show the ~/Library folder
chflags nohidden ~/Library

#Store screenshots in subfolder on desktop
mkdir ~/Desktop/Screenshots
defaults write com.apple.screencapture location ~/Desktop/Screenshots

Apache Configuration

Local Apache2 Config

Set hostname (Optional)

sudo scutil --set HostName SpaceX-Falcon-9

#Git

Setup Github Keys

# check existing keys
ls -al ~/.ssh

# create new key if one diesn't exist
ssh-keygen -t rsa -C "jgillcentral@gmail.com"

# start the ssh-agent in the background
eval "$(ssh-agent -s)"
# Agent pid 59566
ssh-add ~/.ssh/id_rsa

# Copies the contents of the id_rsa.pub file to your clipboard. Paste in Github.com
pbcopy < ~/.ssh/id_rsa.pub

# Test connection
ssh -T git@github.com

Server

Docker

brew install docker boot2docker
boot2docker init
boot2docker up

Database

PostGres

brew install postgres --no-ossp-uuid
brew pin postgres

PostgreSQL Settings

# Initialize db if none exists already
initdb /usr/local/var/postgres

# Create launchctl script
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/VERSION/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/

# Edit launchctl script (set to not start automatically and keepalive false)
subl ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

# Inject launchctl script
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

# Start PostgreSQL
start pg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment