Skip to content

Instantly share code, notes, and snippets.

@bengourley
Created March 21, 2012 21:00
Show Gist options
  • Save bengourley/2152795 to your computer and use it in GitHub Desktop.
Save bengourley/2152795 to your computer and use it in GitHub Desktop.
Setting up OS X from scratch

Setting up my fresh OS X install from scratch:

  • Install xcode (once installed go to Xcode->Preferences->Components to download command line tools, then sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ to point to things like opendiff)
  • Install purchased apps from AppStore
  • Install Dropbox
  • Install Chrome, Firefox
  • Install brew
  • brew install git
  • brew install mongo
  • mkdir -p /data/db sudo chgrp admin /data/db sudo chmod g+w /data/db
  • ln -s ~/Dropbox/dotfiles/.zshrc ~/.zshrc
  • ln -s ~/Dropbox/dotfiles/.ssh ~/.ssh
  • ln -s ~/Dropbox/dotfiles/.vim ~/.vim
  • ln -s ~/Dropbox/dotfiles/.vim/vimrc ~/.vimrc
  • ln -s ~/Dropbox/dotfiles/.npmrc ~/.npmrc
  • Install node from .dmg
  • npm install n -g
  • n 0.4.12 n stable n latest
  • npm install nodemon -g
  • Show hidden files in finder (ugly but useful) defaults write com.apple.Finder AppleShowAllFiles YES
  • Show file extensions in finder Finder->Preferences->Advanced
  • Set key repeat rate higher and delay shorter System Preferences->Keyboard
  • Set keyboard interaction on all dialogs System Preferences->Keyboard->Keyboard Shortcuts
  • Install SublimeText 2, add package manager and install SublimeLinter, SublimeCodeIntel
  • Install GitHub for Mac
  • Switch image zoom smoothing off (⌘⌥\)
  • Fix apachebench: Download https://github.com/radiospiel/ApacheBench-Lion and replace /usr/sbin/ab
@Relequestual
Copy link

Just used part of this (At last!) Don't need xcode atm but still needed the commandline stuff so used https://github.com/kennethreitz/osx-gcc-installer/ which seems to work ok.

@bengourley
Copy link
Author

Cool. I don't use xcode but some of the stuff that comes with it is useful, e.g. iOS simulator.

@BenConstable
Copy link

This has been very helpful for setting up my new laptop, thanks man!

I made a little script to symlink the dotfiles, makes it a bit quicker. I've got it stored in with the dotfiles in Dropbox, so you can just run ruby ~/Dropbox/dotfiles/dotfiles.rb to get them in place.

See https://gist.github.com/3159538

@bengourley
Copy link
Author

bengourley commented Jul 22, 2012 via email

@bengourley
Copy link
Author

bengourley commented Jul 22, 2012 via email

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