🐛 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:
Wanjohi
2024-04-03 22:26:14 +00:00
committed by GitHub
parent c56a0f636e
commit 1d714b5019
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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 \