Backup the following before doing anything
- Chrome Bookmarks
- Dropbox, Box, etc.
- Music / iTunes how to backup
- iPhone
- Contacts
- Messages
- Push any branches
- Check downloads folder
- Check desktop files
- Export any data from important apps
- SSH Keys
Before doing anything:
- Install Xcode
- Install Xcode command line tools (preferences > downloads) Note: Don't install Ruby 1.9.3 before doing this, you might run into problems :(
xcode-select --install
Note, you might be able to install this via the App Store as of Sierra.
- Install iTerm2 and import preferences
- Install Homebrew and verify installation:
brew doctor
- Install zshell
Setup
.zsh
scripts
binaries=(
ack
tree
phantomjs
pip
redis
)
echo "installing binaries..."
brew install ${binaries[@]}
brew install git
git --version
Make sure you are using the version of Git you just installed. If you're not, you are probably using OSX Git and you should add export PATH="/usr/local/bin:$PATH"
to your .bash-profile
or .zshrc
link
ssh-keygen -t rsa -C <email>
#copy ssh key to github.com
subl ~/.ssh/id_rsa.pub
#test connection
ssh -T [email protected]
#set git config values
git config --global user.name <name>
git config --global user.email <email>
git config --global github.user <username>
git config --global github.token <token>
git config --global core.editor "subl -w"
git config --global color.ui true
If you have issues authenticating after setting up SSH keys, it's likely because you have two-factor authentication enabled. This blog post will help make things right (create and add an Oauth token in the Github admin).
Other Resources
- Install RVM and verify installation:
rvm requirements
- Start Installing Rubies using:
rvm install <ruby version>
- Install Rails amd verify installation
gem install rails
rails -v
Resources:
- http://dean.io/setting-up-a-ruby-on-rails-development-environment-on-mavericks/
- https://gorails.com/setup/osx/10.9-mavericks
- http://jeffcohenonline.com/installing-rails
- http://www.createdbypete.com/articles/ruby-on-rails-development-setup-for-mac-osx/ (Uses rbenv, not rvm)
- http://www.computersnyou.com/2673/2013/10/install-ruby-rails-macos-x-mavericks-10-9-mysql-step-step/
- http://mattzago.com/blog/2013/11/16/installing-rvm-on-mavericks
- http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac
Follow this guide: https://opensource.com/article/19/5/python-3-default-mac
brew install pyenv
Then, add this to ~/.zshrc
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
https://opensource.com/article/19/5/python-3-default-mac
- Import Preferences
- Install Fonts
- Import Custom Theme
- Install Packages (link)
- Add
export EDITOR="subl -w" # Add Sublime Text
to.zshrc
- Symlink
subl
to Sublime Text 2 (link):
ln -s /Applications/Sublime\ Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
https://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/
brew install postgresql
If you can't enter the psql session, try running:
createdb
And don't forget to update preferences. You'll also need to follow the postgres upgrade guides to update any data, if necessary.
Alternatively, use the Postgres app
- https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres
- http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac-with-homebrew-and-lunchy/
- https://www.codefellows.org/blog/how-to-install-postgresql
brew install mysql
mysql --version
- http://blog.joefallon.net/2013/10/install-mysql-on-mac-osx-using-homebrew/
- http://dev.mysql.com/doc/refman/5.0/en/macosx-installation.html
brew install sqlite
sqlite --version
http://www.sqlite.org/download.html
Install via Node Version Manager
xQuartz is a dependency of R and cannot be downloaded via Homebrew.
brew tap homebrew/science
brew install r
- https://davidsimpson.me/2013/02/26/installing-r-on-os-x/
- https://xquartz.macosforge.org/landing/
- https://www.nesono.com/node/355=
- http://apple.stackexchange.com/questions/121401/how-do-i-install-r-on-os-x
- http://www.sr.bham.ac.uk/~ajrs/R/r-getting_started.html
Inspired by this awesome environment setup guide: https://gist.github.com/g3d/2709563