[GH-ISSUE #2398] Running Ollama on mac but accessing through SSH only? #1396

Closed
opened 2026-04-12 11:13:34 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @sei-dupdyke on GitHub (Feb 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2398

Can I run the app on an apple silicon based mac accessible via SSH only? After copying the installer out there, something like:

unzip Ollama-darwin.zip
mv Ollama.app /Applications/.
cd /Applications/.
chmod +x Ollama.app
open -n Ollama.app

but this gives no indication of changes, and when i subsequently run ollama list I get "zsh: command not found: ollama" (even with new shell, or login/out).

Is there a way to run it in this manner? Thanks!!

Originally created by @sei-dupdyke on GitHub (Feb 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2398 Can I run the app on an apple silicon based mac accessible via SSH only? After copying the installer out there, something like: ```bash unzip Ollama-darwin.zip mv Ollama.app /Applications/. cd /Applications/. chmod +x Ollama.app open -n Ollama.app ``` but this gives no indication of changes, and when i subsequently run `ollama list` I get "zsh: command not found: ollama" (even with new shell, or login/out). Is there a way to run it in this manner? Thanks!!
Author
Owner

@jmorganca commented on GitHub (Feb 7, 2024):

When starting Ollama.app, it prompts to create a symlink, but you can do that manually

sudo ln -s /Applications/Ollama.app/Contents/Resources/ollama /usr/local/bin/ollama

ollama list etc should work afterwards

Hope this helps!

<!-- gh-comment-id:1933018460 --> @jmorganca commented on GitHub (Feb 7, 2024): When starting `Ollama.app`, it prompts to create a symlink, but you can do that manually ``` sudo ln -s /Applications/Ollama.app/Contents/Resources/ollama /usr/local/bin/ollama ``` `ollama list` etc should work afterwards Hope this helps!
Author
Owner

@sei-dupdyke commented on GitHub (Feb 8, 2024):

Thank you. I had to sudo mkdir -p /usr/local/bin, but then that command worked perfectly. I'm up and running.

Is it possible for me to copy in and load models without an internet connection? If this is already documented, could you point me to it please? TIA.

Love the project, keep up the great work!

<!-- gh-comment-id:1934074991 --> @sei-dupdyke commented on GitHub (Feb 8, 2024): Thank you. I had to `sudo mkdir -p /usr/local/bin`, but then that command worked perfectly. I'm up and running. Is it possible for me to copy in and load models without an internet connection? If this is already documented, could you point me to it please? TIA. Love the project, keep up the great work!
Author
Owner

@ProjectsOfMLee commented on GitHub (Apr 8, 2024):

When starting Ollama.app, it prompts to create a symlink, but you can do that manually

sudo ln -s /Applications/Ollama.app/Contents/Resources/ollama /usr/local/bin/ollama

ollama list etc should work afterwards

Hope this helps!

Hi team, I'm still getting issue after trying with this. It keeps showing zsh: command not found: ollama for me. I downloaded the macOS version for my M1 mbp (Ventura 13.6.4 (22G513). the Ollama.app has been placed under /Applications.

<!-- gh-comment-id:2043886693 --> @ProjectsOfMLee commented on GitHub (Apr 8, 2024): > When starting `Ollama.app`, it prompts to create a symlink, but you can do that manually > > ``` > sudo ln -s /Applications/Ollama.app/Contents/Resources/ollama /usr/local/bin/ollama > ``` > > `ollama list` etc should work afterwards > > Hope this helps! Hi team, I'm still getting issue after trying with this. It keeps showing `zsh: command not found: ollama` for me. I downloaded the macOS version for my M1 mbp (Ventura 13.6.4 (22G513). the Ollama.app has been placed under /Applications.
Author
Owner

@wincc0823 commented on GitHub (Jul 25, 2024):

vim .zshrc

#ollama
export PATH=/usr/local/bin:$PATH

source .zshrc

enjoy 🤣

<!-- gh-comment-id:2249566379 --> @wincc0823 commented on GitHub (Jul 25, 2024): vim .zshrc #ollama export PATH=/usr/local/bin:$PATH source .zshrc enjoy 🤣
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1396