Skip to content

Instantly share code, notes, and snippets.

@bengourley
Created March 21, 2012 21:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@tomgco
Copy link

tomgco commented Mar 21, 2012

brew? :P

@bengourley
Copy link
Author

Sell it to me...

@tomgco
Copy link

tomgco commented Mar 22, 2012

At the moment you need to update git using the package manually, you can easily automate this with brew, if you eventually decide to use more cli software, for example tmux brew can compile it for you, the same can be said if you wanted to install mongo, redis, optipng etc, everything is all contained in one "dependancy manager", personally I find it great for a load of reasons, but mostly I find my self spending less time mucking around compiling / updating these components.

@bengourley
Copy link
Author

Sold! Should I uninstall git first, then install with brew?

@bengourley
Copy link
Author

Also it looks like brew does the permissions on /usr/local for me (looking at install script)

@tomgco
Copy link

tomgco commented Mar 22, 2012

It shouldn't matter about uninstalling git as brew uses it's own install directory, I would recommend checking your PATH in your .zshrc to ensure that brew /usr/local/bin is loaded before /usr/bin ~ However if you are going to uninstall git then this doesn't matter.

@bengourley
Copy link
Author

Yep, went ahead and removed it first anyway.

@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