The commands and processes I run to setup a new Mac computer
First, install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install the following as needed:
brew install git
brew install yarn
brew install prettier
brew install python
brew install awscli
brew install gnupg
brew install elixir
brew install --cask phoenix
brew install --cask google-chrome
brew install --cask visual-studio-code
brew install --cask pycharm
brew install --cask docker
brew install --cask dotnet
brew install --cask lastpass
brew install --cask slack
brew install --cask postman
brew install --cask notion
brew install --cask zoom
brew install --cask microsoft-outlook
brew install --cask adobe-acrobat-pro
brew install --cask raycast
brew install --cask fig
brew install --cask figma
brew install --cask miro
brew install --cask canva
brew install --cask robo-3t
brew install --cask rocket
Download Node Version Manager (NVM) to download and manage Node versions.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Once that installs, run the following command:
nvm install stable
Create and open bash profile
touch ~/.bash_profile
open -a TextEdit.app ~/.bash_profile
Head over to wherever you save your custom config and copy it into TextEdit and save.
git config --global user.name "Matt Sichterman"
git config --global user.email msichterman1@gmail.com
- Log into GitHub
- Click on your setting under your profile in the top right corner.
- Find your GitHub email address in your Account Settings under the Emails menu option.
- If it is private this will be someone@user.noreply.github.com.
- If your email is verified, it will have a green Primary next to your email address and skip to step 5.
- If your email it is not verified follow THESE steps from Github, then return to these instructions when complete.
- Open Terminal
- In Terminal, run:
brew install gnupg
This and the following step may take a little while, e.g. 15 minutes. Go grab yourself a coffee.
- In Terminal, run:
gpg --version
to validate your installation. Your validation should look like (or newer):
- In Terminal, run the following to generate a GPG key pair:
gpg --full-generate-key
- At the prompt, specify option 4, "RSA (sign only), and press Enter.
- At the prompt, specify 4096 as the key size, press Enter.
- At the prompt, specify 1y as the the length of time the key should be valid, press Enter.
- At the prompt, press Enter to leave the comment blank.
-
Verify that your selections are correct.
-
Enter your user ID information, which should be your real name (ie FirstName LastName).
-
Enter your Hudl email address that is verified in Github.
-
Enter a new passphrase. Keep your secret key secret.
- Keep both the key and your password in a secure location (e.g. a password manager like
LastPass
), and don't lose it.
- Open Finder and navigate to {location} and check to see if you have a gpg.conf file
- If the file does not exist, create it using a text editor and renaming the file with a .conf
- Add the following two lines to your
~/.gnupg/gpg.conf
file.
no-tty
use-agent
- Add the public GPG key to your GitHub account
- Note: Go through steps 11-14 in "generated your GPG key" (noted in step 4 of the guide above) to generate the actual key
-
Follow the steps in this guide
-
In Terminal, run
git config --global commit.gpgsign true
to instruct git to sign all of your commits automatically. -
Run the following command to do some cleanup:
brew uninstall pinentry-mac
- Now install the GPG Suite versions
brew install --cask gpg-suite
-
Once installed, open Spotlight and search for "GPGPreferences", or open system preferences and select "GPGPreferences"
-
Select the Default Key if it is not already selected, and ensure "Store in OS X Keychain" is checked:
-
Update your environment (Terminal):
nano ~/.bash_profile
- And then Add the following line
GPG_TTY=$(tty)
export GPG_TTY
-
And then exit out of the editor (^X) and save the document (Y)
-
And run this command:
source ~/.bash_profile
- Run:
gpgconf --kill gpg-agent
Create ssh key by following the steps:
- Run:
ssh-keygen -t ed25519 -C "<your email>"
- Press Return when asked "Enter file in which to save the key"
- Press Return when asked "Enter passphrase" and "Enter same passphrase again"
- Run:
ls ~/.ssh
and confirmid_ed25519.pub
is present - Run:
pbcopy < ls ~/.ssh/id_ed25519.pub
which copies the file into your clipboard - Add the SSH key into Github:
- Navigate to SSH and GPG tab in Github
- Select "New SSH key"
- Paste the SSH key (pressing Command + V should work as you copied the key into clipboard in previous step)
- Configure SSO → Authorize