
In this blog post, we will show you how to install Ollama on Ubuntu 26.04 and run local LLMs with OpenWebUI.Ollama is a tool that allows you to download and run large language models (LLMs) directly on Ubuntu 26.04. It supports popular models such as Llama, Mistral, Gemma, and Qwen for text generation, coding, and other tasks, without sending your data to external AI services.
Open WebUI provides a simple, browser-based interface for interacting with these models. It allows you to start conversations, manage chat history, and access locally hosted models through an interface similar to ChatGPT. You can run Open WebUI in a Docker container, which makes installation and updates easier while keeping its dependencies separate from the host system. Ollama runs the models, while Open WebUI provides the graphical interface. Both can run on your own server; performance depends on available RAM, CPU, and GPU resources.
Table of Contents
Prerequisites
- A server running Ubuntu 26.04 OS
- User privileges: root or a non-root user with sudo privileges
- A valid domain with an A record pointing to the server IP address
Step 1. Update your system
Before installing anything on the server, update all system packages to the latest available versions. Run the following command in your Ubuntu 26.04 terminal:
apt update -y && apt upgrade -y
Step 2. Install Ollama
You can install Ollama on Ubuntu 26.04 using its official automated installation script. We just need to download and execute the script with the following command:
curl -fsSL https://ollama.com/install.sh | sh
The installation will start, and once done, you should get the following output:
>>> Creating ollama user... >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... Created symlink '/etc/systemd/system/default.target.wants/ollama.service' → '/etc/systemd/system/ollama.service'. >>> The Ollama API is now available at 127.0.0.1:11434. >>> Install complete. Run "ollama" from the command line. WARNING: No NVIDIA/AMD GPU detected. Ollama will run in CPU-only mode.
The script automatically creates the Ollama service. To check its status, execute the following command:
systemctl status ollama
You should get the following output:
root@host:~# sudo systemctl status ollama
● ollama.service - Ollama Service
Loaded: loaded (/etc/systemd/system/ollama.service; enabled; preset: enabled)
Active: active (running) since Wed 2026-10-21 18:18:28 CDT; 17s ago
Invocation: 619f118d7b3242e39daf6d5f5acf35cd
Main PID: 1487 (ollama)
Tasks: 10 (limit: 3770)
Memory: 12.8M (peak: 21.6M)
CPU: 630ms
CGroup: /system.slice/ollama.service
└─1487 /usr/local/bin/ollama serve
Step 3. Install Docker
Docker runs Open WebUI in an isolated container, simplifying installation, updates, and maintenance without affecting the Ubuntu host system. To install Docker, we first need to install some dependencies:
apt install software-properties-common apt-transport-https ca-certificates -y
Next is adding the Docker GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Next, we add the repository:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Once the repo is added, update the system and install Docker:
apt update -y apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
Once the installation is complete, start and enable the Docker service:
systemctl start docker && systemctl enable docker
To check the status of the Docker service, execute the command below:
systemctl status docker
You should get the following output:
root@host:~# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
Active: active (running) since Wed 2026-10-21 18:31:21 CDT; 28s ago
Invocation: 904c9ac2dd0a4bd3bae00c641d9a497f
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 2316 (dockerd)
Tasks: 10
Memory: 27.8M (peak: 28.3M)
CPU: 1.038s
CGroup: /system.slice/docker.service
└─2316 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Step 4. Run Open WebUI via Docker
The official Open WebUI Docker image can connect to Ollama running directly on the Ubuntu host. First, create a docker-compose.yaml file:
nano docker-compose.yaml
Paste the following lines of code:
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
volumes:
- ollama_data:/root/.ollama
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
ports:
- "8080:8080"
environment:
- OLLAMA_BASE_URL=http://YourDomainHere.com:11434
volumes:
- open-webui_data:/app/backend/data
depends_on:
- ollama
volumes:
ollama_data:
open-webui_data:
Save the file, close it, and start the Docker containers for Ollama and Open WebUI:
docker compose up -d
Once the containers are pulled, you should get the following output:

Step 5. Configure Open WebUI
To access Open WebUI, you can use the following URL: http://YourDomainHere.com:8080

Click on the Get Started button, and in the next window, create the admin account:

After clicking on the Create Admin Account, you will get the following screen:

Click OK, Let’s Go! in the bottom-right corner.

You can start interacting with your local LLMs.
Conclusion
That’s it. You successfully installed Ollama on Ubuntu 26.04 with Local LLMs and OpenWebUI.
If you have any difficulties with this installation, our Linux admins can help with any aspect. To get support, you need to sign up for one of our monthly management or per-incident server support plans. Don’t hesitate to contact us anytime. We are available 24/7.
If you liked this post on how to install Ollama on Ubuntu 26.04 OS to run local LLMs with OpenWebUI, please share it with your friends or leave a comment below.
