Installation of NZBget and Sonarr on Ubuntu
Damn it has been a long time since I wrote anything here. No one cares, moving on. Prepping to buy/build a NAS and Plex server so wanted to get an idea how to get Plex, NZBget and Sonarr running on a Ubuntu server. This is mostly for my own future reference so I can remember how to do this once I actually get to the point that I can implement things.
Install Plex
1 2 |
wget https://downloads.plex.tv/plex-media-server/1.8.1.4139-c789b3fbb/plexmediaserver_1.8.1.4139-c789b3fbb_amd64.deb sudo dpkg -i plexmediaserver_1.8.1.4139-c789b3fbb_amd64.deb |
Install NZBGet
1 2 |
wget https://nzbget.net/download/nzbget-latest-bin-linux.run sh nzbget-latest-bin-linux.run --destdir /opt/nzbget |
Add Mono Repository
1 2 |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list |
Add Sonarr Repository
1 2 |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC sudo echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list |
Install Mono and Sonarr
1 2 3 |
sudo apt-get update sudo apt-get install mono-devel sudo apt-get install nzbdrone |
Create NZBget service file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[Unit] Description=NZBGet Daemon After=network.target [Service] Type=forking User=%i ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D ExecStop=/opt/nzbget/nzbget -Q ExecReload=/opt/nzbget/nzbget -O KillMode=process [Install] WantedBy=multi-user.target |
Create Sonarr service file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[Unit] Description=Sonarr Daemon After=syslog.target network.target BindsTo=nzbgetd.service [Service] User=nzb Group=nzb Type=simple ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser TimeoutStopSec=20 KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target |
Enable NZBget and Sonarr services
1 2 |
sudo systemctl enable nzbgetd.service sudo systemctl enable sonarr.service |
Start Sonarr service
1 |
sudo service sonarr start |
The NZBget service is bound to the Sonarr service, so starting Sonarr automatically starts NZBget.
Once all this is running I’ll set up an NFS share on a Synology NAS and mount the shares to this server for access and sharing via Plex.
Leave a Reply