Setup Plex Server on Raspberry Pi

20 August 2019 Link


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


  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 public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
    curl | 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