Hi,
Please confirm/correct me.
To create ollama startup script, is it good enough to do this:
nano /etc/rc.d/rc.ollama_startup.sh
#!/bin/bash
# Change directory to where Ollama is installed
cd /usr/local/bin/ollama
# Run Ollama Serve
./ollama serve
After saving this file run:
chmod +x /etc/rc.d/rc.ollama-startup.sh
Now, will the script run automatically at system startup, launching Ollama
Serve in the background? I don't think so, it would be too easy.
Thank you for your assistance.
Pawel
-----Original Message-----
From: Didier Spaier <didier@xxxxxxxx>
Sent: Friday, January 26, 2024 12:04 PM
To: ploba60@xxxxxxxxx
Subject: Re: [slint] ollama installation on Slint
Hello,
Yes. Or just:
wget https://ollama.ai/install.sh
Then (as root or using sudo):
sh install.sh
This way you can, have a look at this script before running it.
I did. Although the shebang be:
#!/bin/sh
it is actually a bash script: as noticed by shellcheck:
In POSIX sh, 'local' is undefined.
But as in Slint /bin/sh is a symlink to /bin/bash
I didn't check the script otherwise, but it worked here (with caveats as I do
not have NVIDA gpu).
Didier
Le 1/26/24 à 16:31, ploba60@xxxxxxxxx a écrit :
Hello,
Would you mind sharing your thoughts regarding the ollama installation on
Slint:
https://ollama.ai/download/linux ;<https://ollama.ai/download/linux>
After reading their “manual install instructions” I am not sure that I
can run their install with one command:
curl https://ollama.ai/install.sh ;<https://ollama.ai/install.sh> | sh
Is it going to run on Slint?
Thanks,
Pawel