Hello folks,
today I want to give you a tutorial on how to start with AI on your own local machine. This is a very rewarding task, expecially if you can use your self-hosted AI on a daily base on your own machine. Todo that only three points have to be done. I’ll show you for Debian Trixie…
Run the ollama script and install a model (the backend / core logic)
Install docker (needed for WebUI)
Install WebUI itself (this is needed as a frontend and to administrate the chats)
Install Ollama
This is the simplest task of all three. All you need to do is:
1
curl -fsSL https://ollama.com/install.sh | sh
This is the installer script - run it as normal user but with sudo rights after that step you run
1
ollama serve
to run the application, but we still need a model - I decided for qwen2.5 - download and run it via
1
2
ollama pull qwen2.5
ollama run qwen2.5
Now you have a shell open where you already can chat with the model (and exit via /exit )
Next we get to step 2 and 3…
Install Docker
I wont explain this here but refer you to the appropriate resources found here.
Install WebUI
To run WebUI and let it connect with ollama execute the following docker command:
1
2
3
4
5
6
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
-v open-webui:/app/backend/data \
--name open-webui \
ghcr.io/open-webui/open-webui:main