Add ollama user to video group

On OpenSUSE, ollama needs to be a member of the video group
to access the GPU
This commit is contained in:
Daniel Hiltgen 2024-02-29 08:50:10 -08:00
parent 076237b8ea
commit 74468513bd

View file

@ -88,6 +88,10 @@ configure_systemd() {
status "Adding ollama user to render group..."
$SUDO usermod -a -G render ollama
fi
if getent group video >/dev/null 2>&1; then
status "Adding ollama user to video group..."
$SUDO usermod -a -G video ollama
fi
status "Adding current user to ollama group..."
$SUDO usermod -a -G ollama $(whoami)