Skip to content
Lovelace

Linux Installation

Lattice works on Ubuntu 20.04+, Debian 11+, Fedora 35+, and other modern distributions. Private AI with a local model needs an x86-64 processor with AVX2 or an ARM64 processor, because LM Studio does.

Quick Install#

bash
curl -fsSL https://d.uselovelace.com/lattice | sh -s -- --setup

This installs the lattice-daemon and lattice-ctl binaries and runs lattice-ctl setup --yes: it installs LM Studio's headless llmster daemon with LM Studio's installer, downloads the model sized to your machine's memory, registers the systemd user service, and checks that the model answers. Replace --setup with --plan to see the download size first without installing anything.

Detailed Installation#

Step 1: Install#

bash
curl -fsSL https://d.uselovelace.com/lattice | sh

# Verify
lattice-ctl --version

Step 2: Set Up Private AI#

bash
lattice-ctl setup

Setup prints its plan and total download size and asks once before changing anything. It registers and starts the Lattice systemd user service (com.lovelace.lattice-daemon.service), so the daemon starts on login. Without a systemd user session, setup runs lattice-daemon directly instead.

Step 3: Check Readiness#

bash
lattice-ctl doctor

Each issue doctor finds comes with the command that fixes it.

To register the service without the rest of setup:

bash
lattice-ctl service install
lattice-ctl service start

Linux-Specific Issues#

"Permission denied"#

bash
# Fix directory ownership
sudo chown -R $USER ~/.lovelace/

SELinux Blocking#

If using SELinux on Fedora/RHEL:

bash
# Check status
getenforce

# Temporarily disable (not recommended for production)
sudo setenforce 0

AppArmor Blocking (Ubuntu)#

bash
# Check status
sudo aa-status

Service Management#

bash
# Check status
lattice-ctl service status

# View logs
journalctl --user -u com.lovelace.lattice-daemon -f

# Restart
lattice-ctl service restart

# Stop
lattice-ctl service stop

# Disable auto-start
lattice-ctl service disable

Uninstalling#

bash
# Stop and remove the service
lattice-ctl service stop
lattice-ctl service uninstall

# Remove the binaries and Lattice data
rm "$(command -v lattice-ctl)" "$(command -v lattice-daemon)"
rm -rf ~/.lovelace/lattice/

Troubleshooting#

"Connection refused"#

bash
# Check the daemon process
lattice-ctl daemon status

# Check the service and recent logs
lattice-ctl service status
journalctl --user -u com.lovelace.lattice-daemon -n 20

# Restart
lattice-ctl service restart

Socket permission errors#

bash
# Check socket
ls -la ~/.lovelace/lattice/daemon.sock

# Fix permissions if needed
chmod 700 ~/.lovelace/lattice

"lattice-ctl: command not found"#

bash
# Verify installation
which lattice-ctl

# Reload PATH
source ~/.bashrc

# Or reinstall
curl -fsSL https://d.uselovelace.com/lattice | sh

Next Steps#