Nam Hoai NguyenMy taking notes

Fresh Install MacOS

Nam-Hoai Nguyen
added
updated
This note for me only

Create boot Installer USB

  • Download a full macOS installer from Apple
  • Format USB to "MacOS Extended" (USB must be >= 32GB)
  • Use terminal to create the bootable installer
1# Sequoia
2sudo /Applications/Install\ macOS\ Sequoia.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
3
4# Sonoma
5sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
6
7# Ventura
8sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Keyboard & Trackpad Settings

Go to Keyboard Settings and then
  1. Should choose "U.S" instead of "U.S. International" because with the later, we have underline score below special
    symbols like
    "
  1. For Vietnamese Input method, Don't choose built-in VN input options. Use OpenKey instead
    (Need to allow this app in
    Privacy & Security if you don't want to turn off Gate keeper) because there have
    uncomfortable underline when we type and I have problem when typing in some apps like Messenger,...
      • The OpenKey support auto switch input method smart: You're using Skype with V mode but
        when you switch to Terminal the input method will be automatically
        E mode
      • The OpenKey support both Telex and VNI but I recommend you should use VNI to
        avoid conflicts when typing English in
        V mode such as as => á, etc
  1. Turn off "Use F1, F2 etc. keys as standard function keys" if you rarely uses them.
  1. Key repeat rate -> Fast, Delay until repeat -> Short to skip delay when holding key

Other useful keyboard tips

  1. Enabled “Three finders to drag”: System Settings -> Accessibility -> Pointer Control -> Trackpad Options
  1. Short switch new desktops: Settings -> Keyboard -> Keyboard Shortcut -> Missing Control -> Checked all "Switch
    to Desktop

Brew

Installation

1/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
2
3# After installation, don't forget adding to PATH
4echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
5eval $(/opt/homebrew/bin/brew shellenv)

Some commands

1# install package
2brew install package
3
4# install app
5brew install --cask app
6
7# search package
8brew search package
9
10# list packages need to upgrade
11brew outdated
12
13# upgrade packages
14brew upgrade

Installation & Configuration CLI Tools

1
2# download dotfiles
3git clone <https://github.com/namnh198/dotfiles> ~/.dotfiles
4
5# go to .dotfiles directory
6cd ~/.dotfiles
7
8# install packages
9brew bundle --file=~/.dotfiles/brew/Brewfile
10
11# config zsh
12stow zsh
13
14# config nvim
15stow nvim
16
17...

Other Settings

  1. Remove delay dock: defaults write com.apple.dock "autohide-delay" -float "0" && killall Dock
  1. Paste as plain text Cmd + Shift + V
  1. Cut & Paste file: Cmd + C -> Cmd + V