I will run Sonarr as the user media
.
Add new user to run Sonarr
adduser --disabled-password --uid 1234 media
Download the installation script
curl -o- https://raw.githubusercontent.com/Sonarr/Sonarr/develop/distribution/debian/install.sh | bash
Update and install
apt update
apt install sonarr
Use the media
user and group.
After the installation is complete, navigate to http://localhost:8989