mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
🐛 fix(server): Add CAP_SYS* capabilities to the gpu-screen-recorder (#13)
## Description **What(what issue does this code solve/what feature does it add):** **How(how does it solve it):** ## Required Checklist: - [ ] I have added any necessary documentation and comments in my code (where appropriate) - [ ] I have added tests to make sure my code runs in all contexts ## Further comments
This commit is contained in:
@@ -2,3 +2,8 @@
|
|||||||
|
|
||||||
#Start pulseaudio
|
#Start pulseaudio
|
||||||
/usr/bin/pulseaudio --system --verbose --log-target=stderr --realtime=true --disallow-exit -F /etc/pulse/default.pa
|
/usr/bin/pulseaudio --system --verbose --log-target=stderr --realtime=true --disallow-exit -F /etc/pulse/default.pa
|
||||||
|
|
||||||
|
# Attempt to set capabilities
|
||||||
|
# Gotten from https://git.dec05eba.com/gpu-screen-recorder/tree/install.sh
|
||||||
|
setcap 'cap_sys_admin+ep' /usr/bin/gsr-kms-server
|
||||||
|
setcap 'cap_sys_nice+ep' /usr/bin/gpu-screen-recorder
|
||||||
@@ -13,6 +13,7 @@ RUN apt update && \
|
|||||||
apt install -y \
|
apt install -y \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
curl \
|
curl \
|
||||||
|
libcap2-bin \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
wget \
|
wget \
|
||||||
|
|||||||
Reference in New Issue
Block a user