mirror of https://github.com/tteck/Proxmox.git
disable hw accel for arm64
This commit is contained in:
parent
69103fa3cc
commit
0f58ff8743
|
@ -19,20 +19,27 @@ $STD apt-get install -y sudo
|
|||
$STD apt-get install -y mc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
|
||||
LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
|
||||
|
|
|
@ -20,22 +20,28 @@ $STD apt-get install -y gnupg
|
|||
$STD apt-get install -y mc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
msg_info "Installing Jellyfin"
|
||||
VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
|
||||
# If the keyring directory is absent, create it
|
||||
|
|
|
@ -19,22 +19,27 @@ $STD apt-get install -y sudo
|
|||
$STD apt-get install -y mc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1
|
||||
if [[ ${PCT_OSVERSION} == "20.04" ]]; then
|
||||
$STD apt-get install -y beignet-opencl-icd
|
||||
else
|
||||
$STD apt-get install -y intel-opencl-icd
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
|
||||
msg_info "Setting Up Plex Media Server Repository"
|
||||
wget -qO- https://downloads.plex.tv/plex-keys/PlexSign.key >/etc/apt/trusted.gpg.d/PlexSign.asc
|
||||
echo "deb [arch=$(dpkg --print-architecture)] https://downloads.plex.tv/repo/deb/ public main" >/etc/apt/sources.list.d/plexmediaserver.list
|
||||
|
|
|
@ -38,17 +38,24 @@ $STD apt-get -y install \
|
|||
gnupg
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1 \
|
||||
intel-opencl-icd
|
||||
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1 \
|
||||
intel-opencl-icd
|
||||
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
msg_info "Installing GStreamer (Patience)"
|
||||
$STD apt-get -y install \
|
||||
|
|
|
@ -19,17 +19,23 @@ $STD apt-get install -y sudo
|
|||
$STD apt-get install -y mc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1 \
|
||||
intel-opencl-icd
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [[ "$CTTYPE" == "0" ]]; then
|
||||
msg_info "Setting Up Hardware Acceleration"
|
||||
$STD apt-get -y install \
|
||||
va-driver-all \
|
||||
ocl-icd-libopencl1 \
|
||||
intel-opencl-icd
|
||||
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
/bin/chgrp video /dev/dri
|
||||
/bin/chmod 755 /dev/dri
|
||||
/bin/chmod 660 /dev/dri/*
|
||||
msg_ok "Set Up Hardware Acceleration"
|
||||
fi
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
|
||||
msg_info "Installing Tdarr"
|
||||
|
|
|
@ -70,8 +70,11 @@ pve_check() {
|
|||
arch_check() {
|
||||
if [ "$(dpkg --print-architecture)" != "amd64" ]; then
|
||||
echo -e "\n ${CROSS} Expiramental arm64 support enabled \n"
|
||||
msg_info "Experimental Arm64 Support Enabled"
|
||||
sleep 3
|
||||
msg_ok "Experimental Arm64 Support Enabled"
|
||||
#echo -e "Exiting..."
|
||||
sleep 5
|
||||
sleep 2
|
||||
#exit
|
||||
arm64ct="yes"
|
||||
fi
|
||||
|
@ -533,8 +536,9 @@ lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=
|
|||
EOF
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
|
||||
if [ "$CT_TYPE" == "0" ]; then
|
||||
if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Scrypted" || "$APP" == "Tdarr" ]]; then
|
||||
if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Scrypted" || "$APP" == "Tdarr" ]]; then
|
||||
cat <<EOF >>$LXC_CONFIG
|
||||
# VAAPI hardware transcoding
|
||||
lxc.cgroup2.devices.allow: c 226:0 rwm
|
||||
|
@ -544,8 +548,13 @@ lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
|
|||
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
|
||||
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
msg_info "Skipping Arm64 Hardware Acceleration"
|
||||
sleep 3
|
||||
msg_ok "Skipped Arm64 Hardware Acceleration"
|
||||
fi
|
||||
|
||||
# This starts the container and executes <app>-install.sh
|
||||
msg_info "Starting LXC Container"
|
||||
|
|
Loading…
Reference in New Issue