Search…
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)
1
# XCode libraries
2
xcode-select --install
3
4
# Homebrew
5
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
6
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile
7
eval "$(/opt/homebrew/bin/brew shellenv)"
8
brew update
9
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
10
install_or_upgrade "git"
11
install_or_upgrade "wget"
12
install_or_upgrade "imagemagick"
13
install_or_upgrade "jq"
14
install_or_upgrade "openssl"
15
16
# Oh my ZSH
17
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
18
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
19
# restart the terminal
20
21
# Generate a public key
22
# (Use the email you use to create your Github account)
23
mkdir -p ~/.ssh && ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C "[email protected]"
24
cat ~/.ssh/id_ed25519.pub
25
26
# Once you have that public key
27
# Go to your GitHub settings
28
# Add that SSh key to your account
29
30
# Get some dotfiles
31
git clone [email protected]:lewagon/dotfiles.git
32
cd dotfiles
33
./install.sh
34
# Restart the terminal
35
36
# Install RBENV
37
sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
38
brew uninstall --force rbenv ruby-build
39
unset RBENV_ROOT && exec zsh
40
brew install rbenv ruby-build && echo 'eval "$(rbenv init -)"' >> ~/.zshrc && exec zsh
41
# Restart the terminal
42
43
# Install ruby
44
rbenv install 2.7.2
45
rbenv global 2.7.2
46
# Restart your terminal
47
48
# Install some gems
49
gem install rake bundler rspec rubocop pry pry-byebug hub colored octokit rails
50
51
# Install postgres
52
brew install [email protected] && brew services start [email protected]
53
# Restart the terminal
54
55
# Install redis
56
brew install [email protected]
57
58
# Install watchman
59
brew install watchman
60
61
# Then some other tools & libraries
62
brew install heroku/brew/heroku
63
brew install nvm
64
65
# Restart the terminal
66
cat ~/.zshrc
67
# make sure you see the following 2 lines in it:
68
# export NVM_DIR="$HOME/.nvm"
69
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"
70
71
# On macOS Big Sur with M1 use the following:
72
# [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh"
73
74
# If not : copy those two lines
75
# Open your .zshrc file in a text editor
76
# Past those two lines in the 'Load nvm' part of the file
77
78
# Install Node.js
79
nvm install lts/erbium
80
# Check out which node version you need on
81
# https://nodejs.org/en/download/releases/
82
83
#Install yarn and some useful add-ons
84
brew install yarn
85
yarn global add ember-cli
86
yarn global add eslint
87
yarn global add eslint-plugin-ember-suave
88
yarn global add eslint-plugin-hbs
Copied!

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

Tips and tricks for productivity

  • Change Keyboard's response time (System Preferences > Keyboard)

Last modified 4mo ago