diff --git a/install/emby-install.sh b/install/emby-install.sh index 52fc3af6..27e95e89 100644 --- a/install/emby-install.sh +++ b/install/emby-install.sh @@ -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) diff --git a/install/jellyfin-install.sh b/install/jellyfin-install.sh index 787b0ab2..f2accc3d 100644 --- a/install/jellyfin-install.sh +++ b/install/jellyfin-install.sh @@ -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 + +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 "Installing Jellyfin" VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )" # If the keyring directory is absent, create it diff --git a/install/plex-install.sh b/install/plex-install.sh index 5e7fda8d..e59d212d 100644 --- a/install/plex-install.sh +++ b/install/plex-install.sh @@ -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 diff --git a/install/scrypted-install.sh b/install/scrypted-install.sh index 89fa9d5b..030ca2db 100644 --- a/install/scrypted-install.sh +++ b/install/scrypted-install.sh @@ -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 \ diff --git a/install/tdarr-install.sh b/install/tdarr-install.sh index 5e097586..0e423e40 100644 --- a/install/tdarr-install.sh +++ b/install/tdarr-install.sh @@ -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 - - /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 Tdarr" diff --git a/misc/build.func b/misc/build.func index 1d5eb71f..180fe358 100644 --- a/misc/build.func +++ b/misc/build.func @@ -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 <>$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 -install.sh msg_info "Starting LXC Container"