Getting started: build a private research workstation on a USB stick¶
This is a single, followable story. Do it in order. By the end you will have a portable, encrypted workstation that runs a local LLM, browses the web through Tor, and keeps your notes in a persistent volume you can unlock on any supported machine.
If you get stuck at any step, consult ../troubleshooting.md and ../../KNOWN_ISSUES.md.
What you'll build¶
A bootable USB stick containing:
- A hardened Sway-based Linux session that runs from RAM
- A LUKS-encrypted persistence volume for your notes, models, and browser state
- A local LLM pulled via Ollama
- A Firefox profile routed through Tor for research
- A note-taking setup whose data survives reboots
Time: ~30 minutes, not counting model download. Cost: One USB stick (32 GB minimum; 64 GB recommended).
What you'll need¶
Hardware:
- USB 3.x stick, 32 GB or larger (64 GB if you want to pull a mid-sized model)
- A machine that can boot from USB (x86_64 or ARM64 depending on the image you choose)
- Keyboard, display, and a way to connect to the internet
Software:
- The PAI image matching your hardware, downloaded from the official source
- A flashing tool — on Windows the PAI
flash.ps1PowerShell one-liner is recommended;dd,balenaEtcher, or the graphical Rufus alternative also work - The published checksum/signature for the image
Recommended before you start:
- Close anything with unsaved work on the host machine.
- Pick a strong passphrase for persistence and write it down somewhere safe until you've committed it to memory.
Step 1 — Flash and verify¶
- Compute the checksum of the downloaded image and compare it against the published value. If it does not match exactly, stop and re-download. See ../installation.md for the exact commands.
- Verify the signature with the PAI signing key. An image that matches the checksum but not the signature is a red flag.
- Flash the image to your USB stick using the flow in ../USB-FLASHING.md. Double-check the target device path — flashing over the wrong disk will destroy it.
You should now have a USB stick that the firmware recognizes as a bootable device.
Step 2 — First boot and persistence¶
- Plug the stick into the target machine and boot into the firmware
menu (usually
F12,F9, orOption). Select the USB device. - At the PAI boot menu, choose PAI (live + persistence setup).
- When the desktop appears, open the Persistence app from the launcher. It will offer to initialize a new encrypted volume on the remaining free space of the stick.
- Enter a strong passphrase. Confirm it. The tool will create a LUKS2 volume and format it.
- Reboot, select PAI (unlock persistence), and enter your passphrase at the pre-boot prompt. (If you hit a keyboard-layout mismatch here, see ../troubleshooting.md.)
From now on, anything you save under ~/persist/ (and opt-in
directories like ~/.ollama and ~/.mozilla) survives reboots.
Step 3 — Pull a model with Ollama¶
- Confirm you're online. The network applet should show a connection.
- Open a terminal and run
ollama ps. It should start the daemon and show an empty table. - Pick a model that fits your hardware. For a laptop with 16 GB RAM and no discrete GPU, start small:
- When the pull finishes, try it:
If throughput feels painful, see ../troubleshooting.md.
The model weights live under ~/.ollama, which is linked into your
persistence volume by default. You won't have to re-download on next
boot.
Step 4 — Enable Tor and set up a research bookmark¶
- Open the network panel and toggle Tor on. Wait for the indicator to turn green. This can take 10–60 seconds; longer on restricted networks.
- Launch Firefox. Visit
about:policiesand confirm the PAI hardening policy is loaded (you should see entries for tracking protection, disabled telemetry, and the Tor SOCKS proxy). - Navigate to a research starting point you'll reuse — for example a preferred search frontend or an academic index. Bookmark it.
- Right-click the bookmark toolbar and pin the bookmark so it survives across sessions.
If Tor won't connect, see ../troubleshooting.md. If Firefox is missing the policy, see ../troubleshooting.md.
Step 5 — Configure a local note-taking app with persistence¶
PAI ships with a simple Markdown notes tool and editors like nvim and
micro. Pick whichever you prefer — the instructions below generalize.
- Create your notes directory inside persistence:
- Open your editor and save a file to
~/notes/first-session.md. Write a sentence. - Reboot, unlock persistence, and confirm the file is still there.
If you skip the symlink and save directly to ~, you will lose the
notes on next reboot — the live home is tmpfs by design.
Step 6 — Back up your persistence header¶
The LUKS header is tiny but irreplaceable. Without it, your passphrase cannot unlock the volume. Back it up now, while everything works.
- Identify the persistence partition (usually the second partition on your USB stick):
- Dump the header to a file on a separate storage device — not the same USB stick:
- Store the backup somewhere private. Anyone with the header and your passphrase can unlock the data. Anyone with just the header cannot.
If you later corrupt the header, restore with luksHeaderRestore using
the same file.
What you learned¶
- How to verify, flash, and boot a PAI image safely.
- How to initialize and unlock an encrypted persistence volume.
- How to pull and run a local model with Ollama, respecting your hardware's limits.
- How to browse through Tor with a hardened Firefox profile.
- How to keep notes that survive reboots — and why naïvely saving to
~does not. - Why backing up the LUKS header is the single most important recovery step.
Next steps¶
- Walk through more scenarios in real-world-use-cases.md.
- Review the architecture overview at ../architecture.md to understand what's running under the hood.
- Read ../../SECURITY.md and ../../PRIVACY.md to understand the threat model you're now inside.
- If something breaks, ../troubleshooting.md is organized by symptom. Beyond that, ../../SUPPORT.md tells you how to file a report.