How to Install Plex Media Server on Raspberry Pi

Installing a Plex Media Server on Raspberry Pi is a cost-effective way to enjoy the benefits of Plex. Plex Media Servers are a great way to store and organize all your digital media. Plex server allows you to neatly organize your TV shows, movies, and other digital media so you can easily access them through different devices like phones, tablets, laptops, streaming devices, and even Smart TVs.

Plex Media Server on Raspberry Pi

If you are looking for a cheap and reliable device to serve as your Plex Media Server, then look no further because Raspberry Pi is one of the most affordable pieces of hardware out there. It costs around $45 for the latest Raspberry Pi 4 model. Installing Plex Media Server on Raspberry Pi can be a bit tricky because it involves using Linux commands, but we’re going to make it extremely easy so everyone can set up a server on their Pi without any issues.

Here’s what you need to get started.

Things You’ll Need to Install Plex Media Server on Raspberry Pi

Here are all the things you will need to set up a dedicated Plex server on a Raspberry Pi.

It’s also better that you get a plastic case and a heatsink for the Raspberry Pi as the plastic case will keep your device protected while the heatsink will ensure that it doesn’t overheat, even under heavy usage.

Also, you need to ensure that your Raspberry Pi comes pre-installed with the Raspbian OS. Or, you can install the Raspbian OS yourself. It’s quite easy, all you have to do is download the Raspbian OS and install it on the MicroSD card. Plug the card into the Pi, and you’re good to go.

Check out the official installation guide for more help with installing Raspbian OS.

Now, it’s time to install Plex Media Server on Raspberry Pi.

Install Plex Media Server on Raspberry Pi

Install Plex Media Server on Raspberry Pi

First of all, make sure that your Raspberry Pi device is completely updated. Run the following commands to update the device:

sudo apt-get update

sudo apt-get upgrade

It will ask you to provide the administrator/root password, so enter the password.

After you have fully updated your device, you must install the “apt-transport-https” package. This package allows Plex Media Server from a secure HTTPS source. Use this command:

sudo apt-get install apt-transport-https

Now you need to add the crypto key for the dev2day website which is the official Plex packages website. Run this command:

wget -O – | apt-key add –

Use the following command in order to add the dev2day repo to the source list:

echo “deb stretch main” >> /etc/apt/sources.list.d/pms.list

You have successfully added the dev2day repository. Now, it’s time to update the package list:

sudo apt-get update


You are ready to install Plex Media Server on Raspberry Pi. Run the following command:

sudo apt-get install plexmediaserver-installer

This command will install the Plex Media Server on Raspberry Pi. Once the installation is finished, you just have to take care of minor permission issues. Here’s how to do so.

To make sure that there is no permissions issue, it’s recommended to run Plex under the Pi user. Use the following command to do so:

sudo nano /etc/default/plexmediaserver.prev

This will output the following line:


In the above line, change “plex” to “pi” and then press Ctrl+X to close the file. When it asks to overwrite, choose to save and overwrite the file to keep your changes.

terminal window: changing Plex to Pi as the user

If you want to access your Plex Media Server remotely, then you need to assign a static IP to your Raspberry Pi. Here’s the command to do so:

hostname -I

This will show you the current IP, note it down.

Use the following command to open the cmdline.txt file:

sudo nano /boot/cmdline.txt

At the bottom, type in the following:

ip=The IP address you noted down.

terminal window: changing the ip address

Then hit Ctrl+X to save and close the file.

Restart the Raspberry Pi using this command:

sudo reboot

Congratulations! Your Raspberry Pi is now a fully functional Plex Media Server. You can head over to via any browser that you like, and this will associate the server to your Plex account.

You can now explore all your media files and add them to your server so you can access them from anywhere with the Plex app. If you run into any issues or have any questions, then feel free to comment below and let us know.

Just Stream is reader supported. When you buy through links on our site we may earn an affiliate commission. Learn More.

3 thoughts on “How to Install Plex Media Server on Raspberry Pi”

  1. Outdated!

    Verbindungsaufbau zu (||:443 … verbunden.
    E: This command can only be used by root.
    HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
    2020-11-03 02:01:01 FEHLER 404: Not Found.


Leave a Comment