Building an Intel NUC6i3SYH Media Server with FlexGet, Deluge, Plex and Fedora 24

Torgny Bjers
Apr 2, 2016 · 5 min read

Required components

Installing Fedora Workstation

$ sudo systemctl enable sshd
$ sudo systemctl start sshd
$ sudo dnf install nano lm_sensors boost-devel
export EDITOR=nano
$ sudo pip install --upgrade setuptools
$ sudo pip install --upgrade pip

Setting up system

Installing Deluge

$ sudo dnf install deluge-daemon \
deluge-web deluge-console
$ deluge-console -v
deluge-console: 1.3.12
libtorrent: 1.0.9.0
$ sudo systemctl enable deluge-web.service deluge-daemon.service
$ sudo systemctl start deluge-web.service deluge-daemon.service

Installing Plex

$ wget https://downloads.plex.tv/plex-media-server/0.9.16.3.1840-cece46d/plexmediaserver-0.9.16.3.1840-cece46d.x86_64.rpm
$ sudo rpm -ivh plexmediaserver-0.9.16.3.1840-cece46d.x86_64.rpm
$ sudo nano /usr/lib/systemd/system/plexmediaserver.service
ExecStart=/usr/bin/env LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
User=deluge
Group=deluge
$ sudo chown -Rf deluge\: /var/lib/plexmediaserver
$ sudo systemctl enable plexmediaserver.service
$ sudo systemctl start plexmediaserver.service

Installing FlexGet

$ sudo pip install flexget
$ flexget -V
1.2.498
You are on the latest release.
$ sudo touch /etc/systemd/system/flexget.service
$ sudo chmod 664 /etc/systemd/system/flexget.service
$ sudo nano /etc/systemd/system/flexget.service
[Unit]
Description=Flexget Daemon
After=network.target

[Service]
Type=simple
User=deluge
Group=deluge
UMask=007
WorkingDirectory=/etc/flexget
ExecStart=/usr/bin/flexget daemon start
ExecStop=/usr/bin/flexget daemon stop
ExecReload=/usr/bin/flexget daemon reload

[Install]
WantedBy=multi-user.target
$ sudo systemctl daemon-reload
$ sudo systemctl enable flexget.service
$ sudo mkdir /etc/flexget
$ sudo chown deluge:deluge /etc/flexget
$ sudo nano /etc/flexget/config.yml
tasks:
myshows:
rss: <your RSS link here>
thetvdb_lookup: yes
series:
settings:
720p:
quality: 720p
set:
content_filename: "{{series_name}} - {{series_id}}{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name }} {% endif %} - {{quality}}"
movedone: "/home/plex/TV/{{series_name}}/Season {{series_season}}/"
label: tv
720p:
- Limitless
deluge:
path: /home/plex/.incomplete
ratio: 1.0
maxupspeed: 150.0
main_file_only: yes
hide_sparse_files: yes
removeatratio: yes
magnetization_timeout: 120
schedules:
- tasks: 'myshows'
interval:
minutes: 15
api: yes
sudo systemctl start flexget.service

Torgny Bjers

Written by

I farm servers in the clouds and conjure confluent code from pixie dust and meteorite slag. If besought, I will help you find the castle with the princess.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade