disable hw accel for arm64

pull/1756/head
ArchemedIan 2 years ago
parent 69103fa3cc
commit 0f58ff8743
  1. 7
      install/emby-install.sh
  2. 8
      install/jellyfin-install.sh
  3. 7
      install/plex-install.sh
  4. 7
      install/scrypted-install.sh
  5. 6
      install/tdarr-install.sh
  6. 11
      misc/build.func

@ -19,6 +19,8 @@ $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 [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
@ -34,6 +36,11 @@ if [[ "$CTTYPE" == "0" ]]; then
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" msg_ok "Set Up Hardware Acceleration"
fi fi
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) LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4)

@ -20,6 +20,8 @@ $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 [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
@ -35,7 +37,11 @@ if [[ "$CTTYPE" == "0" ]]; then
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" msg_ok "Set Up Hardware Acceleration"
fi fi
else
msg_info "Skipping Arm64 Hardware Acceleration"
sleep 3
msg_ok "Skipped Arm64 Hardware Acceleration"
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,6 +19,7 @@ $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 [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
@ -34,7 +35,11 @@ if [[ "$CTTYPE" == "0" ]]; then
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" msg_ok "Set Up Hardware Acceleration"
fi fi
else
msg_info "Skipping Arm64 Hardware Acceleration"
sleep 3
msg_ok "Skipped Arm64 Hardware Acceleration"
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,6 +38,8 @@ $STD apt-get -y install \
gnupg gnupg
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
@ -50,6 +52,11 @@ if [[ "$CTTYPE" == "0" ]]; then
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" msg_ok "Set Up Hardware Acceleration"
fi fi
else
msg_info "Skipping Arm64 Hardware Acceleration"
sleep 3
msg_ok "Skipped Arm64 Hardware Acceleration"
fi
msg_info "Installing GStreamer (Patience)" msg_info "Installing GStreamer (Patience)"
$STD apt-get -y install \ $STD apt-get -y install \
gstreamer1.0-tools \ gstreamer1.0-tools \

@ -19,6 +19,7 @@ $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 [ "$(dpkg --print-architecture)" = "amd64" ]; then
if [[ "$CTTYPE" == "0" ]]; then if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
@ -31,6 +32,11 @@ if [[ "$CTTYPE" == "0" ]]; then
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" msg_ok "Set Up Hardware Acceleration"
fi fi
else
msg_info "Skipping Arm64 Hardware Acceleration"
sleep 3
msg_ok "Skipped Arm64 Hardware Acceleration"
fi
msg_info "Installing Tdarr" msg_info "Installing Tdarr"
mkdir -p /opt/tdarr mkdir -p /opt/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,6 +536,7 @@ 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
@ -546,6 +550,11 @@ lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,creat
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