this post was submitted on 20 Aug 2024
132 points (99.3% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

53779 readers
314 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS
 

With a whole slew of new reasons on why subscribing to streaming services WILL give you worse services than NOT subscribing to them, i think it's time to write a new up-to-date guide on how to install and configure an Arr-Stack + qBitTorrent via Docker-Compose.

0. Preamble

I specifically did NOT route all those docker-compose files through a VPN container like Gluetun. In my case i have my Mullvad VPN setup on my router directly and selected the whole server to be tunneled through that VPN.

You can add a VPN container to your setup and route all the docker compose files through that. But i will not go through this on this guide. There are guides out there how to do that and you can even ask any big enough LLM as this isn't really that complicated.


1. Folder Structure

If you want to store all your media on a NAS or some other external drive, make sure it is configured properly for symlinking / hardlinking and that you have proper permissions for this storage. Everything here will run with the 1000 user and has to create new files to work.

So this is the folder structure i use. And it is stored on a NFS-Share coming from my TrueNAS.

arr-stack (for this example let's say it's located in /mnt/arr-stack)
	|---- media
	    |---- movies
	    |---- shows
	    |---- music
	    |---- etc.
	|---- configs
	    |---- radarr
	    |---- sonarr
	    |---- qbittorrent
	    |---- etc.
	|---- torrents
	    |---- complete

I intentionally broke out the torrent folder to make it easier accessible for when you download something fully manual and you want to grab it out of the 'completed' folder without searching too deep.


2. Docker-Compose Files for each service

qBitTorrent is the download application for Usenet. Alternatively you can use NZBget but i find Sab to be more modern, versatile and i just like it.

qBitTorrent

services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - WEBUI_PORT=8081
    volumes:
      - /mnt/arr-stack/configs/qbittorrent/config:/config
      - /mnt/arr-stack/torrents/complete:/downloads
    ports:
      - 8081:8081
      - 6881:6881
      - 6881:6881/udp
    restart: unless-stopped
networks: {}

Radarr and Sonarr are the applications that will actually find and track your Movies (Radarr) and Shows (Sonarr). Additionally there is Lidarr for Music and Whisparr for porn.

Radarr

version: "3.3"
services:
  arch-radarr:
    ports:
      - 7878:7878
    container_name: radarr
    volumes:
      - /mnt/arr-stack:/mnt/arr-stack
      - /mnt/arr-stack/configs/radarr:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - PUID=1000
      - PGID=1000
    image: binhex/arch-radarr
    restart: unless-stopped
networks: {}

Sonarr

version: "3.3"
services:
  arch-sonarr:
    ports:
      - 8989:8989
      - 9897:9897
    container_name: sonarr
    volumes:
      - /mnt/arr-stack:/mnt/arr-stack
      - /mnt/arr-stack/configs/sonarr:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - PUID=1000
      - PGID=1000
    image: binhex/arch-sonarr
    restart: unless-stopped
networks: {}

Prowlarr is the application where you can configure your usenet sites. There you will put in the URLs of your Indexers like Drunkenslug and your API keys for those sites. Prowlarr will periodically check the availability of those services and will sync these accounts to all your connected services (Radarr, Sonarr, Lidarr, Whisparr, etc.). Prowlarr will then be doing the actual heavy lifting of accessing the API of any Usenet and search for your stuff.

Prowlarr

version: "3.3"
services:
  arch-prowlarr:
    ports:
      - 9696:9696
    container_name: prowlarr
    volumes:
      - /mnt/arr-stack/configs/prowlarr:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - PUID=1000
      - PGID=1000
    image: binhex/arch-prowlarr
    restart: unless-stopped
networks: {}

3. Configuring each service

Now that we have all these Services up and running. It's time to properly configure them. Let's start with qBitTorrent

3.1 qBitTorrent

  1. Click on "Tools" in the menu bar
  2. Click on Options
  3. Click on Web Ui
  4. Under "Authentification" change your Username and Password
  5. Click on Save at the bottom

3.2 Sonarr

  1. Click on Settings

Root Folder

  1. Click on "Media Management"
  2. Under Root Folders, add /mnt/arr-stack/media/shows

Connect qBitTorrent

  1. Click on "Download Clients"
  2. Click on the big PLUS icon
  3. Select qBitTorrent
  4. Enter the IP Adress of your server
  5. Port: 8081
  6. Enter your username and passwort from earlier
  7. Under Category enter tv
  8. Check "Remove Completed"
  9. Click on Test and Save

Grab your API Token

  1. Click on General
  2. Copy API Key and save it for later. We need it for Prowlarr

3.3 Radarr

  1. Click on Settings

Root Folder

  1. Click on "Media Management"
  2. Under Root Folders, add /mnt/arr-stack/media/movies

Connect qBitTorrent

  1. Click on "Download Clients"
  2. Click on the big PLUS icon
  3. Select qBitTorrent
  4. Enter the IP Adress of your server
  5. Port: 8081
  6. Enter your username and passwort from earlier
  7. Under Category enter tv
  8. Check "Remove Completed"
  9. Click on Test and Save

Grab your API Token

  1. Click on General
  2. Copy API Key and save it for later. We need it for Prowlarr

The same procedure goes for Lidarr and Whisparr aswell with their respective categories changed.


3.4 Prowlarr

  1. Click on Settings

Connect Sonarr and Radarr

  1. Click on Apps
  2. Click on the big Plus Icon
  3. Click on Sonarr
  4. Sync Level "Full Sync"
  5. Tags: none
  6. Prowlarr Server: http://localhost:9696
  7. Sonarr Server: http://ipofyourserver:8989
  8. API Key from Sonarr
  9. Test and Save
  10. Rinse and Repeat for Radarr with adjusted infos

Add Indexers

  1. Click on Indexers
  2. Click on Add Indexer
  3. Type in the name of your indexer. Many of the big ones will be pre configures
  4. Example: The Pirate Bay
  5. Click on the entry
  6. Check "Enable"
  7. Sync Profile "Standard"
  8. Under Base URL select the first one (you may have to cycle through if one of them doesn't work)
  9. Enter your Seed Ratio
  10. Test and Save

Prowlarr will now test and sync the indexers to your other apps like Sonarr and Radarr. Manually click on Test all Inders and then on Sync all Indexers. Now go back to Sonarr and Radarr and click on Settings -> Indexers and check if Drunkenslug (in our example) shows up there.


4. You're done

Now this is obviously just the tip of the iceberg. You still don't have "finetuned" profiles and explaining these would absolutely blow up the scope of this post.

You should absolutely check out https://trash-guides.info/ as it is an absolute goldmine of infos.

So, these are the basics and there is much more to finetune. But as soon as you have an invite and registered for a host you absolutey are ready to go sailing on the high seas!

Here is an alternate guide on how to set it up for Usenet Downloads: https://lemmy.dbzer0.com/post/26287096

top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 3 weeks ago (1 children)

So awesome, I'm am just about to jump into this so you had perfect timing posting this

Thank you!

[–] [email protected] 4 points 3 weeks ago

Happy to hear!

I updated the guides to include a link to my next guide: Jellyfin + Jellyseer in junction with sonarr / radarr. Make sure to refresh the page :)

[–] [email protected] 5 points 3 weeks ago (2 children)

can i get a tip for readarr too. i am too dumb to figure it out even after reading documentation from official site.

[–] [email protected] 9 points 3 weeks ago

Their metadata DB is still poorly and broken, and uh, it kinda makes the whole app pointless.

You probably want LazyLibrarian until and unless (and it's been literal years now) they fix their shit.

[–] [email protected] 2 points 3 weeks ago

I never really looked into readarr i'm sorry... maybe someone else can chime in? I've always found calibre web super annoying aswell

[–] [email protected] 4 points 3 weeks ago (1 children)

Your -arrs see the torrent download folder as /mnt/arr-stack/torrents/completed, and qBittorrent sees it as /downloads.

Maybe this is only a problem with Transmission, but I've had trouble making my Arr stack play nice with torrents when the different apps think downloads live in different folders.

[–] [email protected] 2 points 3 weeks ago (1 children)

I have tried it like that before writing the guide and it didn't cause issues. But yes, if it does one could simply mount the whole base folder and navigate from there

[–] [email protected] 1 points 3 weeks ago

This works for me - /mnt/arr-stack/torrents/complete:/mnt/arr-stack/torrents/complete

[–] [email protected] 3 points 3 weeks ago (1 children)

First off, this is an excellent guide and I thank you for writing it all out!

Coming from an absolute noob, how difficult is this to setup via a VPN for privacy concerns? Could I somehow use the PIA subscription I already have?

[–] [email protected] 5 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Glad you find it well-written :)

Well it isn't really that hard techznically, but you have to be really sure it actually works and that's the hard part.

You can look into "Gluetun". It is a small docker service that supports PIA. You will have to put this and the rest of the ARR stack into the same "docker network" and configure it so that radarr, etc. go through Gluetun and use it's VPN.

You can then open a terminal for the radarr container for example and run curl ipinfo.io for example to check the IP adress that container has to the outside world.

I didn't do that whole gluetun setup in quite a while so i'm not really in the position to give a proper guide on how to route your docker containers through it. But there are guides out there that will definetely help.

Testing that it's failproof would be for example run while sleep 5; do clear && curl ipinfo.io; done which shows your outside world IP for that container once per 5 seconds. Then stopping that gluetun container and look if the radarr container stops the ping and / or suddenly shows your real IP.

EDIT: found a quick readme for the gluetun container that shows how to route other containers through it

[–] [email protected] 2 points 3 weeks ago (1 children)

You are amazing! Thanks for pointing me in that direction!

[–] [email protected] 2 points 3 weeks ago

You're welcome!

After we learned that disney can kill your husband / wife and you're not even allowed to take them to court because you signed up for a disney+ trial years ago, i am more than happy for every single person that is able to rip as much of their (most of the time) shitty content

[–] [email protected] 2 points 3 weeks ago (1 children)

Saved for later, I've been meaning to look into getting this going. Any suggestions on storage solutions to hook to an rpi? I just have a 1tb external on it right now so obv that'd fill up pretty quick lol

[–] [email protected] 2 points 3 weeks ago (1 children)

I don't think a raspberry pi is really suitable for huge amounts of storage. Ideally you should prefer some proper NAS device that also does some proper RAID configuration.

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

I'm aware, but AFAIK NAS devices with some brains aren't really suitable for containers so im not sure how to get my storage and my services

Or am i overthinking it and I can just point jellyfin/etc at the NAS? Might have just solved my own problem I'll look into it later 🤣

[–] [email protected] 2 points 3 weeks ago (1 children)

I actually run my arrstack on a Synology, it has official support for docker and docker-compose. Granted I do have a higher powered model (the DS1621xs+) but most of the arrstack is fairly low power friendly.

You can also get away with running Plex on a nas but I would only do it if 1. Your nas has a quick sync supported CPU and you get that enabled properly or 2. You go the direct streaming only / no transcoding setup - which means checking the codec support for all client devices and either only downloading exactly the supported codecs or pre-transcoding everything.

What I do is actually run Plex/JF on a separate nuc and point it at the nas using a network mount. Just don't use a network mount for the Plex app database (maybe same applies to JF too), just mount the media files itself. Running Plex and having it access the DB over a network mount is a big no no for various reasons.

[–] [email protected] 1 points 3 weeks ago (1 children)

What nuc do you use? I've seen people touting the N100 as this miracle chip but IIRC it's like 1Ghz to my pi's 1.8 I think? I know moving away from the pi is fairly inevitable but IDK what to move to. A NUC sorta thing makes sense, but at the same time if I bother to buy new hardware I want to be able to run a game server or two and I assume I'd probably need more power than a NUC for that (I haven't actually looked into reqs for that yet, although I know some games are explicitly more RAM intensive.)

[–] [email protected] 1 points 3 weeks ago

I use a nuc10i7fnkn and since transcoding is almost entirely done using the dedicated quicksync hardware in the CPU you don't end up actually using the CPU much. So I'm sure it would work on an older generation or the i5 version. I don't know much about the N100 but it looks like it would be very capable. Supposedly it boosts to 3+GHz and it's a 10nm node compared to my NUCs 14nm. But the GPU has the same number of execution units so I'm not sure if the quicksync transcoding performance is that different. I saw someone mention 3 simultaneous 4K transcodes and I think I got about that much on mine. Generally for quick sync performance you just compare the Intel hd or uhd graphics model (like 630, 730, uhd, etc) and the number of execution units and that should correlate to the performance. Also check the Wikipedia page for quicksync for codec compatibility (under the Hardware decoding and encoding section), but anything recent will handle most stuff you'd need: https://en.m.wikipedia.org/wiki/Intel_Quick_Sync_Video

[–] [email protected] 1 points 3 weeks ago (1 children)

The are stack itself is so low power that you absolutely can run it on a NAS like synology for example... I mean you can run a Plex server on a NAS and it actually works so...

In my case I have it seperated. I have a NAS that does absolutely nothing else besides being a NAS. I then have my mediaserver for the are stack and jellyfin.

So that could be your Pi, and the you get an old used Synology for example.

[–] [email protected] 1 points 3 weeks ago

The pi4b can't handle h.265 so I'd have to upgrade anyway, I guess I'll look into a NAS and maybe a NUC instead of the pi. Thanks for the input!

[–] [email protected] 1 points 3 weeks ago (1 children)

Nice write up, thanks for sharing!

I also highly recommend the mobile app called LunaSea as an alternative for nzb360.

LunaSea is a fully featured, open source self-hosted controller focused on giving you a seamless experience between all of your self-hosted media software remotely on your devices.

[–] [email protected] 2 points 3 weeks ago

Yeah i stumbled across that a couple times but never really put much thought in it... i'll check it out right now and maybe i update my guides :)