From b84adf514e12c51a5b9fa2def52c0fea5ae470fe Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 8 Aug 2024 17:35:40 -0700 Subject: [PATCH] docker: fix hw decode --- install/docker/install-intel-graphics.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/install/docker/install-intel-graphics.sh b/install/docker/install-intel-graphics.sh index 29dff0bf95..75511e2187 100644 --- a/install/docker/install-intel-graphics.sh +++ b/install/docker/install-intel-graphics.sh @@ -4,7 +4,8 @@ then exit 0 fi -# this script previvously apt install intel-media-va-driver-non-free, but that seems to no longer be necessary. +# no errors beyond this point +set -e # the intel provided script is disabled since it does not work with the 6.8 kernel in Ubuntu 24.04 or Proxmox 8.2. # manual installation of the Intel graphics stuff is required. @@ -18,11 +19,19 @@ fi # apt-get -y install intel-opencl-icd && # apt-get -y dist-upgrade; +# need intel-media-va-driver-non-free, but all the other intel packages are installed from Intel github. +echo "Installing Intel graphics packages." +apt-get update && apt-get install -y gpg-agent && +rm -f /usr/share/keyrings/intel-graphics.gpg && +curl -L https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --yes --output /usr/share/keyrings/intel-graphics.gpg && +echo 'deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy arc' | tee /etc/apt/sources.list.d/intel.gpu.jammy.list && +apt-get -y update && +apt-get -y intel-media-va-driver-non-free && +apt-get -y dist-upgrade; + # manual installation # https://github.com/intel/compute-runtime/releases/tag/24.13.29138.7 -# no errors beyond this point -set -e rm -rf /tmp/gpu && mkdir -p /tmp/gpu && cd /tmp/gpu