your-papa / obsidian-Smart2Brain

An Obsidian plugin to interact with your privacy focused AI-Assistant making your second brain even smarter!
GNU Affero General Public License v3.0
476 stars 29 forks source link

How to make it work, when using Ollama installed on Ubuntu WSL #120

Open Nukael opened 3 months ago

Nukael commented 3 months ago

I can't run $env:OLLAMA_ORIGINS="app://obsidian.md*"; ollama serve on Windows PS, while Ollama is running on WSL.

nicobrauchtgit commented 3 months ago

Hi @Nukael, on Windows you can also use the Ollama Windows App if you'd like. You can find the documentation here. In case you want to use the WSL here is how to do it: OLLAMA_ORIGINS="app://obsidian.md*" && ollama serve

Nukael commented 3 months ago

Hi. When I try that "OLLAMA_ORIGINS="app://obsidian.md*" && ollama serve" on WSL I receive this: "Error: listen tcp 127.0.0.1:11434: bind: address already in use"

nicobrauchtgit commented 3 months ago

This is probably because Ollama is already running somewhere. To kill this process do something like this: Find the process id using port 11434: sudo lsof -i :11434 Kill the process: sudo kill -9 <PID> with being the value you received from the previous cmd

titan-rocky commented 1 month ago

The problem still exists still after adding the OLLAMA_ORIGINS="app://obsidian.md*, using a ubuntu WSL, and obsidian in windows. The plugin fails at Test if the origins are set correctly. Have even tried adding it in .bashrc, and as env, but it still doesnt work, even after restarting WSL