General Setup and App Install on MacOS Catalina (10.15.7)
Open up /Applications/Utilities/Terminal.app
Mac OS Command Line toolkit has a bunch of utilities, and compilers. All of these commands come out of the box for Linux.
This check isn't that reliable.
xcode-select -p
Try one of the commands below on a fresh install of MacOS Catalina this should prompt the install of command line tools. if its not installed
git
make
GCC
#this might not work anymore
xcode-select --install
NOTE
You might get this error
Can’t install the software because it is not currently available from the Software Update server.
Download from Apple Developers Site
Sign in with your Apple ID and download from Apple's Developers site.
Installing Homebrew and CLI tool for installing applications.
It also prompts to install Command Line Tools if you don't have it installed.
brew --version
Install Command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew upgrade
brew cleanup
#list brew
brew list
brew list --cask
Most Popular installs
brew install \git \wget
#browsers
brew cask install \google-chrome \firefox \opera
#apps
brew cask install \visual-studio-code \rectangle \figma
#OPTIONAL
#Other Text Editors
brew cask install \atom \sublime-text
#Other App if you want
brew cask install \slack \spotify \zoom \vlc \iterm2 \postman \postgres
Catalina comes with zsh as the default shell.
check version
zsh --version
which zsh
brew install zsh
chsh -s /bin/zsh
If prompted enter 0
Better to install node with nvm instead of homebrew. Allows us the flexibility to easily update node, have multiple version as well.
Allow you to manage your node version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
restart terminal
nvm --version
if you're comand nvm isn't recognized try adding the code to your shell profile
we're using zsh so you would add it to.
nano ~/.zshrc
#.zshrc
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# This loads nvm
- ~/.bash_profile
- ~/.profile
- ~/.bashrc
nvm install node
nvm use node
node -v && npm -v
Later down the road if you want to update NVM
nvm install node --reinstall-packages-from=node
https://nodejs.org/en/download/releases/ Find node vesion
nvm install xx.xx
nvm use xx.xx
#list node version
nvm ls
And to set the default:
nvm alias default xx.xx
#list nvm
nvm alias default xx.xx
#check version
node -v && npm -v
Version Control
Add Default User Info
git --version
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Create a SSH Key
ssh-keygen
save as /home/username/.ssh/id_rsa
Type in passphrase this will be extra password for security make sure you remember this or store it somewhere safe.