Jump to content

Plex: Difference between revisions

1,411 bytes added ,  19 June
link to package search for installation as it describes all methods in one place
imported>Heartbeast42
m (Fix broken link)
(link to package search for installation as it describes all methods in one place)
 
(4 intermediate revisions by 3 users not shown)
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 [[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) ==
Line 24: Line 44:
Plex Media Player is the current release of Plex's media client. Plex has made PMP [https://www.plex.tv/blog/plex-media-player-now-ambidextrous-free-kodi-said/ available] to all users and it has also become compatible with Kodi.
Plex Media Player is the current release of Plex's media client. Plex has made PMP [https://www.plex.tv/blog/plex-media-player-now-ambidextrous-free-kodi-said/ available] to all users and it has also become compatible with Kodi.


'''Installation'''
For installation see [https://search.nixos.org/packages?channel=unstable&show=plex-media-player&from=0&size=50&sort=relevance&type=packages&query=plex-media-player here].
 
<syntaxhighlight lang="console">
$ nix-env -i plex-media-server
</syntaxhighlight>


== SSL Access via Nginx Reverse Proxy ==
== SSL Access via Nginx Reverse Proxy ==
Line 118: Line 134:


After applying the changes, just browse to <code>https://sub.domain.tld/web</code>. Of course use your actual (sub)domain name.
After applying the changes, just browse to <code>https://sub.domain.tld/web</code>. Of course use your actual (sub)domain name.
[[Category:Applications]]