Skip to content

Instantly share code, notes, and snippets.

@ValchanOficial
Last active February 9, 2025 19:47
Show Gist options
  • Save ValchanOficial/3210ab2e0cf9f892b1a5d234218de708 to your computer and use it in GitHub Desktop.
Save ValchanOficial/3210ab2e0cf9f892b1a5d234218de708 to your computer and use it in GitHub Desktop.
WSL2 + ollama + deepseek + open-webui
https://learn.microsoft.com/en-us/windows/wsl/systemd#how-to-enable-systemd
https://ollama.com/download/linux
https://docs.openwebui.com/
https://github.com/open-webui/open-webui
1 - sudo nano /etc/wsl.conf
2 - Add values
[boot]
systemd=true
3 - Ctrl + X, select Y to save your change
4 - Use the command wsl.exe --shutdown in PowerShell to restart all WSL instances
5 - curl -fsSL https://ollama.com/install.sh | sh
6 - Try to run "ollama" from the command line
** if not starts with systemd
ollama serve
http://127.0.0.1:11434/
**
Add deepseek
7 - ollama pull deepseek-r1
8 - ollama list // or http://127.0.0.1:11434/api/tags
Add open-webui
9 - docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main
10 - http://localhost:8080
11 - http://localhost:8080/admin/settings -> Ollama API connection should be: http://127.0.0.1:11434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment