Skip to content

Instantly share code, notes, and snippets.

@genomics-geek
Last active November 20, 2017 17:58
Show Gist options
  • Save genomics-geek/e3b6823cd03272f0ba8268cf9063c335 to your computer and use it in GitHub Desktop.
Save genomics-geek/e3b6823cd03272f0ba8268cf9063c335 to your computer and use it in GitHub Desktop.
Setting up your MacOSX machine as a dev machine

Guide to set up Mac OSX from a fresh reinstall of the OS

Note:

For new versions of Mac OSX (10.12+), you will most likely run into some errors. To avoid that, install XCode found here

Install Git

https://sourceforge.net/projects/git-osx-installer/files/

git config --global user.name "[Full Name]"
git config --global user.email "[Email]"

Create ~/.bash_profile file

Example of contents of my .bash_profile can be found here

Install Homebrew

Follow this guide for help!

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

brew doctor
brew tap caskroom/cask
brew tap homebrew/science
brew tap homebrew/python
brew tap homebrew/versions
brew update
brew upgrade

Install Brew packages

brew install wget
brew install gcc
brew install pyenv
brew install pyenv-virtualenv
brew install plenv
brew install autoenv
brew install perl-build
brew install go
brew install Caskroom/cask/java
brew install scala
brew install sbt
brew install subversion --universal --with-java --with-python
brew install mercurial
brew install editorconfig
brew install mysql
brew install redis
brew install rabbitmq
brew install mongodb
brew install nvm
brew install node
brew install nginx
brew install htop
brew install graphviz

Make directories for install brew packages

mkdir ~/.nvm
mkdir $GOPATH/src/github.com/[github-username]
mkdir ~/.virtualenvs

Create your ssh key

ssh-keygen -t rsa -C "[label]"

Install Python2 and Python3

pyenv install 2.7.11
pyenv install 3.5.1

Set Python2 as global version and install virtualenv

pyenv global 3.5.1
gpip install --upgrade pip setuptools wheel virtualenv

Desktop Apps

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