[50] Ollama + Open WebUI – Your Own Private ChatGPT in the Browser – ONE SCRIPT INSTALL!

Local AI is one of the hottest self-hosting topics right now, so for guide [50] we put together a one-script install of Ollama (the local LLM runtime) plus Open WebUI (a polished ChatGPT-style front end you open in any browser). Together they give you private chat, model downloads, and multi-user accounts — all on your own Ubuntu box, with no cloud API keys required.

Ollama runs open-weight models (Llama, Gemma, Qwen, Mistral, and many more from ollama.com/library) locally. Open WebUI is the browser UI that talks to it — think of it as your own private ChatGPT, pointed at models that never leave your network.

Below is a Bash one-script install that takes a fresh Ubuntu 24.04 LTS server to a working Open WebUI at http://<server-ip>:3000. The script installs Docker if it is missing, detects whether an NVIDIA GPU is present, deploys Ollama + Open WebUI with Docker Compose (GPU-accelerated when possible, otherwise CPU-only), pulls a small starter model, and prints the URL / next steps. It is designed to be run as root (sudo) and includes basic error handling.

Please note:

  • This script is tailored for a typical lab / home-lab setup and may need adjustments based on your environment.
  • Images used (pinned): ollama/ollama:0.40.14 and ghcr.io/open-webui/open-webui:v0.13.0 (verified November 2026). Override with OLLAMA_IMAGE / WEBUI_IMAGE env vars if you need newer tags. Official projects: ollama.com · docs.openwebui.com.
  • GPU or CPU: the script checks for an NVIDIA GPU (nvidia-smi / lspci). If one is found it installs the NVIDIA Container Toolkit and enables GPU passthrough for Ollama. If not, it runs CPU-only. Both paths work — a GPU just makes larger models much faster.
  • Default starter model is llama3.2:1b (~1.3 GB download). It is small enough to run comfortably on CPU and on modest RAM. Override with e.g. export OLLAMA_STARTER_MODEL=llama3.2:3b (or any tag from the Ollama library) before running.
  • You should first review and test this script in a non-production environment.
  • Rough minimums: 4 GB RAM free for the 1B starter on CPU; 8 GB+ recommended if you want llama3.2:3b or larger. Disk: plan ~5–10 GB for images + the starter model (more as you pull additional models). An NVIDIA GPU with current drivers is optional but recommended for 7B+ models.

The install package used for this guide can be found here -> https://hendgrow.com/wp-content/uploads/2026/11/hendgrow_auto_install_ollama_openwebui.zip

Download the install zip: https://hendgrow.com/wp-content/uploads/2026/11/hendgrow_auto_install_ollama_openwebui.zip

hendgrow_auto_install_ollama_openwebui.zipDownload

—Guide Start Here—

Login to your Ubuntu server. (Ubuntu install guide)

A fresh Ubuntu server may not have unzip, so install it first.

sudo apt install -y unzip

Download the Ollama + Open WebUI auto-install zip.

wget https://hendgrow.com/wp-content/uploads/2026/11/hendgrow_auto_install_ollama_openwebui.zip

Extract the install script from the zip.

unzip hendgrow_auto_install_ollama_openwebui.zip

Make the script executable

sudo chmod +x hendgrow_auto_install_ollama_openwebui.sh

Now let us kick it off

sudo ./hendgrow_auto_install_ollama_openwebui.sh

Optional (before running): pick a different starter model, or force CPU / GPU:

export
read more