Platform-Specific Installation Guide
This guide provides detailed installation instructions for different operating systems and platforms.
🐧 Linux
Debian/Ubuntu (18.04+)
Method 1: Package Repository (Recommended)
# Download and install server
# Download and install TUI (optional)
# Start the server
Method 2: Automated Script
| Red Hat/CentOS/Fedora
Method 1: RPM Packages
# Download and install server
# Download and install TUI (optional)
# Start the server
Method 2: Using dnf (Fedora)
Method 3: Build from Source
# Install dependencies
# Clone and build
|
# Install binaries
Arch Linux/Manjaro
Method 1: Arch Packages
# Download and install server
# Download and install TUI (optional)
Method 2: AUR (Arch User Repository)
# If available in AUR
# Or build manually
Method 3: Using Cargo
openSUSE
# Install dependencies
# Clone and build
# Install manually
🍎 macOS
Method 1: App Bundle (Easy)
- Download the macOS app bundle:
- Extract and move to Applications:
- Launch from Applications folder
Method 2: Homebrew
# If available in Homebrew
# Or build from source
Method 3: MacPorts
Method 4: Build from Source
# Install Xcode Command Line Tools
# Install Rust
|
# Clone and build
# Create symbolic links
First Launch Configuration
When you first launch Terraphim AI on macOS:
-
Allow the app to run: System Preferences > Security & Privacy > General
-
Configuration directories will be created at:
~/Library/Application Support/Terraphim/config.json~/Library/Application Support/Terraphim/data/
-
Terminal opens automatically when launching the app
🪟 Windows
Method 1: Chocolatey (Recommended)
# Install Chocolatey if not already installed
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = 'Tls12, Tls11, Tls, Ssl3'; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Terraphim AI (when available)
choco install terraphim-aiMethod 2: WSL (Windows Subsystem for Linux)
- Install WSL:
wsl --install- Install Ubuntu in WSL:
wsl --install -d Ubuntu- Follow Linux instructions inside WSL
Method 3: WSL2 with GUI
- Install WSL2:
wsl --install -d Ubuntu --version 2- Install WSLg for GUI applications:
# In Ubuntu WSL
curl -fsSL https://raw.githubusercontent.com/wslutilities/wslu/master/install.sh | bash- Install Terraphim AI following Linux instructions
Method 4: Docker for Windows
-
Install Docker Desktop from https://www.docker.com/products/docker-desktop/
-
Pull and run:
docker run -d `
--name terraphim-server `
-p 8000:8000 `
-v ${HOME}/.config/terraphim:/home/terraphim/.config/terraphim `
-v ${HOME}/.local/share/terraphim:/home/terraphim/data `
ghcr.io/terraphim/terraphim-server:v0.2.4- Access at http://localhost:8000
Method 5: MSYS2/MinGW
-
Install MSYS2 from https://www.msys2.org/
-
Install dependencies in MSYS2:
- Build from source following Linux instructions
Windows Service Installation
# Create service directory
New-Item -ItemType Directory -Path "C:\Terraphim" -Force
New-Item -ItemType Directory -Path "C:\Terraphim\bin" -Force
New-Item -ItemType Directory -Path "C:\Terraphim\config" -Force
New-Item -ItemType Directory -Path "C:\Terraphim\data" -Force
# Create configuration
@'
{
"name": "Terraphim Engineer",
"relevance_function": "TerraphimGraph",
"theme": "spacelab",
"haystacks": [
{
"name": "Local Documents",
"service": "Ripgrep",
"location": "C:\\Users\\%USERNAME%\\Documents",
"extra_parameters": {
"glob": "*.md,*.txt,*.rst"
}
}
]
}
'@ | Out-File -FilePath "C:\Terraphim\config\config.json" -Encoding UTF8
# Create Windows service
sc create TerraphimServer binPath= "C:\Terraphim\bin\terraphim_server.exe" start= auto displayName= "Terraphim AI Server" description= "Privacy-first AI assistant backend"
sc start TerraphimServer🐳 Docker Installation
Method 1: Quick Start
# One-command installation
| Method 2: Docker Compose
# Clone repository
# Start with Docker Compose
# View logs
Method 3: Docker Manual
# Pull image
# Run container
📱 Mobile Devices
Android (Termux)
# Install Termux from F-Droid
&&
# Install dependencies
# Clone and build
# Run
iOS (iSH Shell)
- Install iSH Shell from App Store
- Install dependencies
- Follow Linux build instructions
🔧 Post-Installation Configuration
Create First Configuration
All platforms create a default configuration at:
- Linux:
~/.config/terraphim/config.json - macOS:
~/Library/Application Support/Terraphim/config.json - Windows:
%APPDATA%\Terraphim\config.json
Example configuration:
Add Data Sources
Edit your configuration to add more haystacks:
Verify Installation
# Check server health
# Test search
# Test TUI
🛠️ Troubleshooting
Common Issues
Port Already in Use
# Check what's using port 8000
|
# Kill the process
# Or use different port
Permission Denied
# Linux/macOS
# Windows
# Run as AdministratorMissing Dependencies
Linux:
# Ubuntu/Debian
# CentOS/RHEL
# Arch Linux
macOS:
Build Failures
- Update Rust:
- Clean build:
- Check Rust version:
📚 Platform-Specific Resources
- Linux Installation Guide
- macOS Installation Guide
- Windows Installation Guide
- Docker Installation Guide
- Platform-Specific Issues
🤝 Getting Help
- GitHub Issues: Report bugs
- Discussions: Community forum
- Discord: Real-time chat
- Discourse: Community discussions