mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 00:35: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:
@@ -1,4 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
#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 \
|
||||
software-properties-common \
|
||||
curl \
|
||||
libcap2-bin \
|
||||
apt-transport-https \
|
||||
apt-utils \
|
||||
wget \
|
||||
|
||||
Reference in New Issue
Block a user