From 885f6e0ee43c130a79f37514e25a312407002c2a Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 19:14:33 +0100 Subject: [PATCH] Update README.md --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/README.md b/README.md index cefa8a8..2a8152b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ Environment= [PATH BLA BLA] "OLLAMA_MODELS=/data_1/deepseek/models" "HOME=/data_ After that restart systemd with: ``` +systemctl daemon-reload +systemctl enable ollama.service systemctl restart ollama.service ``` @@ -129,3 +131,71 @@ You are Roo, a knowledgeable technical assistant focused on answering questions ``` The star thing on the right helps you to refine your prompt. And the most right icon (the arrow) submits your prompt. + +# open-webui + +You need following the packages installed: + +``` +npm python3 python3-pip python3-venv git +``` + +Then we need to do: +``` +git clone https://github.com/open-webui/open-webui.git +cd open-webui +cp -RPp .env.example .env +npm i +npm run build +cd backend +python3 -m venv venv && source venv/bin/activate +pip install -r requirements.txt -U +bash start.sh +``` +Now you should have a website under localhost:8080 + + +I made a systemd service out of it: /etc/systemd/system/open-webui.service +``` +[Unit] +Description=WebUI Service +After=network.target +[Service] +Type=simple +ExecStart=/usr/bin/bash -c ". /data_1/deepseek/open-webui/backend/bashrc ; /data_1/deepseek/open-webui/backend/start.sh" +Restart=always +RestartSec=3 +StandardOutput=syslog +StandardError=syslog +[Install] +WantedBy=multi-user.target +``` +Start the service: +``` +systemctl daemon-reload +systemctl enable open-webui.service +systemctl start open-webui.service +``` +Note the /data_1/deepseek/open-webui/backend/bashrc. I am using a separate python installation for Ollama. This file tells Ollama what python inst on the computer it has to use: +``` +source /data_1/deepseek/open-webui/backend/venv/bin/activate +export py_path=/data_1/deepseek/open-webui/backend/venv/bin +alias python=${py_path}/python3 +alias python3=${py_path}/python3 +alias pip3=${py_path}/pip3 +alias pip=${py_path}/pip3 +``` +This is how I installed my python: +``` +mkdir PySource +cd PySource +wget https://www.python.org/ftp/python/3.12.8/Python-3.12.8.tgz +tar -xvzf Python-3.12.8.tgz +cd Python-3.12.8 +./configure --prefix=/data_1/deepseek/P3.12 +make -j 10 +make install +cd /data_1/deepseek/P3.12/bin +./pip3 install --upgrade pip +``` +Please check the build dependencies beforehand!!! https://devguide.python.org/getting-started/setup-building/#install-dependencies