Skip to content

Commit

Permalink
🐛 fix(server): Add CAP_SYS* capabilities to the gpu-screen-recorder (#13
Browse files Browse the repository at this point in the history
)

## 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
  • Loading branch information
wanjohiryan committed Apr 3, 2024
1 parent c56a0f6 commit 1d714b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt update && \
apt install -y \
software-properties-common \
curl \
libcap2-bin \
apt-transport-https \
apt-utils \
wget \
Expand Down

0 comments on commit 1d714b5

Please sign in to comment.