Setup Plex Server on Raspberry Pi

20 August 2019 Link



Overview

Here I installed the Plex Server on Raspberry Pi to stream my media and connect it to Alexa.

Procedure

  1. Update the operating system:
    sudo apt-get update
    sudo apt-get upgrade
  2. Install apt-transport-https to use plex repository
    sudo apt-get instsll apt-transport-https
  3. Enable the plex media server repository:
    echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
    curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
    sudo apt-get update
  4. Install the plexmediaserver
    sudo apt-get install plexmediaserver
  5. Change the default user name from plex to pi
    sudo vi /etc/default/plexmediaserver
    1. Change PLEX_MEDIA_SERVER_USER line from plex to pi. That is
    2. Change the line export PLEX_MEDIA_SERVER_USER=plex to export PLEX_MEDIA_SERVER_USER=pi
    3. Save the file
  6. Make the pi have a static IP
    1. Open cmdline.txt
    sudo vi /boot/cmdline.txt
    1. Add the line:
    ip=<IP ADDRESS>
    1. Save the file
  7. Reboot the pi
    sudo reboot


References

  1. https://pimylifeup.com/raspberry-pi-plex-server/
  2. https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/