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.
ssh root@HOST
apt update && apt -y upgradeGuide · Dedicated Server & VPS
Secure the server, set up Ollama, choose the right model and provide a chat interface for your team – step by step.
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.
ssh root@HOST
apt update && apt -y upgradeBefore any services run: firewall on, only SSH open. Everything else stays unreachable from outside until you open it deliberately.
apt -y install ufw
ufw allow OpenSSH
ufw enableWhere possible sign in with an SSH key instead of a password. The official instructions are linked below.
The install script sets Ollama up as a system service that starts automatically after every reboot.
curl -fsSL https://ollama.com/install.sh | sh
systemctl status ollamaollama run gemma3On 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.
| Task | Recommendation | Command |
|---|---|---|
| Interactive chat | 3B to 8B | ollama run llama3.2 |
| Search in your own documents (RAG) | Embedding model | ollama pull nomic-embed-text |
| Overnight analyses | 20B to 70B | ollama run llama3.3 |
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.
ollama pull llama3.2 # 1. download
ollama run llama3.2 # 2. start and typeollama pull llama3.1:8b # 1. download
ollama run llama3.1:8b # 2. start and typeollama pull gemma3:12b # 1. download
ollama run gemma3:12b # 2. start and typeollama pull gpt-oss:20b # 1. download
ollama run gpt-oss:20b # 2. start and typeollama pull gemma3:27b # 1. download
ollama run gemma3:27b # 2. start and typeqwen3-coder:30b variant for that).ollama pull llama3.3 # 1. download
ollama run llama3.3 # 2. start and typeFor 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.
During a conversation you control the model with commands that begin with a slash:
| Command | Effect |
|---|---|
/? | Show all commands |
/clear | Forget the conversation history and start afresh |
/set parameter num_ctx 8192 | Enlarge 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 |
/bye | End the conversation |
A single question without a conversation, for example in a script, and measuring the speed:
ollama run gemma3 "Fasse zusammen: ..."
ollama run gemma3 --verboseWith --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.
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:
systemctl edit ollama[Service]
Environment="OLLAMA_KEEP_ALIVE=24h"
Environment="OLLAMA_NUM_PARALLEL=2"systemctl restart ollamaOllama provides an API on the machine on port 11434. It is reachable locally only – that is intentional and should stay that way.
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.
Do not open the API to the internet. An SSH tunnel forwards the port, encrypted, to your own computer – without additional software.
ssh -N -L 11434:localhost:11434 root@HOSTAs 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.
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.
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:mainThe 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.
ssh -N -L 8080:localhost:8080 root@HOSTIf 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.
chat.example.com {
reverse_proxy localhost:8080
}ufw allow 80,443/tcp
systemctl reload caddyOnly 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.
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 modelModels 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.
The messages appear like this in the terminal. Find the matching line – the cause and the fix are below it.
command not found: ollamaMeaningOllama 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 existMeaningThis 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 exceededMeaningThe download was interrupted several times.
FixRun the same command again – the download resumes where it stopped.
no space left on deviceMeaningThe 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 useMeaningOllama is already running; a second start is not needed.
FixNothing else to do – just use ollama run.
model "…" not found, try pulling it firstMeaningA 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 11434MeaningNothing 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 useMeaningWith 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 refusedMeaningThe 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 socketMeaningThe 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 useMeaningThe container already exists.
FixStart it instead of creating it again: docker start open-webui
/set parameter num_ctx 8192.ollama pull.-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.
Order online – or talk to us if you’re planning something bigger.
Automated replies
Hello! I answer questions about Dedicated Mac, VPS, servers, web hosting, domains, prices and contracts. How can I help?
Answers may be incomplete – the Terms and product pages are binding. Your input is not stored. Human support
Loading page …