April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
- Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
- At least 16GB unified memory for Gemma 4 (default 8B)
- macOS with Homebrew installed
April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
| #!/bin/bash | |
| # Installs the XCode command line tools if you don't have them | |
| xcode-select --install | |
| # Installs brew if you don't have it | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Makes your account the owner of /usr/local, which is preferred on single user Macs | |
| sudo chown -R `whoami` /usr/local | |
| # Installs all the dependencies for building libtorrent and rtorrent | |
| brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c | |
| # Uninstall libtorrent-rasterbar if you already have it |