Radarr

This article will show you how to install Radarr. Radarr is a fork of Sonarr to work with movies à la Couchpotato.

You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).

Installation

Radarr requires mono to run. Please install mono first, then come back to this guide.

Once mono is installed, install Radarr by logging in via SSH, then copying and pasting the following:

wget -qO ~/Radarr.tar.gz https://github.com/Radarr/Radarr/releases/download/v0.2.0.870/Radarr.develop.0.2.0.870.linux.tar.gz
tar xf ~/Radarr.tar.gz
rm ~/Radarr.tar.gz
mkdir -p ~/.config/Radarr

Installation notes

By default, you will access the software in your browser by using the URL with a port number. If you consider the URL without a port number to be neater, you will need to configure a proxypass.

Configuring before starting Radarr

A config.xml file needs to be created and tweaked before we can properly run Radarr. To create it, use the following command:

nano ~/.config/Radarr/config.xml

Then, copy and paste the following:

<Config>
  <Port>7878</Port>
  <UrlBase></UrlBase>
  <BindAddress>*</BindAddress>
  <SslPort>9898</SslPort>
  <EnableSsl>False</EnableSsl>
  <ApiKey></ApiKey>
  <AuthenticationMethod>None</AuthenticationMethod>
  <LogLevel>Info</LogLevel>
  <Branch>master</Branch>
  <LaunchBrowser>False</LaunchBrowser>
  <SslCertHash></SslCertHash>
  <UpdateMechanism>BuiltIn</UpdateMechanism>
  <AnalyticsEnabled>False</AnalyticsEnabled>
</Config>

Once you're done hold ctrl + x to save. Press y to confirm.

You then need to tweak the config slightly. You can do this by copying and pasting the following:

sed -i 's|<Port>7878</Port>|<Port>'$(shuf -i 10001-32001 -n 1)'</Port>|g' ~/.config/Radarr/config.xml
sed -i 's|<UrlBase></UrlBase>|<UrlBase>/'"$(whoami)"'/Radarr</UrlBase>|g' ~/.config/Radarr/config.xml

Starting, stopping and restarting

This section covers the Radarr process - starting it, stopping it and restarting it. It also covers checking if the process is running, in case that becomes necessary.

You can start Radarr and print its URL with the following:

screen -dmS Radarr /bin/bash -c 'export TMPDIR=~/tmp; ~/bin/mono --debug Radarr/Radarr.exe' && echo "http://$(hostname -f):$(sed -rn 's|(.*)<Port>(.*)</Port>|\2|p' ~/.config/Radarr/config.xml)/$(whoami)/Radarr/"

If nothing happens or there is an error it could be that the port that was picked in the configuration step in use. Simply run these commands again to try with a different number (you'll need to edit the proxypass if you have one set up):

sed -i 's|<Port>.*</Port>|<Port>'$(shuf -i 10001-32001 -n 1)'</Port>|g' ~/.config/Radarr/config.xml
screen -dmS Radarr /bin/bash -c 'export TMPDIR=~/tmp; ~/bin/mono --debug Radarr/Radarr.exe' && echo "http://$(hostname -f):$(sed -rn 's|(.*)<Port>(.*)</Port>|\2|p' ~/.config/Radarr/config.xml)/$(whoami)/Radarr/"

If you need to check that it's running, you can run the command below. If the process is running a list of relevant process ID numbers will be listed. If nothing is listed, the process is not running.

pgrep -fu "$(whoami)" "SCREEN -dmS Radarr"

The Radarr process is stopped by executing:

kill "$(pgrep -fu "$(whoami)" "SCREEN -dmS Radarr")"

If Radarr needs to be restarted, copy and paste these commands:

kill "$(pgrep -fu "$(whoami)" "SCREEN -dmS Radarr")"
screen -dmS Radarr /bin/bash -c 'export TMPDIR=~/tmp; ~/bin/mono --debug Radarr/Radarr.exe'
echo "http://$(hostname -f):$(sed -rn 's|(.*)<Port>(.*)</Port>|\2|p' ~/.config/Radarr/config.xml)/$(whoami)/Radarr/"

Please note that if you want to stop the process for Radarr, it's best to check it afterwards to make sure it has stopped. If the process has crashed and will not stop when requested, you can kill it with:

kill -9 "$(pgrep -fu "$(whoami)" "SCREEN -dmS Radarr")"

Automatically restarting Radarr if it is not running

Cron jobs can be used to check if Radarr is running and start it up if it is not. There is a separate page on configuring cron jobs.

Configuring

This section covers setting a password in Radarr and connecting the Radarr to different clients.

Setting a password in Radarr

Within the Radarr UI, click the Settings icon (the three gears at the top) and then click the General tab. Under Security, click the dropdown menu next to Authentication and select Forms (Login page). Two fields will appear and you'll be able to set a username and password for the web UI. Whilst it's not mandatory you do this, it is a sensible thing to do. You'll need to restart the program for the changes to take effect.

Configuring clients with Radarr

In Radarr's user interface click the Settings icon (the three gears at the top) and then click Download Client. Next, click the + button. You can choose the torrent client you want to configure from the menu.

rTorrent

First of all you need to create the rTorrent RPC and this is done by switching from apache to nginx.

Name
Your chosen name for the settings - you can pick what you like
Enable
Yes
Host
server.feralhosting.com
Port
443
Url Path
/username/rtorrent/rpc
Use SSL
Yes
Username
rutorrent (the word 'rutorrent', not your ruTorrent username)
Password
Your ruTorrent access password

In the above settings, server is replaced by the name of your server (e.g. zeus) and username is your username on the server.

Deluge

First make sure Advanced Settings have been set to Shown, in order for the necessary options to appear.

Name
Your chosen name for the settings - you can pick what you like
Enable
Yes
Host
server.feralhosting.com
Port
443
Url Base
/username/deluge
Password
Your Deluge web UI password
Use SSL
Yes

In the above settings, server is replaced by the name of your server (e.g. zeus) and username is your username on the server.

Transmission

First make sure Advanced Settings have been set to Shown, in order for the necessary options to appear.

Name
Your chosen name for the settings - you can pick what you like
Enable
Yes
Host
server.feralhosting.com
Port
443
Url Base
/username/transmission/
Username
Your Transmission username
Password
Your Transmission password
Use SSL
Yes

In the above settings, server is replaced by the name of your server (e.g. zeus) and username is your username on the server.

Uninstallation

kill -9 "$(pgrep -fu "$(whoami)" "SCREEN -dmS Radarr")"
rm -rf ~/.config/Radarr/ && ~/Radarr

External links