Installation of Plex Media Server - LathDevers/RasPi-OMV-Setup GitHub Wiki

First, much sooner than even building a NAS, I've played around with Kodi. I've recently found some sources, that imply, that Kodi could be installed server-side on the Raspberry itself. However, when somebody first meets Kodi, and even later on, one finds, that Kodi is most used, maybe even meant to be used as a client-side service. This has however caused many issues, especially since I was all the time changing something about the media source during setting up my DIY NAS. For example, every time something has changed about the media source path, all the movies appeared twice in Kodi.

You may want to take a look at another interesting alternative, it's called Jellyfin.

Update 7-11-2022: Since Docker for some reason consumed all space on the system disk and if put on another disk, the CPU was running all the time (see issues #1 and #2), I've decided to completely get rid of Docker and Portainer and, thereby, Plex and moved back to using Kodi on my TV.

Installation of Plex Media Server with docker-compose

Find source here.

Installation of Plex Media Server with OMV-Extras

Find source here.

  1. Install OMV-Extras

    • ssh into RasPi with user that is in sudo group
    • write sudo su to get root privileges
      sudo su
      
    • install omv-extras with
      wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
      
  2. Find omv-extras menu under System in the OMV GUI

  3. Select Docker and Install it.

    • change docker folder (from default /var/lib/docker) to one on a media disk (for more, see OMV Web interface throws me out immediately after login section in this documentation)
    • ☠️ This however caused the CPU to work ~80% 24/7, so moved the folder back and bought a bigger SD card + copied the OS disk to the new card.
  4. After Docker is installed, select Portainer and Install it.

  5. Select Open Web or go to http://192.168.x.x:9000

  6. Create a user account

  7. Select Get Started

  8. Select local

Now we install Plex in the docker

  1. Select Volumes, then Add Volume &rarr name it Plex, click Create the Volume

  2. Select Containers, then Add Container &rarr name it Plex, enter Image: linuxserver/plex:latest

  3. At the bottom, under Advanced container settings, select Volumes (instead of Command & logging)

    • in either OMV GUI > Storage > Shared Folders, or in a Terminal, check for media path (it should look something like this: /srv/dev-disk-by-uuid-34F5EE1202469FF7/nasty/Movies)
    • map additional volume
      • container: /config - Volume
        volume: Plex - local
    • map additional volume
      • container: /movies - Bind
        volume: /srv/dev-disk-by-uuid-34F5EE1202469FF7/nasty/Movies - Read-only
    • map additional volume
      • container: /shows - Bind
        volume: /srv/dev-disk-by-uuid-34F5EE1202469FF7/nasty/TV Shows - Read-only (you just simply write space)
  4. Under Network select host

  5. Change Restart policy to Always

  6. Under Runtime & Resources turn on Privileged mode

  7. Finally, Deploy the container.

In the browser, go to OMV_IP:32400/web/index.html

  1. Sign in.

  2. Go through Plex media setup.