Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Latest commit

 

History

History
140 lines (93 loc) · 5.17 KB

setup-osx.md

File metadata and controls

140 lines (93 loc) · 5.17 KB

Setup Mac OS X

This file represents a guide to make a clean install in Mac OS. Here is located all commands and procediments that I have to do to make a perfect install.

1. Backup files/folder before setup

I always try save my files and folder in a cloud storage for not have to do any backup, but I can't save some things, so I do a backup with these items. But the procedure is simple:

  • First, move the ~/Sites folder to /Volumes/Dev/Sites
  • After this, have same folders that I copy for my external hard disk:
~/Downloads
~/Pictures
~/Movies
~/Music
~/Library/Fonts
  • Backup the Adobe preferences (Photoshop, Illustrator, Lightroom) within the folder ~/Library/Preferences
  • And finally, export local databases into ~/Dropbox/personall/to-backup/databases

It's a very quick process.

2. Full and clean OSX Install

To make a full and clean OSX install have many steps that you have to follow. So, before anything is very important create a boot disc with a OSX install file. I won't show how you make to format your Mac, but if you want learn, this site has a good tutorial for this.

3. Run Software Update

Make sure everything is up to date.

4. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
  3. Then go to the terminal and install "Command Line Tools":
$ xcode-select --install

Notice this only works for Mac OS X Mavericks (10.9). For earlier versions, continue to use the in-app download in Xcode.

5. Install Dotfiles

For shell I'm using oh-my-zsh, because it's very simple to install and configure. I just have to make a few simple configurations:

  • Install oh-my-zsh with these commands:
# install via curl
$ curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# copy .zshrc template
$ cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# set zsh as your default shell
$ chsh -s /bin/zsh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH=$PATH:$HOME/.rvm/bin
export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  • Create file <username>.conf in folder /etc/apache2/users with this lines:
<Directory "/Users/<username>/Sites/">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>
  • Copy gitconfig to root folder
  • And put these other dotfiles into ~/.oh-my-zsh/custom folder.

6. Install Applications

Many softwares can be installed through homebrew-cask which makes the process way simpler. To install is too simple:

$ brew tap phinze/cask
$ brew install brew-cask

To facilitate I made a file containing a list of apps that always install. Simply run via curl:

$ curl -L https://raw.github.com/pedronauck/my-workflow/master/utils/apps.sh | sh

Just make sure to move all apps from /opt/homebrew-cask/Caskroom/ to /Applications. And to remove all installations files from /Library/Caches/Homebrew.

7. Configure Applications

So, the first thing is restore all folders of the backup. After this, have some configurations in specific apps that has to be made.

After restore fonts, music, Adobe preferences and others, go to ~/Library/Application Suport/Sublime Text 3 delete Packages folder and clone this repository instead.

8. Set my SSH Key in Github/Bitbucket

Visit GitHub's official guide for instructions.

From that point on you're going to be able to do some git operations with GitHub \o/

7. Set Chrome Canary as default browser

  1. Launch Safari
  2. Apple ➜ Preferences
  3. General ➜ Default Web Browser
  4. Select “Chrome Canary” from the drop-down menu

9. Install Alfred Workflows

Load alfred preferences through ~/Dropbox/personal/apps/alfred and set Alfred to save preferences in Dropbox.

10. Download IE test VMs for VirtualBox

These take a while to download, so maybe do it on a separate day as a background process.

# IE8 - XP
$ curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"

# IE9 - Win7
$ curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE9_Win7/IE9.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"

# IE10 - Win8
$ curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}"