Linux Installation Guide for Synkra AIOX
Supported Distributions
| Distribution | Version | Status | | ------------ | -------------- | ------------------- | | Ubuntu | 20.04+ (LTS) | ✅ Fully Supported | | Debian | 11+ (Bullseye) | ✅ Fully Supported | | Fedora | 37+ | ✅ Fully Supported | | Arch Linux | Latest | ✅ Fully Supported | | Linux Mint | 21+ | ✅ Fully Supported | | Pop!_OS | 22.04+ | ✅ Fully Supported | | openSUSE | Leap 15.4+ | ⚠️ Community Tested | | CentOS/RHEL | 9+ | ⚠️ Community Tested |
Prerequisites
1. Node.js (v20 or higher)
Choose your installation method based on your distribution:
Ubuntu/Debian
# Update package list
sudo apt update
# Install Node.js using NodeSource
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
# Verify installation
node --version # Should show v20.x.x
npm --version
Alternative: Using nvm (Recommended for development)
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Reload shell
source ~/.bashrc # or ~/.zshrc
# Install and use Node.js 20
nvm install 20
nvm use 20
nvm alias default 20
Fedora
# Install Node.js from Fedora repos
sudo dnf install nodejs npm
# Or using NodeSource for latest version
curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
sudo dnf install -y nodejs
Arch Linux
# Install from official repos
sudo pacman -S nodejs npm
# Or using nvm (recommended)
yay -S nvm # If using AUR helper
nvm install 20
openSUSE
# Install Node.js
sudo zypper install nodejs20 npm20
2. Git
# Ubuntu/Debian
sudo apt install git
# Fedora
sudo dnf install git
# Arch
sudo pacman -S git
# Verify
git --version
3. GitHub CLI
# Ubuntu/Debian
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
# Fedora
sudo dnf install gh
# Arch
sudo pacman -S github-cli
# Authenticate
gh auth login
4. Build Essentials (Optional but Recommended)
Some npm packages require compilation:
# Ubuntu/Debian
sudo apt install build-essential
# Fedora
sudo dnf groupinstall "Development Tools"
# Arch
sudo pacman -S base-devel
Installation
Quick Install
-
Open your terminal
-
Navigate to your project directory:
cd ~/projects/my-project -
Run the installer:
npx github:SynkraAI/aiox-core install
Manual Installation
If the quick install fails, try manual installation:
# Clone the repository
git clone https://github.com/SynkraAI/aiox-core.git ~/.aiox-core-source
# Navigate to the source
cd ~/.aiox-core-source
# Install dependencies
npm install
# Run installer for your project
node bin/aiox-init.js ~/projects/my-project
What the Installer Does
The installer automatically:
- ✅ Detects your Linux distribution and applies optimizations
- ✅ Creates necessary directories with proper Unix permissions (755/644)
- ✅ Configures IDE paths for Linux:
- Cursor:
~/.config/Cursor/ - Claude:
~/.claude/
- Cursor:
- ✅ Sets up shell scripts with Unix line endings (LF)
- ✅ Respects XDG Base Directory specification
- ✅ Handles symbolic links properly
IDE-Specific Setup
Cursor
-
Install Cursor: Download from cursor.sh
# AppImage method chmod +x cursor-*.AppImage ./cursor-*.AppImage -
IDE rules are installed to
.cursor/rules/ -
Keyboard shortcut:
Ctrl+Lto open chat -
Use
@agent-nameto activate agents
Claude Code (CLI)
-
Install Claude Code:
npm install -g @anthropic-ai/claude-code -
Commands are installed to
.claude/commands/AIOX/ -
Use
/agent-nameto activate agents -
Use
@agent-nameto activate agents
VS Code (with Continue extension)
- Install Continue extension
- Configure AIOX rules in
.continue/
Troubleshooting
Permission Errors
# Fix npm global permissions (recommended method)
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Alternative: Fix ownership (if using sudo for npm)
sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib/node_modules
EACCES Errors
If you see EACCES: permission denied:
# Option 1: Use npm prefix (recommended)
npm config set prefix '~/.local'
export PATH="$HOME/.local/bin:$PATH"
# Option 2: Fix project permissions
chmod -R u+rwX .aiox-core
chmod -R u+rwX .claude
npm WARN deprecated Warnings
These are usually harmless. To suppress:
npm install --no-warnings
GitHub CLI Authentication Issues
# Check current auth status
gh auth status
# Re-authenticate if needed
gh auth login --web
# For SSH-based authentication
gh auth login -p ssh
Slow Installation
If npm install is slow:
# Use a faster registry mirror
npm config set registry https://registry.npmmirror.com
# Or increase timeout
npm config set fetch-timeout 60000
Missing libsecret (for credential storage)
# Ubuntu/Debian
sudo apt install libsecret-1-dev
# Fedora
sudo dnf install libsecret-devel
# Arch
sudo pacman -S libsecret
WSL-Specific Issues
If running in Windows Subsystem for Linux:
# Ensure Windows paths don't interfere
echo 'export PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "^/mnt/c" | tr "\n" ":")' >> ~/.bashrc
# Fix line ending issues
git config --global core.autocrlf input
# Performance: Move project to Linux filesystem
# Use ~/projects instead of /mnt/c/projects
Environment Configuration
Recommended .bashrc/.zshrc additions
# Node.js configuration
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# npm global packages
export PATH="$HOME/.npm-global/bin:$PATH"
# AIOX configuration
export AIOX_HOME="$HOME/.aiox-core"
export PATH="$AIOX_HOME/bin:$PATH"
# Editor preference (for git commits, etc.)
export EDITOR=vim # or code, nano, etc.
XDG Base Directory Compliance
Synkra AIOX respects XDG directories:
# Data files: ~/.local/share/aiox/
# Config files: ~/.config/aiox/
# Cache: ~/.cache/aiox/
# State: ~/.local/state/aiox/
Updating
To update an existing installation:
# Using npx (recommended)
npx github:SynkraAI/aiox-core install
# Manual update
cd ~/.aiox-core-source
git pull
npm install
node bin/aiox-init.js ~/projects/my-project --update
The updater will:
- Detect your existing installation
- Back up any customizations to
.aiox-backup/ - Update only changed files
- Preserve your configurations
Uninstallation
See the complete Uninstallation Guide for detailed steps.
Quick uninstall:
# Remove AIOX from a project
rm -rf .aiox-core .claude/commands/AIOX
# Remove global installation
rm -rf ~/.aiox-core-source ~/.npm-global/lib/node_modules/@synkra
System Requirements
| Requirement | Minimum | Recommended | | ----------- | ------- | ----------- | | Kernel | 4.15+ | 5.10+ | | RAM | 2GB | 8GB | | Disk Space | 500MB | 2GB | | Node.js | 18.x | 20.x LTS | | npm | 9.x | 10.x |
Distribution-Specific Notes
Ubuntu/Debian
- Pre-installed Python may conflict with some npm packages
- Use
deadsnakesPPA for newer Python if needed
Fedora
- SELinux may require additional configuration for some operations
- Use
sudo setenforce 0temporarily if blocked
Arch Linux
- Packages are always cutting-edge; test thoroughly
- AUR packages may be needed for some IDEs
WSL (Windows Subsystem for Linux)
- Use WSL2 for better performance
- Store projects in
/home/user/not/mnt/c/ - Configure
.wslconfigfor memory limits
Next Steps
- Configure your IDE (see IDE-specific setup above)
- Run
*helpin your AI agent to see available commands - Start with the User Guide
- Join our Discord Community for help