From 604523ba1fa199dba3a11fce13122d94ffccce9f Mon Sep 17 00:00:00 2001 From: Johan Date: Mon, 17 Feb 2025 10:12:17 +0100 Subject: [PATCH] Add Llama bash installation script --- BashScripts/install-ollama.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 BashScripts/install-ollama.sh diff --git a/BashScripts/install-ollama.sh b/BashScripts/install-ollama.sh new file mode 100644 index 0000000..00704f0 --- /dev/null +++ b/BashScripts/install-ollama.sh @@ -0,0 +1,9 @@ +# Make sure script is ran as root +if [[ $EUID -ne 0 ]]; then + exec sudo /bin/bash "$0" "$@" +fi + +curl -fsSL https://ollama.com/install.sh | sh +ollama serve + +# docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama \ No newline at end of file