Categories: Plex Guides

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

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 – https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add –

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

echo “deb https://dev2day.de/pms/ 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

Great!

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:

PLEX_MEDIA_SERVER_USER=plex

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.

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.

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 Plex.tv/web 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.

View Comments

  • Outdated!

    Verbindungsaufbau zu dev2day.de (dev2day.de)|45.83.105.96|: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.

  • the above command left a message that first connected, and then said error 404: not found
    i used sudo before

Recent Posts

iViewHD IPTV Review – Is it The Best Newcomer?

What is iViewHD IPTV? IPTV is all the rage nowadays when everyone wants to cut the cord. IPTV services are…

3 years ago

How to Fix “Download failed” Error when downloading BBC iPlayer Programs Abroad

Are you fed up with watching “Download Unavailable - Error Code: 3” or “Dash manifest failed” flashing over your screen…

4 years ago

How to Download Movies from Stremio

Here's a simple and easy way to download movies from Stremio using the Stremio Downloader software available for multiple devices.

4 years ago

Cinema HD on Roku – Install Cinema APK on Roku

Cinema HD is not only available for Firestick and other Android users. You can use Cinema HD on Roku as…

4 years ago

Cinema HD for PC – Install Cinema HD on Windows PC in 2-Minutes

Cinema HD for PC is the perfect way to access tons of great movies and TV Shows directly from your…

4 years ago

Sportz TV IPTV Review – Is It Really The Best IPTV Service?

Is Sportz TV IPTV the best IPTV service out there? Check out our review to see why this is the…

4 years ago