# setup.sh reference

`bash setup.sh` without a command shows the help. It runs as a normal user; everything that needs root happens in
**one** sudo call.

## Commands

| Command | What it does |
|---|---|
| `--check` | check the environment (system, kernel, memory, disk space, packages) — changes nothing |
| `--status` | what is installed (all parts with version), is the box running, lock on/off |
| `--install` | first installation (asks first, installs missing packages, builds the box, trial run) |
| `--update` | get a new version (git or package) + check Tor Browser → stop the box → install → build → trial run |
| `--uninstall` | remove everything (asks whether the box data should go too) |
| `--hl=de` / `--hl=en` | only switch the language — no rebuild |
| `--lock-password` | set or change the lock password |
| `--lock-password=off` | remove the lock password (old password + sudo) |
| `--lock-password=reset` | forget the lock password (sudo only) |
| `--desktop-icon=on` / `=off` | desktop icon on/off (no sudo) |

## Options

| Option | Effect |
|---|---|
| `--hl=de\|en` | language for setup, launcher and box (remembered) |
| `--verbose` | everything in detail instead of a progress bar |
| `--yes` | answer all questions with the default (scripts, no terminal) |
| `--force` | with `--update`: reinstall even if everything is up to date |
| `--dry-run` | with `--uninstall`: only show what would be removed |

## Log

Every run: `~/.local/state/onionpod/setup-<date>.log` — everything is in there, even without `--verbose`.

## Other programs

| Program | Purpose |
|---|---|
| `onionpod` | the terminal command (since v1.0.0) — see [Terminal command](./cli.md) |
| `onionpod-open` | the launcher (same as the double-click); `onionpod-open --stop` stops the box |
| `/opt/onionpod/bin/onionpod` | the box program (`start`, `stop`, `status`, `build`, `test`, `transit-open/-close/-verify`, `reset-tor`) — as user `onionpod` via sudo |
