Skip to content

Instantly share code, notes, and snippets.

@mccallus
Forked from soffes/install.markdown
Created March 20, 2012 22:21
Show Gist options
  • Save mccallus/2141888 to your computer and use it in GitHub Desktop.
Save mccallus/2141888 to your computer and use it in GitHub Desktop.

New Machine

Here's what I do after I do a fresh install of Mountain Lion. Things are sorta grouped by type.

General Config

  1. Run Software Update
  2. Start downloading XCode from the App Store
  3. Enable mouse right click
  4. Turn up mouse & trackpad tracking
  5. Clean up dock
  6. Setup Time Machine with external drive
  7. Turn on auto-hiding dock and set to left side
  8. Snap desktop items to grid
  9. Add Hard drives and external drives to desktop
  10. Set default finder folder to home folder

Install Apps

  1. Download apps from the App Store Purchases tab that I commonly use.
  2. Install Skype
  3. Install Transmission
  4. Install VLC
  5. Install Dropbox and change menu bar color in preferences
  6. Install Splashtop Streamer
  7. Install xScope
  8. Install GitHub for Mac
  9. Install Adobe apps
  10. Install Flash (as much I wish I didn't have to)
  11. Install Flux
  12. Install Postbox
  13. Install Pixelmater
  14. Install Sublime Text
  15. Install Base
  16. Install Handbrake
  17. Install iDefrag
  18. Install Omnigraffle
  19. Install MS Office
  20. Install Bamboo Tablet Drivers & Software
  21. Install Winclone

Restore Bootcamp

  1. Startup Winclone and connect Windows Backup drive

Install Unix & Dev Stuff

  1. When XCode download is done, launch it and go to Preferences, Downloads tab, and install the Command Line Tools.

  2. Tell everyone where X-Code Command Tools are

     $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    
  3. Change Terminal to Monaco 12 and install Solarized Color Palate

  4. Install Homebrew

     $ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
    
  5. Check to make sure brew was correctly installed.

     $ brew doctor
     $ brew update
    

You'll need to add the Homebrew directory to your system path, in order to make sure that Homebrew-installed software is given higher priority than any other version. To do so, open your .bash_profile in your user directory and add the following line :

    $ export PATH=/usr/local/bin:$PATH
  1. Install Git

     $ brew install git
    
  2. Setup Sublime Package Manager

  3. Setup Sublime Extensions

Install Python Environment

  1. Install Pip

     $ sudo easy_install pip
    
  2. Install a some Python libraries (pre-reqs)

     $ brew install readline sqlite gdbm pkg-config
    
  3. Install XQuartz

  4. Install Python

     $ brew install python --framework --universal
    
  5. Export Changes to Your Path

     $ export PATH=/usr/local/share/python:$PATH
     # restart Terminal
    
     #Change System Sym Link
    
     $ cd /System/Library/Frameworks/Python.framework/Versions
     $ sudo rm Current
     $ sudo ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current
    

To verify that your installation went as planned, type which python at the command line. You should see /usr/local/bin/python in response. Furthermore, if you type python, you should see Python 2.7.2 launch (type quit() to return to Terminal).

  1. Install Virtualenv

     $ pip install virtualenv
     $ pip install virtualenvwrapper
    
     #Source the virtualenvwrapper script:
     $ source /usr/local/share/python/virtualenvwrapper.sh
    

This will create a hidden virtualenv directory at ~/.virtualenv. Now you can make your first virtual environment:

    $ mkvirtualenv test1

Your new virtualenv test1 comes with a complete install of Python 2.7.2 and its own version of Pip. It is activated by default, so running any pip command will only impact this environment. Note that if you deactivate the virtualenv, you will lose access to any packages installed in it. You can switch between virtualenvs with the workon command.

In order to delete your test virtualenv, run rmvirtualenv test1. Also, to specify a different version of Python, just use mkvirtualenv -p python3.2 test1 (replacing python3.2 with the shell name of your preferred version).

Mountain Lion Dev Setup Guides

http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#python

http://sergeykarayev.com/work/2012-08-08/setting-up-mountain-lion/

http://www.joewandy.com/2012/07/mountain-lion-scientific-development.html

http://metacog.tumblr.com/post/28333408639/setting-up-a-development-environment-on-mountain-lion

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