Panduan Setup Lengkap
Panduan ini menjelaskan setup macOS fresh dari awal hingga environment development yang fully configured.
Prasyarat
- MacBook Air M2 dengan macOS 27.0
- Apple ID
- Koneksi internet
- Akses admin
Fase 1: Setup Sistem
1.1 Konfigurasi Awal macOS
- Selesaikan macOS Setup Assistant
- Sign in dengan Apple ID
- Enable FileVault (opsional tapi direkomendasikan)
- Setup Touch ID
- Konfigurasi Time Zone dan Language
1.2 System Preferences
Nilai lengkap yang perlu direproduksi didokumentasikan di
MACOS.md. Versi singkatnya:
# Dark/light otomatis (mengikuti jadwal)
defaults write NSGlobalDomain AppleInterfaceStyleSwitchesAutomatically -bool true
# Auto-hide Dock
defaults write com.apple.dock autohide -bool true
# Disable launch animation
defaults write com.apple.dock launchanim -bool false
# Set locale
defaults write NSGlobalDomain AppleLocale -string "en_ID"
defaults write NSGlobalDomain AppleLanguages -array "en-ID" "id-ID"
# Restart Dock dan Finder untuk apply
killall Dock Finder
MACOS.mdmemuat blokdefaults writelengkap untuk semua nilai non-default, termasuk hot corners, Finder, trackpad, screenshot, dan clock.
Fase 2: Development Tools
2.1 Xcode Command Line Tools
xcode-select --installIkuti prompt untuk instalasi. Verifikasi dengan:
xcode-select -p
# Harus output: /Library/Developer/CommandLineTools2.2 Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Tambahkan ke PATH (Apple Silicon):
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"2.3 Paket Inti
# Development tools
brew install git-delta lazygit ripgrep starship tmux yazi
# Libraries
brew install ca-certificates jemalloc libevent libgit2 libssh2 llhttp ncurses oniguruma openssl@3 pcre2 utf8proc
# OpenCode v2
brew install anomalyco/tap/opencode-v2Cara paling andal:
brew bundle install --file=Brewfiledari repositori ini.
2.4 Tool di Luar Homebrew
uv, ty, dan CLI writer tidak dikelola Homebrew, jadi brew bundle install
tidak memulihkannya. Lihat TOOLCHAIN.md untuk detailnya.
# uv (pengelola Python) — sekaligus memasang ~/.local/bin/env
curl -LsSf https://astral.sh/uv/install.sh | sh
# ty (type checker Python)
curl -LsSf https://astral.sh/ty/install.sh | sh
# CLI writer dipasang dari dalam Writer.app:
# menu Writer > Shell Command: Install 'writer' Command in PATHFase 3: Aplikasi
3.1 Kaku Terminal
brew install --cask kaku3.2 Dia Browser
Download dari website resmi dan drag ke Applications.
3.3 Vorssaint
brew install --cask vorssaintFase 4: Instalasi Dotfiles
4.1 Clone Repositori
git clone <repo-url> ~/Developer/dotfiles
cd ~/Developer/dotfiles4.2 Jalankan Installer
# Pratinjau dulu: tidak mengubah apa pun
make install DRY_RUN=1
# Terapkan
make installInstaller membuat symlink dari ~/.config/, ~/.gitconfig, dan ~/.zshrc
ke repositori. Daftar symlink ada di scripts/lib/symlinks.sh. File asli yang
sudah ada dicadangkan lebih dulu ke ~/.dotfiles-backup/.
4.3 Pasang Git Hooks
make hooksGit hooks tidak ikut ter-version-control, jadi langkah ini wajib diulang di setiap clone baru. Tanpa ini, pre-commit quality gate tidak aktif.
4.4 Konfigurasi Shell
Installer menyiapkan ~/.zshrc dengan integrasi Kaku. Restart terminal atau
jalankan:
source ~/.zshrcFase 5: Permission
5.1 Grant Permission
Buka System Settings > Privacy & Security dan grant:
| Permission | Aplikasi |
|---|---|
| Accessibility | Kaku, Vorssaint |
| Full Disk Access | Kaku, OpenCode |
| Screen Recording | Kaku |
5.2 Verifikasi Permission
# Cek database TCC
sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db \
"SELECT service, client FROM access WHERE auth_value=2;"Fase 6: Konfigurasi Akhir
6.1 Konfigurasi Git
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git config --global core.editor "nano"
git config --global init.defaultBranch "main"6.2 SSH Keys
ssh-keygen -t ed25519 -C "your.email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed255196.3 Verifikasi Instalasi
cd ~/Developer/dotfiles
make verifyTroubleshooting
Homebrew tidak ditemukan
eval "$(/opt/homebrew/bin/brew shellenv)"Symlink tidak bekerja
cd ~/Developer/dotfiles
make clean
make installPermission tidak berlaku
- Restart aplikasi
- Cek System Settings > Privacy & Security
- Hapus dan tambahkan ulang permission
Shell tidak load konfigurasi
source ~/.zshrcChecklist Pasca-Setup
- Semua aplikasi terinstall dan terkonfigurasi
- Permission sudah di-grant
- Git terkonfigurasi dengan info user
- SSH key sudah di-generate
- Dotfiles sudah ter-symlink
- Konfigurasi shell sudah loaded
- Backup terjadwal (Time Machine atau serupa)