-
Notifications
You must be signed in to change notification settings - Fork 0
/
02_ubuntu_before_reboot.sh
37 lines (30 loc) · 1.42 KB
/
02_ubuntu_before_reboot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# . /etc/os-release
# if [[ ! " jammy " =~ " ${VERSION_CODENAME} " ]]; then
# echo "Ubuntu version ${VERSION_CODENAME} not supported"
# else
# wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
# sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
# echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu ${VERSION_CODENAME}/lts/2350 unified" | \
# sudo tee /etc/apt/sources.list.d/intel-gpu-${VERSION_CODENAME}.list
# sudo apt update
# fi
sudo apt-get install -y intel-platform-vsec-dkms intel-platform-cse-dkms
sudo apt-get install -y intel-i915-dkms intel-fw-gpu
sudo apt install -y \
linux-headers-$(uname -r) \
linux-modules-extra-$(uname -r) \
flex bison \
intel-fw-gpu intel-i915-dkms xpu-smi
sudo reboot
sudo apt install -y \
intel-opencl-icd intel-level-zero-gpu level-zero \
intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2 \
libigdgmm12 vainfo hwinfo clinfo
sudo apt install -y \
libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
stat -c "%G" /dev/dri/render*
groups ${USER}
# If the active user is not a member of the same group used by the DRM render nodes (usually ‘render’), add the user to the render node group.
sudo gpasswd -a ${USER} render
# This will be sufficient for shells created after this update. To change the group ID of the current shell:
newgrp render