mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 10:42:53 +02:00
Update HW Acceleration LXCs
This commit is contained in:
parent
21e95ccf6d
commit
bafd32f777
@ -29,9 +29,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
else
|
else
|
||||||
$STD apt-get install -y intel-opencl-icd
|
$STD apt-get install -y intel-opencl-icd
|
||||||
fi
|
fi
|
||||||
/bin/chgrp video /dev/dri
|
chgrp video /dev/dri
|
||||||
/bin/chmod 755 /dev/dri
|
chmod 755 /dev/dri
|
||||||
/bin/chmod 660 /dev/dri/*
|
chmod 660 /dev/dri/*
|
||||||
|
$STD adduser $(id -u -n) video
|
||||||
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -30,9 +30,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
else
|
else
|
||||||
$STD apt-get install -y intel-opencl-icd
|
$STD apt-get install -y intel-opencl-icd
|
||||||
fi
|
fi
|
||||||
/bin/chgrp video /dev/dri
|
chgrp video /dev/dri
|
||||||
/bin/chmod 755 /dev/dri
|
chmod 755 /dev/dri
|
||||||
/bin/chmod 660 /dev/dri/*
|
chmod 660 /dev/dri/*
|
||||||
|
$STD adduser $(id -u -n) video
|
||||||
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -29,9 +29,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
else
|
else
|
||||||
$STD apt-get install -y intel-opencl-icd
|
$STD apt-get install -y intel-opencl-icd
|
||||||
fi
|
fi
|
||||||
/bin/chgrp video /dev/dri
|
chgrp video /dev/dri
|
||||||
/bin/chmod 755 /dev/dri
|
chmod 755 /dev/dri
|
||||||
/bin/chmod 660 /dev/dri/*
|
chmod 660 /dev/dri/*
|
||||||
|
$STD adduser $(id -u -n) video
|
||||||
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -44,10 +44,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
va-driver-all \
|
va-driver-all \
|
||||||
ocl-icd-libopencl1 \
|
ocl-icd-libopencl1 \
|
||||||
intel-opencl-icd
|
intel-opencl-icd
|
||||||
|
chgrp video /dev/dri
|
||||||
/bin/chgrp video /dev/dri
|
chmod 755 /dev/dri
|
||||||
/bin/chmod 755 /dev/dri
|
chmod 660 /dev/dri/*
|
||||||
/bin/chmod 660 /dev/dri/*
|
$STD adduser $(id -u -n) video
|
||||||
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
msg_info "Installing GStreamer (Patience)"
|
msg_info "Installing GStreamer (Patience)"
|
||||||
|
@ -25,10 +25,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
va-driver-all \
|
va-driver-all \
|
||||||
ocl-icd-libopencl1 \
|
ocl-icd-libopencl1 \
|
||||||
intel-opencl-icd
|
intel-opencl-icd
|
||||||
|
chgrp video /dev/dri
|
||||||
/bin/chgrp video /dev/dri
|
chmod 755 /dev/dri
|
||||||
/bin/chmod 755 /dev/dri
|
chmod 660 /dev/dri/*
|
||||||
/bin/chmod 660 /dev/dri/*
|
$STD adduser $(id -u -n) video
|
||||||
|
$STD adduser $(id -u -n) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -27,10 +27,11 @@ if [[ "$CTTYPE" == "0" ]]; then
|
|||||||
va-driver-all \
|
va-driver-all \
|
||||||
ocl-icd-libopencl1 \
|
ocl-icd-libopencl1 \
|
||||||
intel-opencl-icd
|
intel-opencl-icd
|
||||||
|
|
||||||
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) render
|
||||||
msg_ok "Set Up Hardware Acceleration"
|
msg_ok "Set Up Hardware Acceleration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ 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 dev/dri none bind,optional,create=dir
|
||||||
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
|
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
|
||||||
EOF
|
EOF
|
||||||
pct exec $privileged_container -- bash -c "apt-get -y install va-driver-all && apt-get -y install ocl-icd-libopencl1 && apt-get install -y intel-opencl-icd"
|
pct exec $privileged_container -- bash -c "apt-get -y install va-driver-all && apt-get -y install ocl-icd-libopencl1 && apt-get install -y intel-opencl-icd && chgrp video /dev/dri && chmod 755 /dev/dri && chmod 660 /dev/dri/* && adduser \$(id -u -n) video && adduser \$(id -u -n) render"
|
||||||
header_info
|
header_info
|
||||||
echo -e "Completed Successfully!\n"
|
echo -e "Completed Successfully!\n"
|
||||||
echo -e "Reboot container $privileged_container to apply the new settings\n"
|
echo -e "Reboot container $privileged_container to apply the new settings\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user