From 9153ed905feffb37558a42cc921905d551087b4a Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 2 Apr 2025 14:56:08 +0200 Subject: [PATCH] Fixes in sh --- install_incus_ollama.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_incus_ollama.sh b/install_incus_ollama.sh index 7a9cfcf..d4bd5be 100644 --- a/install_incus_ollama.sh +++ b/install_incus_ollama.sh @@ -132,7 +132,7 @@ Signed-By: /etc/apt/keyrings/zabbly.asc \ \ EOF'" "Add incus stable repo" -run_command "incus exec ollama-container -- apt install -y software-properties-common" "Add software properties package" +run_command "incus exec ollama-container -- apt install -y software-properties-common gpg wget" "Add software properties package and other utilities" run_command "incus exec ollama-container -- apt-add-repository -y contrib" "Add contrib" @@ -157,7 +157,7 @@ run_command "incus exec ollama-container -- dpkg -i cuda-keyring_1.1-1_all.deb" run_command "incus exec ollama-container -- apt-get -y -f install" "" run_command "incus exec ollama-container -- apt update" "" -run_command "incus exec ollama-container -- bash -c 'echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /" \ +run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /\" \ | tee /etc/apt/sources.list.d/cuda-debian12-x86_64.list'" "" run_command "incus exec ollama-container -- apt -y update" "" @@ -166,7 +166,7 @@ run_command "incus exec ollama-container -- apt -y install cuda-drivers" "" echo "Install Ollama in container ollama-container" "" -run_command "incus exec ollama-container -- apt -y install curl" "" +run_command "incus exec ollama-container -- apt -y install curl " "" run_command "incus exec ollama-container -- curl -fsSL https://ollama.com/install.sh | sh" "" run_command "incus exec ollama-container -- ollama run gemma3:4b" ""