mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-10 18:26:53 +00:00
Update install_coral_lxc.sh
This commit is contained in:
parent
72c7207ae4
commit
37e4005390
@ -163,30 +163,30 @@ install_coral_in_container() {
|
|||||||
DRIVER_PACKAGE="libedgetpu1-std"
|
DRIVER_PACKAGE="libedgetpu1-std"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pct exec "$CONTAINER_ID" -- bash -c '
|
pct exec "$CONTAINER_ID" -- bash <<EOF
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "- Updating package lists..."
|
echo "- Updating package lists..."
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
echo "- Installing iGPU drivers..."
|
echo "- Installing iGPU drivers..."
|
||||||
apt-get install -y va-driver-all ocl-icd-libopencl1 intel-opencl-icd vainfo intel-gpu-tools
|
apt-get install -y va-driver-all ocl-icd-libopencl1 intel-opencl-icd vainfo intel-gpu-tools
|
||||||
chgrp video /dev/dri && chmod 755 /dev/dri
|
chgrp video /dev/dri && chmod 755 /dev/dri
|
||||||
adduser root video && adduser root render
|
adduser root video && adduser root render
|
||||||
|
|
||||||
echo "- Installing Coral TPU dependencies..."
|
echo "- Installing Coral TPU dependencies..."
|
||||||
apt-get install -y gnupg python3 python3-pip python3-venv
|
apt-get install -y gnupg python3 python3-pip python3-venv
|
||||||
|
|
||||||
echo "- Adding Coral TPU repository..."
|
echo "- Adding Coral TPU repository..."
|
||||||
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/coral-edgetpu.gpg
|
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/coral-edgetpu.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/coral-edgetpu.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
|
echo 'deb [signed-by=/usr/share/keyrings/coral-edgetpu.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main' | tee /etc/apt/sources.list.d/coral-edgetpu.list
|
||||||
|
|
||||||
echo "- Updating package lists again..."
|
echo "- Updating package lists again..."
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
echo "- Installing Coral TPU driver ($DRIVER_PACKAGE)..."
|
echo "- Installing Coral TPU driver (\$DRIVER_PACKAGE)..."
|
||||||
apt-get install -y $DRIVER_PACKAGE
|
apt-get install -y \$DRIVER_PACKAGE
|
||||||
'
|
EOF>>
|
||||||
|
|
||||||
|
|
||||||
msg_ok "$(translate 'iGPU and Coral TPU drivers installed inside the container.')"
|
msg_ok "$(translate 'iGPU and Coral TPU drivers installed inside the container.')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user