From 77c92e0102fc110fdb0ce4826903df5506c1fe9a Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 16 Apr 2024 23:39:56 -0400 Subject: [PATCH 1/3] Update hw-acceleration.sh tweak --- misc/hw-acceleration.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/misc/hw-acceleration.sh b/misc/hw-acceleration.sh index 24d2e2deb..7b61a0a1d 100644 --- a/misc/hw-acceleration.sh +++ b/misc/hw-acceleration.sh @@ -4,6 +4,8 @@ # Author: tteck (tteckster) # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE +# Execute within the Proxmox shell +# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/hw-acceleration.sh)" set -e function header_info { @@ -39,9 +41,9 @@ function msg_ok() { echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } -if ! pveversion | grep -Eq "pve-manager/(8\.[0-9])"; then +if ! pveversion | grep -Eq "pve-manager/(8\.[1-3])"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE Version 8.0 or higher" + echo -e "Requires PVE Version 8.1 or higher" echo -e "Exiting..." sleep 2 exit @@ -83,11 +85,11 @@ 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 -read -r -p "Do you need the intel-media-va-driver-non-free driver (Sources change)? " prompt +read -r -p "Do you need the intel-media-va-driver-non-free driver (Non-free Sources Added)? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then header_info msg_info "Installing Hardware Acceleration (non-free)" - pct exec ${privileged_container} -- bash -c "cat </etc/apt/sources.list + pct exec ${privileged_container} -- bash -c "cat </etc/apt/sources.list.d/non-free.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware @@ -99,7 +101,7 @@ deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware EOF" - pct exec ${privileged_container} -- bash -c "silent() { \"\$@\" >/dev/null 2>&1; } && $STD apt-get update && $STD apt-get install -y intel-media-va-driver-non-free ocl-icd-libopencl1 intel-opencl-icd vainfo intel-gpu-tools && chgrp video /dev/dri && chmod 755 /dev/dri && $STD adduser \$(id -u -n) video && $STD adduser \$(id -u -n) render" + pct exec ${privileged_container} -- bash -c "silent() { \"\$@\" >/dev/null 2>&1; } && $STD apt-get update && $STD apt-get install -y intel-media-va-driver-non-free ocl-icd-libopencl1 intel-opencl-icd vainfo intel-gpu-tools && $STD adduser \$(id -u -n) video && $STD adduser \$(id -u -n) render" msg_ok "Installed Hardware Acceleration (non-free)" else header_info From 07a3a8aa79d532b3b48055b148ac000bf22124d5 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 17 Apr 2024 00:00:49 -0400 Subject: [PATCH 2/3] Update hw-acceleration.sh tweak --- misc/hw-acceleration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/hw-acceleration.sh b/misc/hw-acceleration.sh index 7b61a0a1d..19a0b1409 100644 --- a/misc/hw-acceleration.sh +++ b/misc/hw-acceleration.sh @@ -85,7 +85,7 @@ 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 -read -r -p "Do you need the intel-media-va-driver-non-free driver (Non-free Sources Added)? " prompt +read -r -p "Do you need the intel-media-va-driver-non-free driver (Debian 12 only)? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then header_info msg_info "Installing Hardware Acceleration (non-free)" From 00f661c9f54d0539694ad824998120419601656b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20B=C3=A9dard-Couture?= Date: Wed, 17 Apr 2024 13:21:26 -0400 Subject: [PATCH 3/3] [Frigate] Update Nginx config to output access and error logs to the service log file (/dev/shm) (#2808) --- install/frigate-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 500320a95..f8a4aa62d 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -161,8 +161,8 @@ msg_ok "Installed Coral Object Detection Model" msg_info "Building Nginx with Custom Modules" $STD /opt/frigate/docker/main/build_nginx.sh sed -i 's/exec nginx/exec \/usr\/local\/nginx\/sbin\/nginx/g' /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run -sed -i 's/error_log \/dev\/stdout warn\;/error_log nginx\.err warn\;/' /usr/local/nginx/conf/nginx.conf -sed -i 's/access_log \/dev\/stdout main\;/access_log nginx\.log main\;/' /usr/local/nginx/conf/nginx.conf +sed -i 's/error_log \/dev\/stdout warn\;/error_log \/dev\/shm\/logs\/nginx\/current warn\;/' /usr/local/nginx/conf/nginx.conf +sed -i 's/access_log \/dev\/stdout main\;/access_log \/dev\/shm\/logs\/nginx\/current main\;/' /usr/local/nginx/conf/nginx.conf msg_ok "Built Nginx" msg_info "Creating Services"