Created
February 25, 2014 00:42
-
-
Save maebert/9200359 to your computer and use it in GitHub Desktop.
Setting up a new bac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script automatically installs a bunch of command line (Git, wget, | |
# imagemagick, ...) and GUI (Dropbox, Chrome, Skype, ...) apps on a fresh | |
# Mac. | |
# | |
# It also sets up a Python Scientific Computing environment (matplotlib, | |
# scipy, iPython Notebook, ...) | |
# | |
# Requirement: Have the XCode Command Line Tools installed (download from | |
# https://developer.apple.com/downloads/ ) | |
# ############################################################################ | |
# BREW SETUP | |
# ############################################################################ | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
sudo -v # ask for password only at the beginning | |
brew update | |
brew upgrade | |
brew tap homebrew/versions | |
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
# ############################################################################ | |
# What's missing | |
# ############################################################################ | |
brew install git | |
brew install imagemagick | |
brew install legit | |
legit install | |
brew install qt | |
brew install wget --enable-iri | |
brew install readline | |
brew install sqlite | |
brew install gdbm | |
brew install pkg-config | |
brew install python | |
brew install gfortran | |
brew install freetype | |
brew install libpng | |
brew install pyqt | |
brew install zmq | |
brew install inkscape | |
# ############################################################################ | |
# COCOA APPS | |
# ############################################################################ | |
# Still missing: | |
# ngrok : https://dl.ngrok.com/darwin_amd64/ngrok.zip | |
brew cask install onepassword | |
brew cask install virtualbox | |
brew cask install skype | |
brew cask install slate | |
brew cask install vagrant | |
brew cask install sublime-text | |
brew cask install spotify | |
brew cask install hipchat | |
brew cask install google-chrome | |
brew cask install dropbox | |
brew cask install firefox | |
brew cask install github | |
brew cask install nv-alt | |
brew cask install less-app | |
brew cask install total-terminal | |
brew cask install vlc | |
brew cask install transmission | |
brew cask install shadow-sweeper | |
brew cleanup | |
# ############################################################################ | |
# PYTHON SCIENTIFIC COMPUTING | |
# ############################################################################ | |
# From http://www.lowindata.com/2013/installing-scientific-python-on-mac-os-x/ | |
pip install virtualenv | |
pip install virtualenvwrapper | |
pip install numpy | |
# Fallback: | |
# git clone https://github.com/numpy/numpy.git | |
# pushd numpy | |
# python setup.py build | |
# python setup.py install | |
# pop | |
python -c "import numpy; print '\x1b[36mNumpy {} installed in {}\x1b[39m'.format(numpy.__version__, numpy.__file__)" | |
pip install scipy | |
# Fallback: | |
# git clone https://github.com/scipy/scipy.git | |
# pushd scipy | |
# python setup.py build | |
# python setup.py install | |
# pop | |
python -c "import scipy; print '\x1b[36mscipy {} installed in {}\x1b[39m'.format(scipy.__version__, scipy.__file__)" | |
pip install pyparsing | |
pip install -U -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev | |
pip install ipython | |
# Install QT Binaries from http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-mac-opensource-5.1.1-clang-offline.dmg | |
# install the QT libraries as described | |
# in the text below before continuing | |
export PYTHONPATH=/usr/local/lib/python:$PYTHONPATH | |
pip install pyzmq | |
pip install pygments | |
pip install dateutils | |
pip install jinja2 | |
#.... | |
export PYTHONPATH=/usr/local/lib/python:$PYTHONPATH | |
export PATH=/usr/local/share/python:$PATH | |
source /usr/local/share/python/virtualenvwrapper.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment