Sat, May 14, 2016

00:53:35 UTC: PLEX

[Plex Media Server]

prelink from AUR.
plex-media-server from AUR.

[Configuration]

Set a maximum amount of memory:

/usr/lib/systemd/system/plexmediaserver.service

MemoryLimit=2G

iptables:

$ iptables -A INPUT -p tcp -m multiport --dports 32400,32469 -j ACCEPT
$ iptables -A INPUT -p udp -m multiport --dports \
> 1900,32410,32412,32413,32414 -j ACCEPT
$ sudo systemctl enable plexmediaserver.service

[Storage]

$ sudo mkdir /shares
$ df -h
$ sudo blkid /dev/sdb1

/etc/fstab

# UUID=1f22599a-6b0f-4b90-81b0-4c471f761f47
/dev/sdb1    /shares    ext4    rw,relatime,data=ordered    0 3

Reboot

$ cd /shares
$ mkdir plex
$ sudo chgrp plex plex
$ sudo chmod g+w,o-rx plex
$ sudo usermod -a -G plex daniel

Reference: Plex