Essential Mac Operations Guide

macOS

Prerequisite

Because macOS is a similar kernel to other Linux, operations involving system changes will require you to enter your password.

However, Macbook provides a way to verify fingerprints instead of passwords

Therefore, the first step is to enter your fingerprints

dock => Launchpad => Preferences => Touch ID & Password => Touch ID

Basic settings

  1. The movement speed of the mouse pointer, dock => Launcher => Preferences => Mouse => Tracking speed
  2. The direction of the mouse wheel, dock => Launchpad => Preferences => Mouse => Scroll direction
  3. Key positions of ctrl+c and ctrl+v, dock => Launchpad => Preferences => Search modifier keys
  4. The terminal uses touch ID instead of password:

dock => Launchpad => Terminal, enter the following command

Terminal window
sudo sed -i ".bak" '2s/^/auth sufficient pam_tid.so\'$'\n/g' /etc/pam.d/sudo

Re-enter the password (the password will not be visible when entering the password) and press Enter

  1. xcode compilation tools
Terminal window
xcode-select --install

Basic tools

####oh-my-zsh

dock => Launchpad => Terminal

Terminal window
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

homebrew

Terminal window
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

####javasdk

Terminal window
brew install openjdk@17

sourcetree

Official website: https://www.sourcetreeapp.com