chore: option to install non-free HW accel

This commit is contained in:
Kyle Kroboth 2025-03-11 23:02:53 -04:00
parent 887338060a
commit 3c9f47026c

View File

@ -37,6 +37,10 @@ $STD apt update
msg_ok "Installed FFmpeg"
msg_info "Setting Up Hardware Acceleration"
read -r -p "Do you need the intel-media-va-driver-non-free driver (Debian 12 only)? <y/N> " prompt
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
msg_info "Installing Hardware Acceleration (non-free)"
cat <<EOF >/etc/apt/sources.list.d/non-free.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
@ -50,6 +54,11 @@ deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-
EOF
$STD apt-get update
$STD apt-get -y install {intel-media-va-driver-non-free,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
else
msg_info "Installing Hardware Acceleration"
$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
fi
if [[ "$CTTYPE" == "0" ]]; then
chgrp video /dev/dri
chmod 755 /dev/dri
@ -57,6 +66,7 @@ if [[ "$CTTYPE" == "0" ]]; then
$STD adduser $(id -u -n) video
$STD adduser $(id -u -n) render
fi
msg_ok "Installed Hardware Acceleration"
msg_ok "Set Up Hardware Acceleration"
msg_info "Installing ASP.NET Core Runtime"