mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-13 17:27:05 +00:00
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:
@@ -88,6 +88,10 @@ configure_systemd() {
|
|||||||
status "Adding ollama user to render group..."
|
status "Adding ollama user to render group..."
|
||||||
$SUDO usermod -a -G render ollama
|
$SUDO usermod -a -G render ollama
|
||||||
fi
|
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..."
|
status "Adding current user to ollama group..."
|
||||||
$SUDO usermod -a -G ollama $(whoami)
|
$SUDO usermod -a -G ollama $(whoami)
|
||||||
|
|||||||
Reference in New Issue
Block a user