Merge pull request #17 from tteck/dev

Update Plex Media Server Hardware Acceleration Support
This commit is contained in:
tteckster 2022-01-24 14:24:03 -05:00 committed by GitHub
commit 108c25b3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null pushd $TEMP_DIR >/dev/null
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/setup/plex_setup.sh wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/setup/plex_setup.sh
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/misc/intel-drivers.sh
load_module overlay load_module overlay
while read -r line; do while read -r line; do
@ -109,7 +109,7 @@ echo -e "${CHECKMARK} \e[1;92m Updating LXC Template List... \e[0m"
pveam update >/dev/null pveam update >/dev/null
echo -e "${CHECKMARK} \e[1;92m Downloading LXC Template... \e[0m" echo -e "${CHECKMARK} \e[1;92m Downloading LXC Template... \e[0m"
OSTYPE=ubuntu OSTYPE=ubuntu
OSVERSION=${OSTYPE}-20.04 OSVERSION=${OSTYPE}-21.10
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($OSVERSION.*\)/\1/p" | sort -t - -k 2 -V) mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($OSVERSION.*\)/\1/p" | sort -t - -k 2 -V)
TEMPLATE="${TEMPLATES[-1]}" TEMPLATE="${TEMPLATES[-1]}"
pveam download local $TEMPLATE >/dev/null || pveam download local $TEMPLATE >/dev/null ||
@ -160,7 +160,6 @@ pct unmount $CTID && unset MOUNT
echo -e "${CHECKMARK} \e[1;92m Starting LXC Container... \e[0m" echo -e "${CHECKMARK} \e[1;92m Starting LXC Container... \e[0m"
pct start $CTID pct start $CTID
pct push $CTID plex_setup.sh /plex_setup.sh -perms 755 pct push $CTID plex_setup.sh /plex_setup.sh -perms 755
pct push $CTID intel-drivers.sh /root/intel-drivers.sh -perms 755
pct exec $CTID /plex_setup.sh pct exec $CTID /plex_setup.sh
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')

View File

@ -37,7 +37,8 @@ echo -e "${CHECKMARK} \e[1;92m Installing Prerequisites... \e[0m"
apt-get -qqy install \ apt-get -qqy install \
curl \ curl \
sudo \ sudo \
gnupg &>/dev/null gnupg \
va-driver-all &>/dev/null
/bin/chgrp video /dev/dri /bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri /bin/chmod 755 /dev/dri