disable hw accel for arm64

pull/1756/head
ArchemedIan 2 years ago
parent 69103fa3cc
commit 0f58ff8743
  1. 33
      install/emby-install.sh
  2. 34
      install/jellyfin-install.sh
  3. 33
      install/plex-install.sh
  4. 29
      install/scrypted-install.sh
  5. 28
      install/tdarr-install.sh
  6. 15
      misc/build.func

@ -19,20 +19,27 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" if [ "$(dpkg --print-architecture)" = "amd64" ]; then
$STD apt-get -y install \ if [[ "$CTTYPE" == "0" ]]; then
va-driver-all \ msg_info "Setting Up Hardware Acceleration"
ocl-icd-libopencl1 $STD apt-get -y install \
if [[ ${PCT_OSVERSION} == "20.04" ]]; then va-driver-all \
$STD apt-get install -y beignet-opencl-icd ocl-icd-libopencl1
else if [[ ${PCT_OSVERSION} == "20.04" ]]; then
$STD apt-get install -y intel-opencl-icd $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 fi
/bin/chgrp video /dev/dri else
/bin/chmod 755 /dev/dri msg_info "Skipping Arm64 Hardware Acceleration"
/bin/chmod 660 /dev/dri/* sleep 3
msg_ok "Set Up Hardware Acceleration" msg_ok "Skipped Arm64 Hardware Acceleration"
fi fi
LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4) 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 $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" if [ "$(dpkg --print-architecture)" = "amd64" ]; then
$STD apt-get -y install \ if [[ "$CTTYPE" == "0" ]]; then
va-driver-all \ msg_info "Setting Up Hardware Acceleration"
ocl-icd-libopencl1 $STD apt-get -y install \
if [[ ${PCT_OSVERSION} == "20.04" ]]; then va-driver-all \
$STD apt-get install -y beignet-opencl-icd ocl-icd-libopencl1
else if [[ ${PCT_OSVERSION} == "20.04" ]]; then
$STD apt-get install -y intel-opencl-icd $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 fi
/bin/chgrp video /dev/dri else
/bin/chmod 755 /dev/dri msg_info "Skipping Arm64 Hardware Acceleration"
/bin/chmod 660 /dev/dri/* sleep 3
msg_ok "Set Up Hardware Acceleration" msg_ok "Skipped Arm64 Hardware Acceleration"
fi fi
msg_info "Installing Jellyfin" msg_info "Installing Jellyfin"
VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )" VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
# If the keyring directory is absent, create it # If the keyring directory is absent, create it

@ -19,22 +19,27 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then if [ "$(dpkg --print-architecture)" = "amd64" ]; then
msg_info "Setting Up Hardware Acceleration" if [[ "$CTTYPE" == "0" ]]; then
$STD apt-get -y install \ msg_info "Setting Up Hardware Acceleration"
va-driver-all \ $STD apt-get -y install \
ocl-icd-libopencl1 va-driver-all \
if [[ ${PCT_OSVERSION} == "20.04" ]]; then ocl-icd-libopencl1
$STD apt-get install -y beignet-opencl-icd if [[ ${PCT_OSVERSION} == "20.04" ]]; then
else $STD apt-get install -y beignet-opencl-icd
$STD apt-get install -y intel-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 fi
/bin/chgrp video /dev/dri else
/bin/chmod 755 /dev/dri msg_info "Skipping Arm64 Hardware Acceleration"
/bin/chmod 660 /dev/dri/* sleep 3
msg_ok "Set Up Hardware Acceleration" msg_ok "Skipped Arm64 Hardware Acceleration"
fi fi
msg_info "Setting Up Plex Media Server Repository" 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 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 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 gnupg
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" if [ "$(dpkg --print-architecture)" = "amd64" ]; then
$STD apt-get -y install \ if [[ "$CTTYPE" == "0" ]]; then
va-driver-all \ msg_info "Setting Up Hardware Acceleration"
ocl-icd-libopencl1 \ $STD apt-get -y install \
intel-opencl-icd va-driver-all \
ocl-icd-libopencl1 \
/bin/chgrp video /dev/dri intel-opencl-icd
/bin/chmod 755 /dev/dri
/bin/chmod 660 /dev/dri/* /bin/chgrp video /dev/dri
msg_ok "Set Up Hardware Acceleration" /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 fi
msg_info "Installing GStreamer (Patience)" msg_info "Installing GStreamer (Patience)"
$STD apt-get -y install \ $STD apt-get -y install \

@ -19,17 +19,23 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then if [ "$(dpkg --print-architecture)" = "amd64" ]; then
msg_info "Setting Up Hardware Acceleration" if [[ "$CTTYPE" == "0" ]]; then
$STD apt-get -y install \ msg_info "Setting Up Hardware Acceleration"
va-driver-all \ $STD apt-get -y install \
ocl-icd-libopencl1 \ va-driver-all \
intel-opencl-icd ocl-icd-libopencl1 \
intel-opencl-icd
/bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri /bin/chgrp video /dev/dri
/bin/chmod 660 /dev/dri/* /bin/chmod 755 /dev/dri
msg_ok "Set Up Hardware Acceleration" /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 fi
msg_info "Installing Tdarr" msg_info "Installing Tdarr"

@ -70,8 +70,11 @@ pve_check() {
arch_check() { arch_check() {
if [ "$(dpkg --print-architecture)" != "amd64" ]; then if [ "$(dpkg --print-architecture)" != "amd64" ]; then
echo -e "\n ${CROSS} Expiramental arm64 support enabled \n" 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..." #echo -e "Exiting..."
sleep 5 sleep 2
#exit #exit
arm64ct="yes" arm64ct="yes"
fi fi
@ -533,8 +536,9 @@ lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=
EOF EOF
fi fi
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [ "$CT_TYPE" == "0" ]; 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 cat <<EOF >>$LXC_CONFIG
# VAAPI hardware transcoding # VAAPI hardware transcoding
lxc.cgroup2.devices.allow: c 226:0 rwm 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 dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
EOF EOF
fi
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 # This starts the container and executes <app>-install.sh
msg_info "Starting LXC Container" msg_info "Starting LXC Container"

Loading…
Cancel
Save