Categories

Mac OS X, post install steps

[Disclaimer] I don’t like to spend much of my time setting up the tools I want to use; I prefer to be making stuff with them. So this may well not be the best way to setup a development environment, but… having done it twice this week (shiny new MacBook Air and fresh install on iMac), I figured I’d keep notes for future reference. What I do is:

Development environment

  1. Run software update
  2. Homebrew
    • Install homebrew
    • Install Xcode
    • Install some homebrew formulas:
      brew install wget
      brew install git
      brew install mysql
      brew install imagemagick
      brew install sphinx

      (remembering to follow any post-install notes these display)
  3. Ruby
  4. Some common gems

    gem install rails
    gem install bundler
    gem install mysql
    gem install passenger
    gem install gem-open

  5. Main dev software
  6. Customize system
    • I use TinkerTool to see hidden files in Finder.
    • Fork Ryan B’s .dotfiles and customize to suit yourself.
    • Copy over ~/.gitconfig file from a backup
    • Copy over any extra Textmate bundles from a backup
  7. SSH Keys

    I copy over my .ssh config and keys from a backup.

  8. Setup your projects
    • Clone your project files, e.g. from github
    • Install necessary gems, e.g. in each (Rails 3) project: bundle install
    • Setup databases, e.g. for Rails projects rake db:setup
  9. General software

Anything faster, smarter… feel free to share.

Comments

6 Comments so far. Leave a comment below.
  1. Cinderella takes a lot of the heavy lifting out of getting a ruby dev environment set up. Uses chef to automate installing rvm / homebrew etc.

    Installs everything in your home directory, including homebrew. This may or may not be a good thing for you.

    http://www.atmos.org/cinderella/

  2. Great tips!
    When I switched computers a fee months ago I used OS X built in Migration Assistant. Copied everything over from my old mac including hostname and other obscure system files. Though I had problems with, and had to reinstall MacPorts because I migrated from 10.5 to 10.6! Another thing to note is that you’ll get all the old crap you forgot you had on the new machine which could be a bad thing but it avoids loosing something too! No installing software either, just works! Boom! :)

  3. keavy,

    I was tempted to use migration assistant with the MBA, but I bought it the night before I needed to travel with it and the estimated transfer was ~12hrs. Didn’t time this, but certainly got me up and running for current projects pretty quickly and painlessly. Plus, I do just like the clean start feeling :)

    • I agree with you, the clean start feeling is great! Previously I’ve done a lot of diverse development (php/ruby/python, solr/sphinx, mysql/postgres/sqlite, photshop/illustrator (ok, thats not dev work)) so MA has REALLY saved me a lot of installation hours.

      Time Machine can do a pretty good job of migrating just files and apps. Just make sure all files are on the TM disk. First time I did that all Apps weren’t on it ’cause too many new files had taken all the space (oldest (apps) goes first).

  4. If you’d like to see branches and merge in git in a really nice GUI environment, I highly recommend Git Tower: http://www.git-tower.com/

Add Your Comments

Disclaimer
Your email is never published nor shared.
Required
Required
Tips

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <ol> <ul> <li> <strong>

Ready?