1 minute read

open-webui on Raspi

DL Raspi OS, ssh, user

«««< .mine

=======

.theirs https://downloads.raspberrypi.com/raspios_arm64/release_notes.txt

  • add ssh :- on sd card add file ssh with 0 Bytes
  • add user pi with pwd raspi: add file userconf.txt on sd card with
    pi:$6$01d0LOa5n1bztez.$DmT0rH0abvOyiuDtHApYpxDWNAuVCgn9Y4jyNPh3wPgSDLrPpAZmYvIgBx6c1Jj2sPo5o2XaMuqznX83MFmNB/
    

see: FOM_EDU/2023_IIT_Labor/files/userconf.txt at main · softwareengel/FOM_EDU

install open-webui - log


uname -a

Linux raspberrypi 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linux

sudo apt update
sudo apt upgrade
 
# Docker auf Raspberry Pi installieren
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker pi

# Docker-Dienst starten und automatisch beim Boot aktivieren
sudo systemctl enable docker
sudo systemctl start docker
newgrp docker

# Portainer Volume erstellen
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

# Docker Open-webui 
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always --platform linux/arm64 ghcr.io/open-webui/open-webui:main


cloudflaird

sudo tee /etc/cloudflared/config.yml > /dev/null «‘EOF’

install cloudflair

1. Cloudflared auf Raspberry Pi installieren

wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64

sudo mv cloudflared-linux-arm64 /usr/local/bin/cloudflared

sudo chmod +x /usr/local/bin/cloudflared

cloudflared --version
cloudflared tunnel login

pi@raspberrypi:~ $ cloudflared tunnel login Please open the following URL and log in with your Cloudflare account:

https://dash.cloudflare.com/argotunnel?aud=&callback=https%3A%2F%2Flogin.cloudflareaccess.org%2FFqecHwoonwTSfYWO29Yrj8LbHIMWQ2qEBEcFGcyQm3E%3D

Leave cloudflared running to download the cert automatically. 2025-11-01T12:30:24Z INF Waiting for login… 2025-11-01T12:31:17Z INF Waiting for login… 2025-11-01T12:32:10Z INF Waiting for login… 2025-11-01T12:32:54Z INF You have successfully logged in. If you wish to copy your credentials to a server, they have been saved to: /home/pi/.cloudflared/cert.pem

cloudflared tunnel create open-webui-raspi

pi@raspberrypi:~ $ cloudflared tunnel create open-webui-raspi Tunnel credentials written to /home/pi/.cloudflared/3b67c0c7-75a3-4fd3-936b-3b880d9df726.json. cloudflared chose this file based on where your origin certificate was found. Keep this file secret. To revoke these credentials, delete the tunnel.

Created tunnel open-webui-raspi with id 3b67c0c7-75a3-4fd3-936b-3b880d9df726

sudo mkdir -p /etc/cloudflared
sudo nano /etc/cloudflared/config.yml

Refs