OS X Machine Setup

Never use $ sudo

Install software

Basic development tools

Follow those instructions (inspired from https://github.com/lewagon/setup/blob/master/second-setup/OSX.md)

# XCode libraries
xcode-select --install
# Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo chown -R $(whoami) $(brew --prefix)/*
brew update
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
install_or_upgrade "git"
install_or_upgrade "wget"
install_or_upgrade "imagemagick"
install_or_upgrade "jq"
install_or_upgrade "openssl"
# Oh my ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# restart the terminal
# Generate a public key
mkdir -p ~/.ssh && ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C "TYPE_YOUR_EMAIL@HERE.com"
cat ~/.ssh/id_ed25519.pub
# Get some dotfiles
git clone git@github.com:lewagon/dotfiles.git
cd dotfiles
# Restart the terminal
# Install RBENV
sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
brew uninstall --force rbenv ruby-build
unset RBENV_ROOT && exec zsh
brew install rbenv ruby-build && echo 'eval "$(rbenv init -)"' >> ~/.zshrc && exec zsh
# Restart the terminal
# Install ruby
rbenv install 2.7.2
rbenv global 2.7.2
# Install some gems
gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit rails
# Install postgres
brew install postgresql@12 && brew services start postgresql@12
# Restart the terminal
# Install redis
brew install redis@4.0
# Then some other tools & libraries
brew install heroku/brew/heroku
brew install nvm
# Restart the terminal
cat ~/.zshrc
# make sure you see the following 2 lines in it:
# export NVM_DIR="$HOME/.nvm"
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"
# Install Node.js
nvm install lts/erbium
# Check out which node version you need on
# https://nodejs.org/en/download/releases/
#Install yarn and some useful add-ons
brew install yarn
yarn global add ember-cli
yarn global add eslint
yarn global add eslint-plugin-ember-suave
yarn global add eslint-plugin-hbs

Clone repositories

Clone every prospectio GitHub account's repository you have access to into your chosen folder.

Configure your computer

Then, also follow those steps:

  • enable filevault on your computer and give the recovery key to IT

And, if needed, have a look at the tips and tricks for productivity in order to make the best setup possible for your machine.