Skip to content

Instantly share code, notes, and snippets.

@jakeboxer
Forked from soffes/install.markdown
Created October 17, 2011 02:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakeboxer/1291839 to your computer and use it in GitHub Desktop.
Save jakeboxer/1291839 to your computer and use it in GitHub Desktop.

New Machine

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

General Config

  1. Run Software Update
  2. Start downloading Xcode
  3. Disable auto-bright and turn brightness all the way up
  4. Enable mouse right click
  5. Turn up mouse & trackpad tracking
  6. Control-F7 to enable better tabbing
  7. Disable energy saver dimming and up sleep times
  8. Clean up dock
  9. Setup Time Machine with Time Capsule
  10. Clean up menu bar. Remove Bluetooth, Sound, and Time Machine.
  11. Turn on auto-hiding dock and magnification
  12. Change default Finder sorting to sort by name
  13. Snap desktop items to grid
  14. Disable Dashboard as a space

Install Apps

  1. Download apps from the App Store Purchases tab that I commonly use. Here's the main ones:
  2. Install Growl and set to start at login
  3. Install Rogie HUD Growl Theme and set as default
  4. Install Dropbox and change menu bar color in preferences
  5. Change Spotlight shortcut to Option-Space
  6. Install Alfred and change shortcut to Command-Space
  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. Setup iChat
  12. Setup Mail

Install Unix Stuff

  1. Create and own /usr/local

     $ sudo mkdir /usr/local
     $ sudo chown -R $USER /usr/local
     $ sudo chmod -R 775 /usr/local
    
  2. Create /usr/local/bin

     $ mkdir /usr/local/bin
    
  3. Download TextMate and setup mate command

  4. Install Xcode

  5. Change Terminal to Monaco 12

  6. Install Homebrew

     $ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
    
  7. Install Git

     $ brew install git
    
  8. Install my dotfiles and use zsh

     $ chsh -s /bin/zsh
     $ cd ~
     $ git init
     $ git remote add origin http://github.com/samsoffes/dotfiles.git
     $ git pull origin master
     $ SetFile -a "V" ~/Readme.markdown
    
  9. Edit ~/.gitconfig and change my name and email to yours.

  10. Ignore everything in home (add a * line to the ~/.git/info/exclude file)

  11. Install kdiff3. After copying it to your /Applications folder, symlink it:

    $ cd /usr/local/bin
    $ ln -s /Applications/kdiff3.app/Contents/MacOS/kdiff3
    
  12. Install my scripts

    $ git clone https://github.com/samsoffes/bin.git ~/bin
    

Install TextMate Plugins

  1. Install MissingDrawer plugin

     $ curl -L https://github.com/downloads/jezdez/textmate-missingdrawer/MissingDrawer-0.4.0.tmplugin.zip | tar -xf - && open MissingDrawer.tmplugin
    
  2. Install SASS bundle

     $ git clone https://github.com/fluxsaas/sass-textmate-bundle.git "Ruby-Saas-Alternative-Syntax.tmbundle"
     $ open Ruby-Saas-Alternative-Syntax.tmbundle
    
  3. Install SCSS bundle

     $ git clone https://github.com/kuroir/SCSS.tmbundle.git
     $ open SCSS.tmbundle
    
  4. Install Railscasts themes

     $ git clone http://github.com/ryanb/textmate-themes.git
     $ open textmate-themes/railscasts.tmTheme
     $ open textmate-themes/ryan-light.tmTheme
     $ rm -rf textmate-themes
    

Install Ruby Environment

  1. Install Ruby 1.9.2 with rbenv and ruby-build:

     $ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
     # Restart shell
     $ git clone git://github.com/sstephenson/ruby-build.git
     $ cd ruby-build
     $ ./install.sh
     $ cd ..
     $ rm -rf ruby-build
     $ ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290
     $ rbenv rehash
     $ rbenv global 1.9.2-p290
    
  2. Install Bundler

     # Restart your shell before running
     $ gem install bundler --pre
     $ rbenv rehash
    
  3. Install PostgreSQL

     $ brew install postgresql
     $ initdb /usr/local/var/postgres
     # Note: The following command contains the version. You may need to change this depending on what installed.
     $ cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents
     $ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
     $ env ARCHFLAGS="-arch x86_64" gem install pg
    
  4. Install Memcached

     $ brew install memcached
    
  5. Install Redis

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