mirror of
https://github.com/open-webui/docs.git
synced 2026-07-21 01:55:22 -04:00
Documentation suggestion for Open-webUI using Python (conda) and Ollama #71
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LucIJspeert on GitHub (Mar 27, 2025).
Originally assigned to: @Classic298 on GitHub.
This is a little guide I wrote to make it simpler to start Ollama+Open-webUI in the case that Open-webUI is installed in a conda environment. My suggestion is that this could be added to the documentation
docs/getting-started/quick-start/starting-with-ollama, or to the tutorial section. While it works for me now, it can be that I missed something while writing it down.One-click solution to start Ollama and Open-webUI
These instructions explain how to make a script and desktop entry in linux that will make it easy to start the Ollama service and the Open-webUI service as well as automatically open the browser at the right local address.
Start by making a separate shell script for stopping the Ollama service (this resolves an issue where Ollama will not start because the address it is trying to bind to is already in use - by itself). Call this file
stop_ollama.shand put the following into it:Now save this script in some directory of your choosing, for example
/home/usr/ollama-open-webui/stop_ollama.sh. Replaceusrby your username in these paths. This file needs to be made executable:It also needs to be given the right privileges so that we don't need to type our password every time:
Add a line at the bottom:
This will prompt you for your password once. Next, we make the main script that starts the services and opens a browser (tab) in the default program. Call it something like
start_services.shand put it in the same folder as the previous script.It uses the first script to stop the Ollama service, then opens another terminal tab to start the Ollama service there. This assumes you are using a system with a gnome-terminal (I'm sure you'll be able to adapt it if this is not the case). It opens another tab to start the Open-webUI service: it is important that this is an interactive bash shell, as otherwise the right things (./bashrc, conda) will not be initialised. If you installed Open-webUI in another environment than with conda, edit the environment activation line in the script. The commands
exec bashmake sure the tabs don't automatically close after execution, so that any error messages can be seen. Lastly it opens another tab that waits 5 seconds for the services to start and then opens a browser tab to go to the localhost address for Open-webUI. This script has to be made executable, too.We're almost there, we just need to make a desktop entry to make this truly a one-click solution. Make a file called
start_ollama_webui.desktopor similar and save it in the folder/home/usr/.local/share/applicationswith the following content:You should now be able to find this entry (by searching for 'ollama') in the 'start' menu and run the whole setup with one click! Optionally, download an Ollama icon and add the path
/home/usr/ollama-open-webui/ollama_icon.pngto the lineIcon=. UsingCategories=Developmentmakes sure you can also find the entry in the 'Programming' category of the menu. You can add it to your panel or desktop if desired.@Classic298 commented on GitHub (Sep 17, 2025):
Your suggested content is too advanced, Linux-specific, and automation-focused to fit into any of the basic installation guides.
It would be better suited for a separate "Community Tutorials" section.
Added as a tutorial here: https://github.com/open-webui/docs/blob/dev/docs/tutorials/tips/one-click-ollama-launcher.mdx
Feedback welcome, PRs welcome.