File size: 455 Bytes
95744d9
 
 
 
 
5367df9
 
650e63c
95744d9
 
 
650e63c
95744d9
650e63c
 
 
95744d9
650e63c
95744d9
 
650e63c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#!/usr/bin/bash

echo "calling process one......!"

sudo su

sudo curl https://ollama.ai/install.sh | sh

echo "ollama installed here..."

sudo ollama serve &
# nohup ollama serve > output.log 2>&1 &
sudo mkdir -p /etc/systemd/system/ollama.service.d
sudo echo "[Service]" >>/etc/systemd/system/ollama.service.d/environment.conf
sudo echo "ollama served"

sudo ollama run llama2 &
# nohup ollama run llama2 > output.log 2>&1 &

sudo echo "llama2 running"