Skip to content
kingo-pod

All guides · Mac · USB stick

Mac setup from the USB stick

Same result as the Mac guide, but the ~14 GB of images come off the instructor's stick.

On this page

This is the setup path for the instructor’s USB stick: the ~14 GB of container images come from the stick instead of the internet. You still need Wi-Fi for a few small tools (a few hundred MB; up to ~1 GB on a Mac that has never had Homebrew) — nothing near the 10 GB of the normal path.

Already installed? You don’t need this page again — starting, stopping, updating, your files and fixing things all live in Using the stack on a Mac.

Before you start

  • An Apple-Silicon Mac (M1 or newer — any Mac from 2021 on).
  • 8 GB RAM (16 GB recommended) — setup installs the class’s abp set of services (Langflow, n8n, CloudBeaver, Qdrant, database), which needs 4 GB; the everyday guide explains how to switch sets later — and about 30 GB free disk space during setup: the ~14 GB image file and the ~14 GB of images it loads sit side by side for a few minutes. The file is deleted at the end, leaving ~20 GB in use. Tighter than that? See “Tight on disk space?” in Step 5 — loading straight from the stick needs no copy, so ~20 GB is enough.
  • The instructor’s USB stick. It holds two image files; kingo-images-arm64.tar is the one for your Mac (the other, -amd64, is for Windows PCs).
  • How long? About 20–30 minutes: a few minutes for Homebrew, ~5–10 to copy off the stick, ~3 to load the images, the rest small tools over Wi-Fi.

Step 1 — Install Homebrew (do this while you wait for the stick)

Homebrew is the Mac’s standard software installer; the setup script uses it to install the container engine. Two groups skip this step: if typing brew --version in Terminal shows a version number, you already have it — and if Docker Desktop is running, the script installs nothing at all.

Everyone else:

  1. Open the Terminal app (press ⌘ Space, type Terminal, press Enter).
  2. Open https://brew.sh in your browser. Right under “Install Homebrew” the page shows one long install command with a copy button — copy it, paste it into Terminal, and press Enter. It asks for your Mac password (typing stays invisible — that’s normal) and takes a few minutes.
  3. If the installer ends by printing “Next steps” with commands to run, copy, paste, and run those too (they put brew on your PATH).

Step 2 — Get the class folder

Open a new Terminal window (⌘ N — so it picks up Homebrew), copy this command with its copy button (one long line), paste it, and press Enter — it downloads the class folder (a few MB, this is not the big download) into your Home folder:

cd ~ && { git clone https://github.com/frankhuettner/kingo-pod.git 2>/dev/null || true; } && cd ~/kingo-pod && git pull --ff-only

A window pops up asking to install the “Command Line Developer Tools”? That can happen if you skipped Homebrew (Docker Desktop users). Click Install, wait for it to finish, then run the command above again.

Step 3 — Copy the images from the stick

  1. Plug in the USB stick and open it in Finder.
  2. In a second Finder window, open your Home folder (Finder menu: Go → Home) — the kingo-pod folder from Step 2 is there.
  3. Drag kingo-images-arm64.tar from the stick into the kingo-pod folder. (That is the Mac file — ignore kingo-images-amd64.tar, which is for Windows.)

Is the file safe? The setup script checks it before using it: every bundle’s fingerprint (a SHA-256 checksum) is stored in the class repo you cloned in Step 2, so it arrives over the internet from GitHub — not on the stick. If the copy is damaged, incomplete, or not the class file, the script stops and says so instead of loading it.

Simpler: skip this step. Leave the stick plugged in and go straight to Step 4 — the setup script finds it by itself, copies the file, and deletes that copy again once everything works, so you never spend 14 GB of disk on it. Dragging is just the version you can watch happen; then the file is yours and you delete it in Step 5.

The copy takes ~5–10 minutes and is the only part that needs the stick — hand it to the next student as soon as the copy is done. You do not need to “eject” it first: nothing is ever written to the stick, so once the copy finishes just unplug it and pass it on. (If macOS says “Disk not ejected properly,” that is harmless here — nothing was being written to it.)

Step 4 — Run the setup script

Copy this into the Terminal window and press Enter:

cd ~/kingo-pod && bash setup/setup-mac.sh

The script finds the copied kingo-images-arm64.tar by itself: it picks a container engine, checks your ports, loads the images from the file (~3 minutes) instead of downloading them, starts everything, and verifies it. It is safe to re-run if it stops partway — and a re-run does not need the stick again.

Step 5 — Did it work?

You’re done when the script prints SMOKE OK followed by your personal table of addresses and logins. Reprint it any time with ./kingo credentials.

The ~14 GB image file is already gone: the script deletes the copy it made once the smoke test passes — the images live in the container engine now. Only if you copied a file into the folder yourself is one still there; this removes it:

rm ~/kingo-pod/kingo-images-*.tar

Tight on disk space? Skip the copy and load straight from the stick: in Step 4, type cd ~/kingo-pod && bash setup/setup-mac.sh (with a space at the end), drag the kingo-images-arm64.tar file from the stick onto the Terminal window, and press Enter. The stick must stay plugged in for the whole setup, and a re-run needs it again.

You’re set up — what now?

Everything from here on lives on one page: your addresses and logins, the commands you need day to day, how to get your own files into Langflow, how to update, and what to do when something breaks — Using the stack on a Mac. That is the page to bookmark.

The class database has a short walkthrough of its own: Using CloudBeaver.

If setup fails

Always start with one command — it checks the usual suspects and tells you what to do:

./kingo doctor
What you see What to do
ERROR: Homebrew is not installed Do Step 1, then re-run the Step 4 command in a new Terminal window.
A dialog asks to install the Command Line Developer Tools Click Install, wait for it to finish, then run the Step 4 command again.

Anything else — a port already in use, the container engine not starting, the stack not coming up — is in Using the stack on a Mac → If something breaks. Still stuck? Screenshot the error and ask the instructor / TA.