Skip to content
intentioned-techPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

STOP!!! BEFORE CONTINUING, PLEASE WATCH THE INSTALL VIDEO!!!

Intentioned.tech — Installer

Installs Intentioned.tech, a local-first, privacy-first, GPU-accelerated real-time voice coaching app for social-skills practice.

This repository contains only the installer. The application itself is proprietary and is downloaded during installation using your licence credentials.

Requirements

  • Linux or macOS
  • Python 3.12 — exactly 3.12, and you install it yourself (see below)
  • curl — used to fetch the installer and to download your licensed build
  • A C/C++ compiler, for the llama-cpp-python (GGUF) build — the installer offers to install one (build-essential / base-devel / Xcode CLI tools). Skip the build with --no-llama-cpp if you do not need GGUF models.
  • An Intentioned.tech licence (username + password)
  • NVIDIA CUDA, AMD ROCm, or CPU — the backend is auto-detected. GPU offload for GGUF also needs the CUDA toolkit (nvcc), not just the driver; without it the installer builds llama-cpp-python CPU-only.

The compiler, Tk, ffmpeg and the rest are installed for you — by install.sh itself, or by install-deps.sh. Python 3.12 and curl are the two you need in place before you start.

Installing curl

sudo apt install -y curl          # Debian, Ubuntu
sudo dnf install -y curl          # Fedora, RHEL
sudo pacman -S --needed curl      # Arch, CachyOS
sudo zypper install -y curl       # openSUSE

macOS ships curl already. If you have wget but not curl, use it to fetch the installer — but install curl anyway, since the installer needs it to download your build.

Installing Python 3.12

It must be 3.12 specifically — not 3.11, not 3.13 or newer. Kokoro TTS and NeMo/Parakeet both require it, and the shipped build contains cpython-312-*.so modules that will not load under any other minor version. The installer checks this and stops if 3.12 is missing; it does not install Python for you.

# Ubuntu 24.04 and newer — in the repositories
sudo apt install -y python3.12 python3.12-venv python3.12-tk

# Ubuntu 22.04 and older — via the deadsnakes PPA
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt update
sudo apt install -y python3.12 python3.12-venv python3.12-tk

# Fedora / RHEL
sudo dnf install -y python3.12 python3.12-devel python3.12-tkinter

# openSUSE
sudo zypper install -y python312 python312-devel python312-tk

# macOS
brew install python@3.12 python-tk@3.12

python3.12-venv is not optional on Debian and Ubuntu: without it the installer cannot create myenv. python3.12-tk is what the configuration tool needs — install-deps.sh will add it later if you skip it here.

Arch, CachyOS and Debian 12 do not carry 3.12 (Arch tracks the newest Python; Debian 12 ships 3.11, and deadsnakes is Ubuntu-only). Use the AUR package python312 (yay -S python312), or pyenv, which works on any distribution:

pyenv install 3.12

The installer finds a pyenv 3.12 automatically. To point it at an interpreter somewhere else:

INTENTIONED_PYTHON=/path/to/python3.12 bash install.sh

Check what you have with python3.12 --version. A bare python3 is not enough — on rolling-release distributions it tracks the newest interpreter, which will not work.

Installing CUDA (NVIDIA)

Two separate things, and only the first is required:

  • the driver, which the app needs. The PyTorch wheels the installer pulls bundle their own CUDA runtime, so the driver alone is enough to run everything.
  • the CUDA toolkit (nvcc), needed only to compile llama-cpp-python with GPU offload. Without it the installer builds it CPU-only — GGUF models still load, just without the GPU.

nvidia-smi comes from the driver, so its presence says nothing about whether the toolkit is installed. That is why a machine can pass GPU detection and still build GGUF support CPU-only.

Install the driver through your distribution or NVIDIA's own tooling — see NVIDIA's driver downloads page for the exact steps for your distro, then reboot and verify with nvidia-smi. The installer pulls PyTorch built for CUDA 13, which needs driver 580 or newer (release notes); the header nvidia-smi prints must show CUDA Version: 13.0 or higher.

Toolkit — easiest through the dependency installer:

bash install-deps.sh --cuda                 # newest the driver supports
bash install-deps.sh --cuda-version 13.0    # or pin a version

This adds NVIDIA's own repository rather than using the distribution package. Do not use apt install nvidia-cuda-toolkit if you want a current CUDA — distro packages are frozen at whatever was current when the release was cut, so Ubuntu 24.04 still ships CUDA 12 while NVIDIA's repository carries 13.x.

Newest is not always right, though, and --cuda accounts for it: nvcc produces binaries that need a driver from the same CUDA major version. Building llama-cpp-python with 13.x against a driver that only supports 12.x compiles cleanly and then fails at runtime. The version is therefore capped at what nvidia-smi reports the driver can run — update the driver first if you want a newer toolkit than it allows.

To add the repository by hand instead, follow NVIDIA's download page for your distribution and install cuda-toolkit. Either way nvcc lands in /usr/local/cuda/bin rather than on PATH. install.sh looks there on its own — and prefers it over an older /usr/bin/nvcc if you have both — but for your own shell:

export PATH="/usr/local/cuda/bin:$PATH"

Verify with nvcc --version. If your distribution's gcc is newer than the toolkit accepts, the installer detects it and pins an older gcc-N as the CUDA host compiler — install one (gcc15, gcc-13, …) if it reports that none is available.

Installing ROCm (AMD)

The installer pulls PyTorch built for ROCm 7.2, so install ROCm 7.x. Follow AMD's quick start guide for your distribution — the repository package is version- and release-specific, so a URL here would go stale.

Whichever install method you use, add yourself to the render and video groups afterwards and reboot — the amdgpu device nodes are owned by them, and without membership every ROCm call fails with a permission error:

sudo usermod -a -G render,video "$LOGNAME"
sudo reboot

If rocminfo reports ROCk module is NOT loaded, that missing group membership — or a skipped reboot — is the usual cause.

Verify with:

rocm-smi
rocminfo | grep gfx

The installer reads that gfx target itself and passes it to the llama-cpp-python HIP build as -DAMDGPU_TARGETS, falling back to a build without a pinned target, then to CPU-only, if HIP fails. It also selects --backend rocm automatically when rocminfo or rocm-smi is present, and pins 16-bit quantization, which fits the 16 GB cards these commonly are.

If your GPU is not officially supported, ROCm can often still drive it by presenting a supported target — for example a gfx1031 card as gfx1030:

export HSA_OVERRIDE_GFX_VERSION=10.3.0

Install

curl -fsSL https://raw.githubusercontent.com/intentioned-tech/install/main/install.sh -o install.sh
bash install.sh

install.sh installs its own system dependencies. If it cannot (no sudo, a locked package manager, an unusual distro), install them separately first:

curl -fsSL https://raw.githubusercontent.com/intentioned-tech/install/main/install-deps.sh -o install-deps.sh
bash install-deps.sh

You will be prompted for your licence username and password. The password is read from a hidden prompt and is never written to disk or passed on the command line.

Review before you run. Piping a script straight into a shell (curl … | bash) means executing code you have not read. Downloading first, as above, lets you inspect it. That advice applies to any installer, including this one.

Non-interactive

For automated or fleet installs, supply credentials via the environment:

INTENTIONED_USERNAME=your-account \
INTENTIONED_PASSWORD='your-password' \
bash install.sh

Prefer the environment variables over --username / --password: process arguments are visible to every local user through /proc.

After installing: create your first account

The app has no sign-up page. Nobody can create an account over the network — not even the first visitor — so a fresh install has no accounts until you make one on the machine itself. Your licence username is not an app account; it only downloads and activates the build.

Create the first admin from the install directory:

cd ~/.local/share/intentioned
./myenv/bin/python run_user_admin.py create <your-name> --role ADMIN

It prints a random password and the account's Nuclear PIN once, in that terminal, and nowhere else. Store both: the PIN is needed to delete the account and its data. The server reads accounts from disk on every sign-in, so there is no need to restart it.

Make further accounts the same way, without --role ADMIN (they default to USER).

Sign-ins expire after 24 hours, enforced by the server, so expect to sign in again each day. After the update that introduced this, everyone signs in once more.

Age verification

The app is for adults only. Its age check is an on-device ID scan plus a face match; nothing is sent to a third party. For now it is not enforced by default: signed-in users go straight to the app. To enforce it, set INTENTIONED_AGE_GATE_ENFORCE=1 in the server's environment (for the systemd service, sudo systemctl edit intentioned-server.service and add Environment=INTENTIONED_AGE_GATE_ENFORCE=1 under [Service]) and restart. With enforcement on and the ID scan not yet configured, every session is refused — that is deliberate, not a fault.

Options

Where things go

~/.local/share/intentioned/     the application, its myenv virtualenv,
                                config.json and TLS material
~/.local/bin/intentioned        launcher
~/.local/bin/intentioned-config configuration tool

--install-path sets the first of those, and the app is written directly into it — there is no extra intentioned.tech/ level below it. Installs made before this changed are migrated automatically on the next run: the nested directory is lifted up, and the virtualenv is relocated in place rather than rebuilt, so nothing is re-downloaded.

Flag Description
--backend cuda|rocm|cpu Force a compute backend (default: auto-detect)
--install-path PATH Install location (default: ~/.local/share/intentioned)
--worker-url URL Licence server (default: the hosted Worker)
--no-config Skip opening the configuration tool afterwards
--skip-repo-download Use an existing local checkout or dist
--no-systemd-service Do not install/enable the background intentioned-server service
--help Full option list

Environment equivalents: INTENTIONED_USERNAME, INTENTIONED_PASSWORD, INTENTIONED_WORKER_URL, INSTALL_PATH, INSTALL_BACKEND. Also INTENTIONED_INSTALLER_URL, which has no flag — see Keeping the installer current below.

Running as a service

On Linux, the installer finds the .service and .timer files shipped in the release, fills in any placeholders, installs them to /etc/systemd/system, and enables them so they survive a reboot. That is typically the server, the nightly updater, and the timer that drives it — plus one pair the installer ships itself (see Keeping the installer current):

systemctl status intentioned-server.service
journalctl -u intentioned-server.service -f
systemctl list-timers 'intentioned*'                # when the next update runs
sudo systemctl restart intentioned-server.service   # no password needed

Units are discovered rather than named, so a release that adds or renames one needs no installer change. Long-running services are started immediately; Type=oneshot units are enabled but deliberately not started, since starting the updater would run an update in the middle of the install — its timer triggers it on schedule instead.

The passwordless restart is by design: the installer also writes /etc/sudoers.d/intentioned-restart, scoped to restart on exactly the services it installed, so the app's own config tool can restart the server after a settings change without prompting.

The intentioned launcher in ~/.local/bin still runs a separate, foreground copy — useful for watching logs directly or one-off runs, but don't run it while the service is also up: two copies competing for the same port and GPU memory is not a supported configuration. sudo systemctl stop intentioned-server.service first.

Skip all of this with --no-systemd-service (always skipped on macOS, which has no systemd) — the foreground launcher is created either way and is the only way to run the app if you skip the service.

The installed unit names are recorded in .installed_units in the install directory. emergency-uninstall.sh reads that file — as well as matching intentioned* — so it stops and removes every unit that was installed, even one whose name does not match that pattern, along with the sudoers rule.

Keeping the installer current

The units above come from the release. The installer adds one more pair of its own, intentioned-installer-refresh.service and its .timer, which re-downloads install.sh itself every night at 03:00 — an hour ahead of the release updater's own run, so that run is always driven by a current installer.

systemctl list-timers intentioned-installer-refresh.timer
systemctl status intentioned-installer-refresh.service   # last run's outcome
sudo systemctl start intentioned-installer-refresh.service   # refresh now
journalctl -u intentioned-installer-refresh.service -n 20

The refreshed copy lands in /var/lib/intentioned-installer/install.sh. That is deliberately not inside the install directory: a release upgrade can swap that whole directory aside, which would take the installer with it.

Nothing is executed by the refresh — it only fetches. The download goes to a scratch name and is required to be non-empty and to parse under bash -n before it is renamed into place, so a truncated transfer, a captive-portal login page or an HTML error body leaves the previous working copy untouched. No licence credentials are involved, and none are stored on disk for it.

Persistent=true means a machine that was asleep or powered off at 03:00 refreshes once it is back rather than skipping the day. Point the fetch somewhere else — a fork, a mirror, a test branch — by setting INTENTIONED_INSTALLER_URL when you run the installer; the value is baked into the unit. --no-systemd-service skips this pair along with everything else, and it is skipped entirely if curl is not installed.

System dependencies (install-deps.sh)

Installs the OS packages that cannot come from PyPI:

  • a C/C++ toolchain — llama-cpp-python (GGUF support) publishes no Linux wheels, so pip compiles it from source on every install
  • Tk, for every compatible Python found on the machine. config_tool.py is a tkinter GUI, and most distros ship tkinter in a separate -tk package. A virtualenv inherits the omission from the interpreter it was built on, so this has to be fixed before myenv is created — pip install cannot.
  • ffmpeg, git, curl, zstd, which the installer shells out to
Flag Description
--cuda Also install the distro CUDA toolkit (nvcc), needed to build llama-cpp-python with GPU offload
--no-tk Skip the Tk packages
--dry-run Print the package-manager commands without running them
-y, --yes Do not prompt

Supports apt, dnf, pacman, zypper and Homebrew. Safe to re-run.

GPU offload for GGUF needs the CUDA toolkit, not just the driver — nvidia-smi comes from the driver, nvcc does not. Without nvcc the installer builds llama-cpp-python CPU-only, which still loads GGUF models.

Emergency uninstall

Returns the machine to a pre-development state. Removes the application, the virtualenv, launchers, desktop entries, systemd units, the sudoers rule, the PATH line added to your shell rc, the model and build caches — and the development toolchain itself: gcc, g++, make, cmake, ninja, pkg-config, the CUDA toolkit, Tk, the Python headers and ffmpeg.

Pair it with install-deps.sh to demo a clean install from a bare machine.

curl -fsSL https://raw.githubusercontent.com/intentioned-tech/install/main/emergency-uninstall.sh -o emergency-uninstall.sh
bash emergency-uninstall.sh --dry-run   # print the plan, delete nothing
bash emergency-uninstall.sh             # then, if it looks right

It prints every path it will delete, with sizes, and requires you to type UNINSTALL before it touches anything.

Flag Description
--dry-run Print the plan and exit
--install-path PATH Install location to remove (default: auto-detected from the launcher symlink)
--keep-models Keep ~/.cache/huggingface and ~/.cache/torch
--keep-cache Keep the pip cache too
--keep-shell-rc Do not touch ~/.bashrc / ~/.zshrc
--keep-system-packages Keep gcc, cmake, CUDA, Tk and ffmpeg — remove only the app and its caches
--remove-git-curl ALSO remove git and curl (see below — off by default for a reason)
-y, --yes Skip the typed confirmation

What survives

GPU drivers are never removed, under any flag. Neither are kernel modules, the display stack, or the C runtime (libgcc-s1, libstdc++6, gcc-N-base, libc6) that every binary on the machine links against — there is no flag that touches these.

git, curl and your Python interpreters are left alone by default, but for a softer reason: they predate this app and other tooling depends on them, not because removing them is unsafe. git and curl can be added back in with --remove-git-curl, routed through the same driver/kernel/runtime guards as everything else. Think before using it, though: curl is what fetches install.sh and this uninstaller in the first place — the script warns and tells you when it's about to remove it, but re-running the documented curl -fsSL ... -o install.sh afterwards will not work until you reinstall it. Your Python interpreters have no equivalent flag; they are never removed.

Keeping the driver while removing gcc and CUDA is the hard part: cuda, cuda-drivers and nvidia-driver-* share a dependency graph, and Fedora's akmod-nvidia pulls in gcc to build its kernel module, so a naive "remove gcc and cuda" takes the driver with it. Three independent guards:

  1. a curated list of what may be considered at all — never a blanket wildcard over installed packages;
  2. a protected pattern (drivers, kernel modules, display stack, C runtime) subtracted from that list;
  3. a package-manager simulation of every removal, with the candidate dropped if the simulated transaction touches anything protected. This is what catches the indirect cases the first two guards cannot see.

No orphan sweep is used — no apt --auto-remove, no pacman -Rs, no zypper --clean-deps. Depth comes from naming gcc, cpp-N, libstdc++-N-dev and friends explicitly, because an orphan sweep is exactly how "remove gcc" ends up removing a DKMS-built driver. Support libraries left behind are harmless; apt autoremove will collect them if you want.

Guard 3 simulates the whole candidate set in one package-manager call, not one call per package — a dependency solve costs a few seconds each, and a machine with several dozen removable packages would otherwise spend a minute or more computing the plan before the confirmation prompt even shows. The (rare) per-package fallback only runs if that batch simulation actually finds a conflict, to pin down which package is responsible.

After removing packages the script re-runs nvidia-smi (and rocminfo) and reports whether the driver still works.

How licensing works

Builds are served from private storage and are never publicly downloadable. The installer authenticates to the licence server, which resolves which release your account is entitled to and streams it back. Unauthenticated requests are rejected — there is no public download URL, and the installer never names a storage key.

Downloads are verified against a published SHA-256 before anything is installed.

Updates

The installer sets up a daily timer that checks for a newer build at 04:00 local time, verifies its checksum, and merges it in place while preserving every local setting (configuration, certificates, licence activation, user accounts, session data). It is a no-op when you are already current.

Updates authenticate with the activation token created at install time, so no password is stored on the machine.

Support

Licence

The installer script in this repository is provided under the terms in LICENSE. Intentioned.tech itself is proprietary software licensed separately; installing it requires a valid licence. Third-party open-source components bundled with the application are credited in the THIRD_PARTY_LICENSES file included in every release.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages