Guide · Dedicated Server & VPS

AI on your own Linux server: from sign-in to team chat

Secure the server, set up Ollama, choose the right model and provide a chat interface for your team – step by step.

1Connect and update

This guide applies to Dedicated Servers and VPS with Ubuntu or Debian. Address and password are in the customer panel under “Services”; the examples use HOST.

Terminal
ssh root@HOST
apt update && apt -y upgrade

2Secure the server

Before any services run: firewall on, only SSH open. Everything else stays unreachable from outside until you open it deliberately.

Terminal
apt -y install ufw
ufw allow OpenSSH
ufw enable

Where possible sign in with an SSH key instead of a password. The official instructions are linked below.

3Install Ollama

The install script sets Ollama up as a system service that starts automatically after every reboot.

Terminal
curl -fsSL https://ollama.com/install.sh | sh
systemctl status ollama

4Start your first model

Terminal
ollama run gemma3

On first start the model is downloaded (about 3 GB here); after that you can type straight away. End the conversation with /bye.

Our Dedicated Servers compute on the CPU, without a graphics card. There is plenty of memory; what is limited is speed. So choose the model size according to the task.

TaskRecommendationCommand
Interactive chat3B to 8Bollama run llama3.2
Search in your own documents (RAG)Embedding modelollama pull nomic-embed-text
Overnight analyses20B to 70Bollama run llama3.3

5Models from 3B to 70B: download, start, use

The number before the “B” stands for billions of parameters: the larger, the better the answers – and the more memory and time the model needs. For each class we name a proven model. Open the size you want.

3Bllama3.2Download 2 GB · from 8 GB RAM
Terminal
ollama pull llama3.2     # 1. download
ollama run llama3.2      # 2. start and type
Good for
Short answers, summaries, classifying and sorting texts.
Typical problem
Makes mistakes more often with specialist questions and long texts. Double-check important answers.
Speed on the CPU
fluent
8Bllama3.1:8bDownload 5 GB · from 16 GB RAM
Terminal
ollama pull llama3.1:8b     # 1. download
ollama run llama3.1:8b      # 2. start and type
Good for
Everyday chat, emails, translations, simple programming tasks.
Typical problem
With long documents the beginning gets lost. In that case enlarge the context window (see “Everyday use”).
Speed on the CPU
works well
12–14Bgemma3:12bDownload 8 GB · from 16 GB RAM
Terminal
ollama pull gemma3:12b     # 1. download
ollama run gemma3:12b      # 2. start and type
Good for
Good language quality beyond English too; also understands images.
Typical problem
On a 16 GB machine little memory is left for anything else. Close other programs.
Speed on the CPU
usable, noticeably slower
20Bgpt-oss:20bDownload 14 GB · from 32 GB RAM
Terminal
ollama pull gpt-oss:20b     # 1. download
ollama run gpt-oss:20b      # 2. start and type
Good for
Multi-step reasoning, tool calls, agents.
Typical problem
The model reasons before answering – so the first output appears later.
Speed on the CPU
slow
27–34Bgemma3:27bDownload 17–19 GB · from 32 GB RAM
Terminal
ollama pull gemma3:27b     # 1. download
ollama run gemma3:27b      # 2. start and type
Good for
Demanding texts and programming whole files (use the qwen3-coder:30b variant for that).
Typical problem
The first start takes a while until the model is in memory. After that it stays loaded for a few minutes.
Speed on the CPU
slow
70Bllama3.3Download 43 GB · from 64 GB RAM
Terminal
ollama pull llama3.3     # 1. download
ollama run llama3.3      # 2. start and type
Good for
Highest quality in this range: analyses, long documents, specialist texts.
Typical problem
Takes up most of a 64 GB machine. For long context, 96 GB or more makes sense.
Speed on the CPU
only for tasks without time pressure

For large models in interactive use a Mac with Apple Silicon is the better choice: there the GPU computes directly on the entire memory. To the guide for Mac

New model generations appear all the time. You will find the current selection with sizes in the Ollama model library.

6Everyday use

During a conversation you control the model with commands that begin with a slash:

CommandEffect
/?Show all commands
/clearForget the conversation history and start afresh
/set parameter num_ctx 8192Enlarge the context window so that long texts are considered in full (needs more memory)
/set system "…"Standing instruction for the conversation, for example language and tone
"""Begin and end multi-line text
/byeEnd the conversation

A single question without a conversation, for example in a script, and measuring the speed:

Terminal
ollama run gemma3 "Fasse zusammen: ..."
ollama run gemma3 --verbose

With --verbose Ollama shows the speed in tokens per second after each answer. As a guide: from about 10 tokens per second an answer can be read along fluently.

7Configure for server operation

By default Ollama unloads a model after a few minutes without a request. On a server it should stay in memory and serve several requests at once:

Terminal
systemctl edit ollama
Enter in the editor
[Service]
Environment="OLLAMA_KEEP_ALIVE=24h"
Environment="OLLAMA_NUM_PARALLEL=2"
Terminal
systemctl restart ollama

8Use the API

Ollama provides an API on the machine on port 11434. It is reachable locally only – that is intentional and should stay that way.

Terminal
curl http://localhost:11434/api/chat -d '{
  "model": "gemma3",
  "messages": [{ "role": "user", "content": "Hallo!" }],
  "stream": false
}'

Many programs speak the OpenAI API. For them it is enough to enter http://localhost:11434/v1 as the address; an API key is not checked.

9Access it securely from your computer

Do not open the API to the internet. An SSH tunnel forwards the port, encrypted, to your own computer – without additional software.

On your own computer
ssh -N -L 11434:localhost:11434 root@HOST

As long as the command is running, you reach the AI on your computer at http://localhost:11434 – as if it were running locally.

Do not switch Ollama to OLLAMA_HOST=0.0.0.0 unless a firewall and a sign-in are in front of it: the API has no password protection, anyone on the network could use your models.

10Chat interface in the browser: Open WebUI

Open WebUI provides an interface like well-known chat services – with history, files and multiple users. On the server it runs most easily as a Docker container.

Terminal
curl -fsSL https://get.docker.com | sh
docker run -d --network=host -v open-webui:/app/backend/data \
  -e OLLAMA_BASE_URL=http://127.0.0.1:11434 \
  --name open-webui --restart always ghcr.io/open-webui/open-webui:main

The interface then runs on port 8080 and finds Ollama by itself. Bring it to your computer through a tunnel and open http://localhost:8080. The first account created becomes the administrator.

On your own computer
ssh -N -L 8080:localhost:8080 root@HOST

11Make it available to your team

If the interface is to be reachable without a tunnel, a web server with HTTPS belongs in front of it. With Caddy, a domain pointing to the server and three lines are enough; Caddy obtains the certificate itself. Install Caddy following the official instructions linked below.

/etc/caddy/Caddyfile
chat.example.com {
    reverse_proxy localhost:8080
}
Terminal
ufw allow 80,443/tcp
systemctl reload caddy

Only expose the interface (it requires sign-in), never port 11434. Switch off open registration in Open WebUI as soon as your team has been set up.

12Operation and maintenance

Terminal
ollama list          # models stored on disk
ollama ps            # what is currently in memory
ollama rm gemma3     # delete a model, free up space
ollama pull gemma3   # update a model

Models are large. Check the free disk space before a download and delete what you no longer need.

You can view the service logs with journalctl -u ollama -f.

14Error messages: meaning and fix

The messages appear like this in the terminal. Find the matching line – the cause and the fix are below it.

command not found: ollama

MeaningOllama is not installed or the terminal does not know the command yet.

FixOpen a new terminal window. If that does not help, repeat the installation.

Error: could not connect to ollama app, is it running?

MeaningThe Ollama service is not running.

FixStart the service: systemctl start ollama

Error: pull model manifest: file does not exist

MeaningThis model name does not exist – usually a typo or a size that is not offered.

FixCheck the spelling in the model library, for example gemma3:12b instead of gemma3:13b.

Error: max retries exceeded

MeaningThe download was interrupted several times.

FixRun the same command again – the download resumes where it stopped.

no space left on device

MeaningThe disk is full.

FixCheck with ollama list, delete models you do not need with ollama rm.

Error: model requires more system memory (… GiB) than is available (… GiB)

MeaningThe model is too large for the free memory.

FixChoose a smaller class or unload other models: ollama stop MODELL

Error: listen tcp 127.0.0.1:11434: bind: address already in use

MeaningOllama is already running; a second start is not needed.

FixNothing else to do – just use ollama run.

model "…" not found, try pulling it first

MeaningA program requests a model via the API that has not been downloaded yet.

FixDownload the model first: ollama pull MODELL

curl: (7) Failed to connect to localhost port 11434

MeaningNothing answers at this address: service stopped or tunnel closed.

FixCheck the service on the server and restart the SSH tunnel on your own computer.

bind [127.0.0.1]:11434: Address already in use

MeaningWith the tunnel: the port is already in use on your own computer, often by a local Ollama.

FixChoose a different local port, for example -L 11435:localhost:11434

ssh: connect to host … port 22: Connection refused

MeaningThe server does not accept an SSH connection: wrong address, reboot or suspended service.

FixCheck the address and status in the customer panel; otherwise contact support.

Permission denied (publickey,password)

MeaningUser name, password or key is incorrect.

FixLook up the access data in the customer panel. You can request a new password there.

permission denied while trying to connect to the Docker daemon socket

MeaningThe signed-in user is not allowed to control Docker.

FixWork as root or add the user to the docker group.

docker: Error response from daemon: Conflict. The container name "/open-webui" is already in use

MeaningThe container already exists.

FixStart it instead of creating it again: docker start open-webui

Without an error message

Answers come very slowly
On the CPU this is normal for large models. Choose a smaller variant or run jobs in a batch overnight.
The model forgets the beginning of long texts
The context window is too small. Enlarge it with /set parameter num_ctx 8192.
The answer contains factual errors
Language models can make convincing-sounding mistakes, small ones more often than large ones. Check facts, figures and code before you use them.
Open WebUI shows no models
Ollama is not running or no model has been downloaded yet. Download at least one with ollama pull.
The tunnel drops
Keep the terminal window with the SSH command open. With an unstable connection -o ServerAliveInterval=30 helps.

Stuck? Write to us with the error message at [email protected] or in the customer panel – we will help.

As of 11/2026. Commands and model names are taken from the official documentation and may change – the linked sources are authoritative. The programs and models mentioned come from third parties; their licences apply.

Ready for your server?

Order online – or talk to us if you’re planning something bigger.