mirror of
https://github.com/koush/scrypted.git
synced 2026-02-13 10:22:57 +00:00
57 lines
3.3 KiB
Bash
57 lines
3.3 KiB
Bash
if [ "$(uname -m)" != "x86_64" ]
|
|
then
|
|
echo "Intel graphics will not be installed on this architecture."
|
|
exit 0
|
|
fi
|
|
|
|
# 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.
|
|
|
|
# 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 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 install intel-media-va-driver-non-free &&
|
|
apt-get -y dist-upgrade;
|
|
|
|
# manual installation
|
|
# https://github.com/intel/compute-runtime/releases/tag/24.35.30872.22
|
|
# these debs are seemingly ubuntu 22.04 only.
|
|
|
|
rm -rf /tmp/gpu && mkdir -p /tmp/gpu && cd /tmp/gpu
|
|
|
|
apt-get install -y ocl-icd-libopencl1
|
|
|
|
curl -O -L https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17537.20/intel-igc-core_1.0.17537.20_amd64.deb
|
|
curl -O -L https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17537.20/intel-igc-opencl_1.0.17537.20_amd64.deb
|
|
#curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-level-zero-gpu-dbgsym_1.3.30872.22_amd64.ddeb
|
|
#curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-level-zero-gpu-legacy1-dbgsym_1.3.30872.22_amd64.ddeb
|
|
curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-level-zero-gpu-legacy1_1.3.30872.22_amd64.deb
|
|
curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-level-zero-gpu_1.3.30872.22_amd64.deb
|
|
#curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-opencl-icd-dbgsym_24.35.30872.22_amd64.ddeb
|
|
#curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-opencl-icd-legacy1-dbgsym_24.35.30872.22_amd64.ddeb
|
|
curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-opencl-icd-legacy1_24.35.30872.22_amd64.deb
|
|
curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/intel-opencl-icd_24.35.30872.22_amd64.deb
|
|
curl -O -L https://github.com/intel/compute-runtime/releases/download/24.35.30872.22/libigdgmm12_22.5.0_amd64.deb
|
|
|
|
dpkg -i *.deb
|
|
|
|
cd /tmp && rm -rf /tmp/gpu
|
|
|
|
apt-get -y dist-upgrade
|