# Provisioning macOS
## System
- Make audio icon visible
- Make bluetooth icon visible
- Set dock size to smallest
- Disable dock recent apps in Dock settings
- Add spacer(s) to dock:
defaults write com.apple.dock persistent-apps -array-add '{tile-type="spacer-tile";}' && killall Dock
## Finder
- Open Finder
- Add Path Drop to toolbar: Right-clock toolbar --> *Customize* --> drag *Path* button to left side, just inboard from forward/back buttons
- Set display preferences: *Finder* --> *Preferences*
- General
- Show on desktop:
- **√** External Disks
- **√** CDs, DVDs, iPods
- New Finder windows show: *Home*
- **√** Open folders in tabs
- Tags
- Rename Blue to Active
- **√** Blue
- Uncheck all others
- Sidebar
- **√** AirDrop
- **√** Applications
- **√** Downloads
- **√** Home
- **√** iCloud
- **√** Computer name
- **√** External
- **√** CDs, DVDs
- **√** Bonjour
- **√** Connected servers
- **√** Recent Tags (TBD?)
- Advanced
- **√** Show all filename extensions
- **√** Show warning before changing extension
- **√** Show warning before emptying trash
- **√** Remove items from Trash after 30 days
- When performing a search: *Current Folder*
- Select Home Directory
- List-mode button --> *View* --> *Show Preview* --> *View* --> *View Options* (*CMD+J*)
- **√** Always Open in list view
- **√** Browser in list view
- Group By: *None*
- Sort By: *Name*
- Icon Size: large
- Text Size: 13~15, to preference
- Show Columns: [only select]
- **√** Date Modified
- **√** Size
- **√** Use relative dates
- **√** Calculate all sizes
- **√** Show icon preview
- *Use as Defaults*
- (optional) Apply to nearly all directories:
- Terminal --> `sudo find / -name .DS_Store -delete; killall Finder`
## Apps
(fun fact, on Windows and Linux, the Google Suite shortcut to strikethu text is ALT+SHIFT+5.. on macOS, it's CMD+Shift+X)
- [x] AdGuard for Safari (App Store)
- https://apps.apple.com/us/app/adguard-for-safari/id1440147259?mt=12
- Initialize all lists in-app
- Disable start-on-system-startup
- Reminders prompt to update manually once a month
- In Safari --> Preferences --> Extensions:
- DISABLE:
- Advanced
- Safari Icon
- Enable:
- Custom
- General
- Other
- Privacy
- Security
- Social
- This setup guarantees safety: the extension can not read or modify any site data.
- [x] Firefox
- https://www.mozilla.org/en-US/firefox/new/
- Settings
- Customize
- Remove pads, all extra elements, set scale, dark mode
- Log In?
- If not, install extensions:
- uBlock Origin - https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
- Add lists
- Dark Reader - https://addons.mozilla.org/en-US/firefox/addon/darkreader/
- Set "Toggle extension" menu to use system light/dark mode
- Preferences
- General --> check default, and disable recommendations
- Home --> new open to blank page, uncheck all home content
- Search --> DuckDuckGo, uncheck suggestions, uncheck Bing, Amazon, eBay
- Privacy --> Strict Protection, set savings, disable data collection, disable notifications
- [x] ~~Joplin Notes~~ moved to .md on Syncthing (standard notes) and links to CryptPad (collaborative notes)
- ~~https://github.com/laurent22/joplin#desktop-applications~~
- [x] Signal Messenger
- https://signal.org/download/
- [x] Markdown writer
- [Mac/Windows] iA Writer - App Store
- [Mac/Windows] Typora - https://typora.io/#download paid bloat now, just use iA Writer
- [Linux] Ghostwriter: http://github.com/wereturtle/ghostwriter/releases/latest
- [x] Syncthing macOS
- Alternate: https://github.com/syncthing/syncthing-macos/releases/latest
- Primary: via Homebrew; `brew install --cask syncthing`
- ALL shared folders must add to Ignore Patterns: (?d).DS_Store
- [ ] DaVinci Resolve video editor
- https://www.blackmagicdesign.com/products/davinciresolve/
- [x] Dozer taskbar cleanup
- Alternate: https://github.com/Mortennn/Dozer/releases/latest
- Primary: `brew install --cask dozer`
- Nord VPN
- https://nordvpn.com/download/
- alternate: the App Store version
- Keka archiver - App Store
- PDF Squeezer 4 - App Store
- https://apps.apple.com/app/id1502111349
- Disk Space Visualizer
- DaisyDisk - App Store
- Bitwarden - website (faster updates)
- https://bitwarden.com/download/
- VMware Horizon Client
## Homebrew
- Install homebrew: https://brew.sh/
--> `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`
- Install htop, glances, OCRmyPDF, youtube-dl, pv tracker:
brew install htop glances ocrmypdf ffmpeg youtube-dl pv
- Install Rectangle window snapper:
brew install --cask rectangle
- Install Syncthing:
brew install --cask syncthing
---
## Data Migration with RSYNC
~~`rsync -avhci <source> <dest>`~~
UPDATE: use `rsync -avhi <source> <dest>` ; `c` option removed because it only affects checksum calculations before sync (files are all still checked after sync)
---
## Server Optimizations
- Show all files: `defaults write com.apple.finder AppleShowAllFiles true; killall Finder`
- Apple --> system preferences --> energy saver --> disable all
- Disable system sleep/wake with lid: `sudo pmset -a lidwake 0` (use "1" to restore functionality)
---
## Reset macOS Video Profile
Run in Terminal:
- sudo rm /Library/Preferences/com.apple.windowserver.plist
- sudo rm /Users/chris/Library/Preferences/ByHost/com.apple.windowserver.*
On reboot, reset PRAM with Option-CMD-P-R