mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 16:43:17 +01:00
Update frigate-install.sh
- Set up Unprivileged Hardware Acceleration - Use GUI Device Passthrough for TPU Devices
This commit is contained in:
parent
aacc2b76e4
commit
d22dd105fb
@ -37,16 +37,16 @@ chmod +x go2rtc
|
|||||||
$STD ln -svf /usr/local/go2rtc/bin/go2rtc /usr/local/bin/go2rtc
|
$STD ln -svf /usr/local/go2rtc/bin/go2rtc /usr/local/bin/go2rtc
|
||||||
msg_ok "Installed go2rtc"
|
msg_ok "Installed go2rtc"
|
||||||
|
|
||||||
|
msg_info "Setting Up Hardware Acceleration"
|
||||||
|
$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
|
||||||
if [[ "$CTTYPE" == "0" ]]; 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,vainfo,intel-gpu-tools}
|
|
||||||
chgrp video /dev/dri
|
chgrp video /dev/dri
|
||||||
chmod 755 /dev/dri
|
chmod 755 /dev/dri
|
||||||
chmod 660 /dev/dri/*
|
chmod 660 /dev/dri/*
|
||||||
$STD adduser $(id -u -n) video
|
$STD adduser $(id -u -n) video
|
||||||
$STD adduser $(id -u -n) render
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
|
||||||
fi
|
fi
|
||||||
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d '"' -f 4)
|
RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d '"' -f 4)
|
||||||
msg_info "Installing Frigate $RELEASE (Perseverance)"
|
msg_info "Installing Frigate $RELEASE (Perseverance)"
|
||||||
@ -93,7 +93,11 @@ cameras:
|
|||||||
fps: 5
|
fps: 5
|
||||||
EOF
|
EOF
|
||||||
ln -sf /config/config.yml /opt/frigate/config/config.yml
|
ln -sf /config/config.yml /opt/frigate/config/config.yml
|
||||||
sed -i -e 's/^kvm:x:104:$/render:x:104:root,frigate/' -e 's/^render:x:105:root$/kvm:x:105:/' /etc/group
|
if [[ "$CTTYPE" == "0" ]]; then
|
||||||
|
sed -i -e 's/^kvm:x:104:$/render:x:104:root,frigate/' -e 's/^render:x:105:root$/kvm:x:105:/' /etc/group
|
||||||
|
else
|
||||||
|
sed -i -e 's/^kvm:x:104:$/render:x:104:frigate/' -e 's/^render:x:105:$/kvm:x:105:/' /etc/group
|
||||||
|
fi
|
||||||
echo "tmpfs /tmp/cache tmpfs defaults 0 0" >> /etc/fstab
|
echo "tmpfs /tmp/cache tmpfs defaults 0 0" >> /etc/fstab
|
||||||
msg_ok "Installed Frigate $RELEASE"
|
msg_ok "Installed Frigate $RELEASE"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user