Update README.md

This commit is contained in:
David Rotermund 2025-02-02 19:14:33 +01:00
parent a7d41ff305
commit 885f6e0ee4

View file

@ -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