Building _AugmentedIntelligence on Ubuntu Linux
This guide covers the Linux port of _AugmentedIntelligence: a CMake-based, console-first build for Ubuntu 22.04+ (and similar Debian-based distros).
The Windows Visual Studio project remains the primary, fully featured build (Dear ImGui + DirectX 11 GUI, Adobe/Microsoft integrations, etc.). The Linux port targets:
- x86_64 with AVX2 matrix acceleration (AVX-512 optional per CPU)
- CPU-only llama.cpp by default (optional CUDA build)
- Console REPL and web dashboard (
web server start) instead of the Win32 GUI - Excludes Windows-only Office/Adobe module sources
What works on Linux
| Feature | Status |
|---|---|
| Typed command REPL | Supported |
| Web dashboard | Supported (web server start) |
| Remote commands / Android pairing | Supported |
| Character chat, RSI agents, Lua | Supported (with LLM backend) |
| llama.cpp local inference | Supported after CPU llama build |
| Dear ImGui Win32/DX11 dashboard | Not available — use web UI or console |
| Adobe / Microsoft automation modules | Excluded from Linux build |
| Active Directory GPO enforcement | Windows-only; Linux uses AI_SKIP_AD_CHECK=1 or file policy |
Prerequisites
- Ubuntu 22.04 or 24.04 (64-bit x86)
- ~16 GB RAM recommended for linking the full binary
- gcc 11+ or clang 14+
- Python 3 (generates source list from
.vcxproj)
Step 1 — Install dependencies
cd /path/to/_AugmentedIntelligence_v11.0\ -\ Typed\ Commands
chmod +x scripts/install_ubuntu_deps.sh scripts/build_ubuntu.sh scripts/build_llama_cpp_cpu.sh
./scripts/install_ubuntu_deps.sh
Step 2 — Build llama.cpp (CPU, AVX2)
./scripts/build_llama_cpp_cpu.sh avx2
Or manually:
export AI_LLAMA_SRC=$HOME/_AugmentedIntelligence/_src/llama.cpp
export AI_LLAMA_BUILD=$HOME/_AugmentedIntelligence/_src/llama_build_cpu_avx2
cmake -S "$AI_LLAMA_SRC" -B "$AI_LLAMA_BUILD" -DCMAKE_BUILD_TYPE=Release \
-DGGML_CUDA=OFF -DGGML_AVX2=ON -DGGML_AVX=ON -DGGML_FMA=ON
cmake --build "$AI_LLAMA_BUILD" -j"$(nproc)"
Adjust AI_LLAMA_SRC / AI_LLAMA_BUILD if your trees live elsewhere. Update CMakeLists.txt AI_LLAMA_LIBS paths if your llama.cpp version places static libraries in different folders.
Step 3 — Configure and build the app
export AI_LLAMA_SRC=$HOME/_AugmentedIntelligence/_src/llama.cpp
export AI_LLAMA_BUILD=$HOME/_AugmentedIntelligence/_src/llama_build_cpu_avx2
export AI_SKIP_AD_CHECK=1
./scripts/build_ubuntu.sh
Binary output:
build/linux/_AugmentedIntelligence
Manual CMake:
cmake -S . -B build/linux -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/linux -j"$(nproc)"
Step 4 — Run
export AI_SKIP_AD_CHECK=1
./build/linux/_AugmentedIntelligence --help
./build/linux/_AugmentedIntelligence
Useful environment variables:
| Variable | Purpose |
|---|---|
AI_SKIP_AD_CHECK=1 |
Skip Windows-style AD/GPO gate on Linux |
AI_LLAMA_SRC |
llama.cpp headers |
AI_LLAMA_BUILD |
llama.cpp static libs |
AI_ENABLE_GUI |
Ignored on Linux (no Win32 GUI) |
Start the browser dashboard:
web server start
Then open http://127.0.0.1:8787/ (or your configured port).
Build variants
| Variant | Windows configuration | Linux equivalent |
|---|---|---|
| GPU + AVX-512 | Release-GPU-AVX512 |
ENABLE_CUDA=ON + llama CUDA build (advanced) |
| GPU + AVX2 | Release-GPU-AVX2 |
ENABLE_CUDA=ON + matching llama tree |
| CPU + AVX2 | Release-CPU-AVX2 |
Default ./scripts/build_ubuntu.sh |
| CPU + SSE2 | Release-CPU-NoAVX |
./scripts/build_llama_cpp_cpu.sh noavx |
Optional CUDA app build:
ENABLE_CUDA=ON ./scripts/build_ubuntu.sh
Requires NVIDIA drivers, CUDA toolkit, and a CUDA-enabled llama.cpp build directory.
Project layout (Linux-specific)
| Path | Purpose |
|---|---|
CMakeLists.txt |
Ubuntu/Linux CMake entry point |
platform/Platform.hpp |
Replaces direct windows.h / io.h usage |
platform/GuiStub.cpp |
Console stub instead of Gui.cpp |
scripts/generate_linux_sources.py |
Source list from .vcxproj (excludes Adobe/Microsoft/Gui) |
scripts/install_ubuntu_deps.sh |
apt dependencies |
scripts/build_ubuntu.sh |
Configure + compile |
scripts/build_llama_cpp_cpu.sh |
CPU llama.cpp build helper |
Pairing with Pixel 4 / mobile
Run the Linux desktop agent, then use the Android companion app as documented in Pixel4-Install.md:
remote commands start 7710 YOUR_TOKEN
android audio start 7711 YOUR_TOKEN
web server start
Troubleshooting
Missing llama static libraries
CMake warns about missing libllama.a paths. Build llama.cpp first and verify files under $AI_LLAMA_BUILD.
mysql.h not found
sudo apt-get install libmysqlclient-dev
OpenCV / Tesseract errors
sudo apt-get install libopencv-dev libtesseract-dev libleptonica-dev
Active Directory / access denied on startup
export AI_SKIP_AD_CHECK=1
--gui does nothing useful
Expected on Linux. Use the web dashboard or console REPL.
First compile errors
The Linux port is Phase 1. Some translation units may still need small #ifdef _WIN32 guards as you iterate on your distro. Report or fix per-file platform issues; the scaffold (Platform.hpp, CMake, excluded sources) is the maintained baseline.
Related documents
- Pixel4-Install.md — Android companion
- llama_cpp_cpu_ram_cuda.md — llama memory tuning
installer/install.ps1— Windows installer (not used on Ubuntu)