Making this post to document my own journey and troubles in regards to self hosting. Anything new learned or problems will be posted for educational purposes.
PC Specs: 2970WX, Gigabyte X399 Designare Ex, 32Gb Corsair 3000MHz, 3070Ti 8Gb
Making this post to document my own journey and troubles in regards to self hosting. Anything new learned or problems will be posted for educational purposes.
PC Specs: 2970WX, Gigabyte X399 Designare Ex, 32Gb Corsair 3000MHz, 3070Ti 8Gb
For sensor monitoring
āsudo apt-get install lm-sensorsā
Install CPU stress test: command s-tui to run
āsudo apt install --install-suggests s-tuiā
Installed curl to install tailscale
āsudo apt install curlā
Install tailscale and add it to the list of machines
ācurl -fsSL https://tailscale.com/install.sh | shā
āsudo tailscale upā
Install open ssh client for remoting into server
āsudo apt install openssh-clientā
Open port 22 to relevant Tailscale computers
āsudo ufw allow sshā
āsudo ufw allow from IP to any port 22ā
āsudo ufw enableā
āsudo ufw statusā
Listed port being open to anywhere and Tailscale to main PC
CANNOT CONNECT VIA MAIN PC
Typed command Tailscale up⦠Might help.
Reset firewall settings. I want to configure the firewall to ONLY allow Tailscale addresses from accessing port 22 for ssh on 15Apr26
Install virtual box to configure VMs for testing.
āsudo apt-get onstall virtualboxā
Installed Ollama
ācurl -fsSL https://ollama.com/install.sh | shā
Possible models to pull
Gemma4 e4b model: pulled on 0136 20Apr26
qwen3.5 2b, 4b, 9b
Installed Flatpack and GreenWithEnvy using the following commands after installing NVidia drivers
sudo apt install -y nvidia-driver-580
āsudo apt install flatpakā
restarted PC then the following
'flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepoā
āflatpak install flathub com.leinardi.gweā
Not functioning properly. Ability to change fan cruve settings, but 1060 3Gb doesnāt respond. Doesnāt work for 3070Ti either?
Installed ollama service to tailscale IP
āsudo systemctl edit ollama.serviceā
Editted upper section of service file to add the following
ā[Service] Environment=āOLLAMA_HOST=IPāā
Restarted Ollama after that with:
āsudo systemctl restart ollamaā
After that, I can now access Ollama on āthis websiteā
I then searched for Docker packages with the first line and installed Docker with the second.
āsudo apt update && apt-cache search dockerā
āsudo apt install docker.ioā
I enabled Docker with:
āsudo systemctl enable dockerā
Installed the Nvidia Container Toolkit using this: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
Configured the production repository:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed ās#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#gā |
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
(Have no idea what Iām doing at this point in regards to NVIDIA Drivers and packages)
Update and upgraded
Then installed NVIDIA Container Toolkit packages:
Followed this website: https://www.robwillis.info/2025/05/ultimate-local-ai-setup-guide-ubuntu-ollama-open-webui/
Now install NVidia Docker packages
āsudo apt install nvidia-container-toolkitā
Configured the container runtime
āsudo nvidia-ctk runtime configure --runtime=dockerā
Restarted Docker with
āsudo systemctl restart dockerā
OpenWebUI
āsudo docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainā
Error message of Docker: invalid reference format
Might not have pulled the Docker image. Did it after the error message
āsudo docker pull ghcr.io/open-webui/open-webui:mainā
Still an error message. Trying Option #2 from the website
āsudo docker run -d -p 80:8080 --network host --restart always --gpus all -e OLLAMA_BASE_URL=http://127.0.0.1:11434 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:mainā
Modified the IP to be the Tailscale IDā¦.
āsudo docker run -d -p 80:8080 --network host --restart always --gpus all -e OLLAMA_BASE_URL=TS-IP -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:mainā
docker: Error response from daemon: Conflict. The container name ā/open-webuiā is already in use by container ā520e7fd37a3ae9423e494b4f7b68e3c1d21055558514b6cef823213ead90cc50ā. You have to remove (or rename) that container to be able to reuse that name.
Ran command āsudo docker container pruneā and deleted containers that were lingering from the original pull? command or run? Command. Can also run āsudo docker container ps -aā to show containers that have stopped/hidden?
Re-ran the following command:
āsudo docker run -d -p 3000:8080 --add host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainā
OpenWebUI now functions. Information saved accordingly. OpenWebUI loads with TS-IP
Need to add a model. Ollama isnāt connect to the IP Iāve set.
Ran ādocker logs open-webuiā from https://techjunction.co/unable-to-access-ollama-models-on-open-webui-after-enabling-https-troubleshooting-and-resolution-guide/ for diagnostics?
Logged into webUI from the SERVER pc. Can I add models?
Ollama is not auto connected. āsudo ollama serveā. Generated a key?
Removed the existing container to add this command for a new container.
ādocker run -d \\ -p 3000:8080 \\ -e OLLAMA_BASE_URL=??? \\ -v open-webui:/app/backend/data \\ --name open-webui \\ ghcr.io/open-webui/open-webui:mainā
check out this link How to Set Up Open WebUI with Ollama (Complete Guide) - ML Journey
Re-ran this command after deleting the previous container
āsudo docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainā
Installing pingh and iputils-ping, nevermind useless for this case. Installed to home directory.
Deleted post below because it was the same as this one.
31May26
Attempted to install a NVIDIA V100 16GB SXM2 TESLA GPU for the AI workload over the 3070Ti 8Gb, but there were booting issues when combining the V100 with a 1060 3Gb.
PC would not boot with the V100 installedā¦ā¦ Maybe will have to take it apart and reassemble it and see if that helps.
May also update OpenWebUI. I needed to get the WebUI key and used āsudo docker exec open-webui cat .webui_secret_keyā. Worked well!