Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Last active September 4, 2020 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattiasghodsian/73c6461d3740abfa12e4a627fff26cb0 to your computer and use it in GitHub Desktop.
Save mattiasghodsian/73c6461d3740abfa12e4a627fff26cb0 to your computer and use it in GitHub Desktop.
How to install Sonarr,Jackett,qBittorrent and mount network drive on Raspberry PI 4

~|~ I DO NOT INDORCE TORRENTING COPYRIGHT CONTENT - THIS IS MADE FOR EDUCATIONAL PURPOSES ONLY ~|~

1. Setup your Raspberry

  • Install Raspberry OS headless on your SD card and power it up with a screen, ether cable and keyboard
  • Enable SSH with sudo raspi-config and go to Interfaces and enable SSH
  • Change the password with Option one sudo raspi-config
  • sudo apt-get update then sudo apt-get upgrade -y

2. Install qbittorrent-nox

  • sudo apt-get update && sudo apt-get install qbittorrent-nox
  • Create a new user sudo adduser qbtuser
  • sudo nano /etc/systemd/system/qbittorrent.service and pase content below
[Unit]
Description=qBittorrent Daemon Service
After=network.target

[Service]
User=qbtuser
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8080

[Install]
WantedBy=multi-user.target
  • sudo systemctl daemon-reload then change user sudo su qbtuser and run qbittorrent-nox
  • You should now see a message that returns the interfance password default one: adminadmin
  • Start the service with sudo systemctl start qbittorrent and navigate to http://192.168.1.167:8080/
  • Start on boot sudo /etc/rc.local and add sudo systemctl start qbittorrent

3. Mount network folder

  • Make a new folder sudo mkdir /mnt/tattoine/file
  • sudo nano /etc/fstab and paste content below (modify after your needs)
//192.168.1.128/file /mnt/tattoine/file cifs username=*USER-HERE*,password=*PASS-HERE*,workgroup=WORKGROUP,dir_mode=0777,file_mode=0777,users,auto,user_xattr 0 0
  • sudo mount /mnt/tattoine/file then sudo reboot -h 0
  • If needed: mount on boot sudo nano /etc/rc.local and add sudo mount -a

4. Install Jackett

  • Install mono dependencies sudo apt-get update && sudo apt-get install libmono-cil-dev -y
  • Go to https://github.com/Jackett/Jackett/releases/latest and copy the url of Jackett.Binaries.LinuxARM32.tar.gz
  • Download the file with wget and do tar -xvf Jackett*
  • Make new folder and move all files sudo mkdir /opt/jackett && sudo mv Jackett/* /opt/jackett
  • Change ownership sudo chown -R pi:pi /opt/jackett
  • Change premissions and run sudo chmod a+x install_service_systemd.sh && sudo ./install_service_systemd.sh
  • Start jackett sudo service jackett start
  • Start on boot sudo nano /etc/rc.local and add sudo service jackett start and navigate to http://192.168.1.167:9117/

5. Install Sonarr v3 Beta

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8

add sonarr to your source list

echo "deb https://apt.sonarr.tv/debian buster main" | sudo tee /etc/apt/sources.list.d/sonarr.list

During the installation, you will be asked which user and group Sonarr must run as.

  • In this case i will use pi as my user sudo apt update && sudo apt install sonarr -y
  • Start sonarr sudo service sonarr start
  • Start on boot sudo nano /etc/rc.local and add sudo service sonarr start and navigate to http://192.168.1.167:8989/

6. unrar Run external program on torrent completion.

  • add unrar x -ibck -inul "%F/*.r*" "%F/" to qbittorent
  • uncomment the last line of sudo nano /etc/apt/sources.list and then do sudo apt update
  • sudo apt build-dep unrar-nonfree then sudo apt source -b unrar-nonfree
  • Then you will get a few .deb files and then do sudo dpkg -i unrar_5.6.6-1_armhf.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment