Maze Linux / Wiki

AI & Development

Maze Linux is built to run AI workloads locally. Ollama ships preinstalled and starts on boot; the language toolchains and virtualization stack are not on the ISO — install what you need with one pacman command (noted per section).


Local AI Stack

Ollama

Ollama is a runtime for running large language models (LLMs) locally on your hardware, with no data leaving your machine. Ollama starts on boot automatically as a systemd service, and ships with no models — pull one first (needs internet).

Pull a model:

ollama pull llama3
ollama pull mistral
ollama pull codellama
ollama pull phi3

Run a model interactively:

ollama run llama3

List installed models:

ollama list

Remove a model:

ollama rm llama3

Start the API server:

ollama.service is already running, so you normally do not run ollama serve yourself — it would fail with the port already in use.

The API listens on http://localhost:11434 and exposes two shapes:

EndpointFormat
/api/chat, /api/generateOllama's own API
/v1/chat/completionsOpenAI-compatible (point OpenAI SDKs here)

Check the service:

systemctl status ollama

Choosing a Model

ModelSizeBest for
llama3~4.7 GBGeneral chat and reasoning
codellama~3.8 GBCode generation and explanation
mistral~4.1 GBFast, capable general purpose
phi3~2.3 GBLightweight, fast on limited RAM
llava~4.5 GBVision — describe and analyze images

Smaller models run on 8 GB RAM. Larger models (13B+) benefit from 16 GB+ RAM. Out of the box Ollama runs on the CPU; GPU acceleration needs the backend package for your GPU — see GPU Acceleration.

Ollama API

Ollama's native chat endpoint (for OpenAI-style clients use /v1/chat/completions instead):

curl http://localhost:11434/api/chat -d '{
  "model": "llama3",
  "messages": [{"role": "user", "content": "Explain Btrfs snapshots in one paragraph."}]
}'

Maze AI Utilities

Maze AI

Maze AI

Maze's own desktop AI assistant (PySide6), built on Ollama — installed by default as part of maze-meta. It is agentic: it can read your clipboard, files and directories, shell history and screenshots to answer questions and carry out tasks. Turkish is a first-class language, not a translation.

maze-ai

All inference goes through your local Ollama instance.


linux-chan-ai — not installed by default

A chat assistant with a terminal UI.

Privacy warning — read before installing. Linux Chan has no offline mode. It reads files and screenshots on your behalf, and everything it sees is sent to Google. It is deliberately excluded from the default install. If you want a local, private assistant, use Maze AI above.

linux-chan-ai

sentinai — not installed by default

PassGen / OSINT tooling aimed at authorised penetration testing. It is not a background security monitor, and it has a Gemini cloud path — so it is not private by default. Deliberately excluded from the default install.

sentinai

Upscayl

AI image upscaling (preinstalled). Enlarges and enhances images using local neural network models — no cloud upload. Works best with a Vulkan-capable GPU.


Development Toolchain

paru (AUR Helper)

Preinstalled, and updated from [mazelinux] like the rest of the system.

paru -S <package>          # install from AUR or official repos
paru -Syu                  # update everything including AUR packages
paru -Ss <keyword>         # search
paru -Rns <package>        # remove package and unused dependencies

base-devel

The Arch build toolchain is preinstalled: gcc, make, binutils, autoconf, automake, fakeroot, patch, pkgconf, plus git. (cmake is not — sudo pacman -S cmake.)

Python

Python 3 with pip and setuptools preinstalled:

Arch marks the system Python as externally managed, so a bare pip install is refused. Use a virtual environment, or the distro packages:

python -m venv ~/.venvs/work && source ~/.venvs/work/bin/activate
pip install requests numpy pandas    # inside the venv
sudo pacman -S python-numpy          # system-wide from the repo

Git

git clone https://github.com/user/repo
git pull

Node.js · Rust · Go — install them yourself

None of these toolchains is on the ISO (nodejs only arrives as a dependency of other apps, without npm):

sudo pacman -S nodejs npm                    # Node.js
sudo pacman -S rustup && rustup default stable   # Rust
sudo pacman -S go                            # Go

Flatpak (Additional Apps)

Flathub is configured. Install sandboxed developer tools:

flatpak install flathub com.visualstudio.code    # VS Code
flatpak install flathub com.jetbrains.PyCharm    # PyCharm

Virtualization

Virtualization (not preinstalled)

Virtualization is not installed by default — this is deliberate, to keep the ISO lean. The whole KVM stack is one command away:

sudo pacman -S qemu-desktop libvirt virt-manager edk2-ovmf
sudo systemctl enable --now libvirtd
sudo usermod -aG libvirt,kvm "$USER"   # log out and back in

If you prefer VMware Workstation, Maze ships a helper that sets it up for you:

maze-install-vmware

Distrobox

Run containers from other distributions while sharing your home directory, display, and audio. Distrobox is installed, but the container engine it needs is not:

sudo pacman -S podman
distrobox create --name ubuntu24 --image ubuntu:24.04
distrobox enter ubuntu24
distrobox stop ubuntu24
distrobox rm ubuntu24

GPU Acceleration

Maze ships Vulkan and VA-API drivers for Intel, AMD, and Nvidia:

GPU vendorVulkan packageVideo decode
Intelvulkan-intelintel-media-driver
AMDvulkan-radeonMesa VA-API
Nvidia (open)vulkan-nouveauMesa VA-API
Softwarevulkan-swrastSoftware fallback

Check Vulkan support:

vulkaninfo | head -30

On Arch, Ollama's GPU backends are separate packages — the ollama that ships with Maze runs on the CPU until you add one.

Nvidia — install the proprietary driver with Maze's helper (Arch's prebuilt nvidia-open modules, kernel mode setting, Secure Boot–clean), then the CUDA backend:

sudo maze-gpu-driver
sudo pacman -S ollama-cuda
sudo systemctl restart ollama

AMD — install the ROCm backend (recent Radeon cards) or the Vulkan backend (wider support):

sudo pacman -S ollama-rocm      # or: ollama-vulkan
sudo systemctl restart ollama

If ROCm does not detect your GPU, the variable that actually helps is HSA_OVERRIDE_GFX_VERSION, set on the service, not on a shell command:

sudo systemctl edit ollama
# [Service]
# Environment="HSA_OVERRIDE_GFX_VERSION=11.0.0"
sudo systemctl restart ollama

There is no OLLAMA_GPU variable — Ollama detects the backend itself.

Check what it picked:

journalctl -u ollama | grep -i -m5 'gpu\|rocm\|cuda'

Zsh Environment

Zsh with Oh My Zsh is the default shell. It includes:

Customize in ~/.zshrc. Add Oh My Zsh plugins:

# Edit ~/.zshrc and extend the plugins=( … ) list, e.g. add:
#   docker kubectl node

multilib and Flatpak

The multilib repository is enabled in /etc/pacman.conf, giving access to the 32-bit libraries games need. Steam is preinstalled, together with GameMode, MangoHud and gamescope (see maze-gaming in Tools). Wine is not:

sudo pacman -S wine