Jump to content

Plex: Difference between revisions

1,349 bytes added ,  19 February
Add section for allowing plex to see external drives
imported>Heartbeast42
m (Fix broken link)
imported>Jmarmstrong1207
(Add section for allowing plex to see external drives)
Line 19: Line 19:


Access Plex media server by browsing to <code>http://lan_ip:32400/web</code>
Access Plex media server by browsing to <code>http://lan_ip:32400/web</code>
=== Allow Plex to read external drives ===
You might encounter permission issues when you try to access external drives if you haven't configured anything else with the server yet. If you haven't explicitly set up a mounting configuration for your drives and instead have your desktop environment (e.g. GNOME or KDE) automatically mount it when you try accessing it via their file explorers, Plex won't be able to access the drive. This is because the desktop environment mounts it to your user, while Plex uses by default the "plex" user.
The easiest way to allow Plex to see these external drives mounted is to change the Plex service's user . Here is an example:
<syntaxhighlight lang="nix">
services.plex = {
  enable = true;
  openFirewall = true;
  user="yourusername";
};
</syntaxhighlight>
If you have changed the user option after you have already installed Plex, you have to change the permissions of the folder /var/lib/plex via chown to the user you set it to by doing this:
<syntaxhighlight lang="nix">
  sudo chown -R /var/lib/plex
</syntaxhighlight>
The alternative to this is to explicitly mount the drives via [https://nixos.wiki/wiki/Filesystems Filesystems], but takes more effort to set up and requires every new drive you want plex to see to be explicitly declared, but allows more control in what Plex is allowed to see.


== Plex Media Player (PMP) ==
== Plex Media Player (PMP) ==