Experiment doesnt run (& cant install extra configurations for Linux)

I’m very new to Psychopy, so I’m kinda lost on what to do. Help would be greatly appreciated.
I also don’t know if my problems are intertwined or if they are seperate problems.

OS: Linux mint
PsychoPy version: 2025.1.1 Py 3.10

I installed and reinstalled Psychopy with the shell commands for Linux on the Psychopy Website. When I open Psychopy, it tells me to run some additional commands for additional configuration.
These are the commands:

sudo groupadd --force psychopy

sudo usermod -a -G psychopy $USER

sudo gedit /etc/security/limits.d/99-psychopylimits.conf
@psychopy - nice -20
@psychopy - rtprio 50
@psychopy - memlock unlimited

However, the shell returns an error message, so I can’t make those additional changes:

sudo: gedit: Befehl nicht gefunden
zsh: command not found: @psychopy
zsh: command not found: @psychopy
zsh: command not found: @psychopy

It was possible for me to create a very simple experiment on Psychopy (even though when it asked me to install the Arial font, and I klicked yes, the Psychopy would just crash, so after a few times I avoided downloading the font).
However, I cannot run the experiment. It only measures the frame rate, but after that, the experiment screen just disappears. Before I reinstalled Psychopy, it would show “Experiment ended with exit code -6”; after the reinstallation it’s exit code -11. It also returns this line:
PTB-CRITICAL: In call to PsychSetThreadPriority(): Failed to set new basePriority 2, tweakPriority 1, effective 1 [REALTIME] for thread (nil) provided!

I dont know what any of this means and I dont know how to fix this, as I do not know much about Psychopy or Linux, for that matter. So, again: help would be greatly appreciated! :blush: