Home / use case

A one-script Ubuntu install that stands up Ollama and Open WebUI as a private ChatGPT in the browser

At a glance
Hardware
Rough minimums: 4 GB free RAM for the 1B starter on CPU, 8 GB+ for llama3.2:3b or larger; ~5–10 GB disk for images plus the starter
Models & engines
Pinned images ollama/ollama:0.40.14 and ghcr.io/open-webui/open-webui:v0.13.0 (verified November 2026), overridable via OLLAMA_IMAGE / WEBUI_IMAGE
Default starter model llama3.2:1b (~1.3 GB); override with OLLAMA_STARTER_MODEL
Key gotcha
The guide does not cover hardening; binding Open WebUI to a LAN IP without TLS is fine for a lab, but do not expose port 3000 to the public internet.

What they built

For guide 50, HendGrow packaged a one-script install of Ollama plus Open WebUI aimed at a typical home-lab Ubuntu box, so you get private chat, model downloads, and multi-user accounts without cloud API keys.

Ollama runs open-weight models from its library locally; Open WebUI is the browser front end pointed at those models so prompts stay on your network.

The script is non-interactive: it installs Docker if needed, chooses GPU or CPU mode, writes a compose stack under /opt/ollama-openwebui, starts the services, waits for the UI, and pulls a starter model into the Ollama container.

Setup

  • Fresh Ubuntu 24.04 LTS server, run as root with sudo
  • Pinned images ollama/ollama:0.40.14 and ghcr.io/open-webui/open-webui:v0.13.0 (verified November 2026), overridable via OLLAMA_IMAGE / WEBUI_IMAGE
  • Optional NVIDIA GPU with nvidia-smi / lspci detection; otherwise CPU-only
  • Default starter model llama3.2:1b (~1.3 GB); override with OLLAMA_STARTER_MODEL
  • Rough minimums: 4 GB free RAM for the 1B starter on CPU, 8 GB+ for llama3.2:3b or larger; ~5–10 GB disk for images plus the starter

How it works

  1. Install unzip, wget the hendgrow_auto_install_ollama_openwebui.zip, unzip it, chmod +x the .sh, and run it with sudo (optionally export OLLAMA_STARTER_MODEL or OLLAMA_FORCE_CPU / OLLAMA_FORCE_GPU first).
  2. The script prints MODE SELECTED: GPU or CPU-ONLY, installs Docker Engine and Compose, and on the GPU path installs the NVIDIA Container Toolkit and restarts Docker.
  3. It creates /opt/ollama-openwebui with a generated WEBUI_SECRET_KEY in a mode-600 .env, writes docker-compose.yml, runs docker compose up -d, and pulls the starter model.
  4. Open http://<server-ip>:3000, create the admin account, pick the starter model in the dropdown, and chat; later pull more models with docker exec -it ollama ollama pull <tag>.

Results & numbers

  • After the script finishes you have a working Open WebUI instance backed by local Ollama on the lab IP and port 3000.
  • The author notes the first CPU reply can be slow while the model loads, and a GPU makes later replies snappier.

Gotchas

  • The guide does not cover hardening; binding Open WebUI to a LAN IP without TLS is fine for a lab, but do not expose port 3000 to the public internet.
  • Review and test the script in a non-production environment first; it is tailored for a typical lab and may need adjustments.
  • Larger models need more RAM or VRAM than the 1B starter.
“Together they give you private chat, model downloads, and multi-user accounts — all on your own Ubuntu box, with no cloud API keys required.”— HendGrow

Do it yourself

  1. sudo apt install -y unzip
  2. wget https://hendgrow.com/wp-content/uploads/2026/11/hendgrow_auto_install_ollama_openwebui.zip && unzip that zip
  3. sudo chmod +x hendgrow_auto_install_ollama_openwebui.sh && sudo ./hendgrow_auto_install_ollama_openwebui.sh
  4. Open http://<server-ip>:3000, create the admin account, and select llama3.2:1b (or your starter) for a test prompt
  5. Pull more models later with: docker exec -it ollama ollama pull llama3.2:3b
Source: HendGrow · Published 2026-11-05 · Added 2026-11-05. This write-up summarizes the original source; see it for full details.

Similar setups

A private ChatGPT alternative on a six-year-old RTX 3090 with Ollama, Open WebUI and imported chat history

Pascal Hetzscholdt turned an older desktop with an RTX 3090 into a local research assistant running GPT-OSS 20B through Ollama and Open WebUI, then imported years of ChatGPT conversations so the local model can search them.

Pascal Hetzscholdt (beehiiv) · 2026-11-16

Serving a local model on Kubernetes on your own laptop with kind and Ollama

Alex Jones wrote a tested guide to running Ollama in a kind cluster on CPU, Intel Arc, NVIDIA and AMD, then using the served model with k8sgpt to explain cluster failures without any data leaving the machine.

axjns.dev · 2026-11-09

NixNet: a Tailscale-only private AI box with Ollama, Open WebUI, Whisper and Piper on a 128 GB Minisforum

NixFred runs Ollama on ROCm (80 GB cap), Open WebUI 0.13.0, Whisper, Piper, SearXNG and ComfyUI on a Minisforum MS-S1 MAX under Proxmox, sharing chat and media with friends only over Tailscale.

X · 2026-11-06

OzAI: a self-hosted ChatGPT on a 16 GB MacBook with Ollama, LiteLLM and Open WebUI, and what broke

A DevOps engineer served Qwen3 8B and Qwen2.5-Coder 3B from one M1 Pro laptop as a small private platform with per-user keys, rate limits, local web search and IDE chat, and documented seven silent failures.

Ahmet Ozan GAZİ (DEV Community) · 2026-11-03