How to install Plex on a Raspberry Pi

Storing the audio and video files on a local server , and having the option to play them on any device within the home or at a remote site, is possible by properly configuring our Raspberry Pi with the Plex tool .

The good news is that you don’t need the latest version of the mini computer to create a media server . Both the Raspberry Pi 1 , and of course even the most current, can be converted into multimedia centers without problems, although you must bear in mind that, by consuming many resources, the old models will get a bit slow .

In this guide we take a walk through all the steps to follow to install Plex on a Raspberry Pi , you will know the minimum requirements that you will need so that everything works without problems, you will know the ideal way to perform the configuration and what are other alternatives in in case that application does not seem appropriate.

 What is Plex and what is this tool for on a Raspberry Pi?

Plex is an application that allows you to view the multimedia content you have on your Raspberry Pi on any other device. For this to be possible, you must install Plex Media Server and have it running each time you want to use the files. Likewise, it organizes all your digital content (videos, photos and music) and encrypts remote connections with the Plex client.

The storage limit will be that of your Micro SD card , pendrive or removable hard drive. It is key to note that there are versions for practically all platforms, including Windows, Linux, iOS, Android, macOS, Chromecast , PlayStation consoles, Xbox and for SmartTV . In summary, Plex is a useful tool , which in many cases facilitates entertainment, especially when we do not want to see them on a small screen but in the comfort of our TV.

 What are the benefits of using the Raspberry Pi as a Plex media server?

One of the benefits is that you will not have the hard disk space of your conventional computer occupied with a large number of large files that you do not use frequently, such as movies, TV shows or concerts. Second, you can access the files anywhere . If you go to a meeting with friends or go on vacation to a distant place, by connecting with this multimedia center you will be able to observe what you want from your mobile device.

Third, the Raspberry Pi card is low power consumption even if you keep it on for long periods of time. It does not take up much space as a conventional server would, and its installation is simple. And as a fourth aspect, we add that they provide access to the GPIO, which allows a fast and secure connection to other devices without major complications.

What do I need to be able to install Plex on my Raspberry Pi? Essential requirements

Although it can work with most Raspberry Pi models, an excellent idea is to purchase a device that has good power and performance . The Pi 3 versions have expanded the capacity of their processor, being surpassed by the Pi 4. It is convenient to review the technical specifications that allow us to conclude that both the operating system and Plex will work together .

Review this list of the resources you need to install:

  • Have a mouse, keyboard, and monitor available.
  • Have a pendrive or external hard drive.
  • Poweroriginal device or trusted brand.
  • It is recommended to use Raspbian Lite (Raspberry Pi OS), which is a Linux distribution

 

 Learn step by step how to install and configure a Plex server on your Raspberry Pi mini computer from scratch

The installation of the Plex application is simple, just by following this step by step you will reach the end without problems and keep your Raspberry Pi running optimally.

Go for it:

 Update Raspberry Pi OS

The most convenient thing is to have the Raspberry Pi operating system on the device , as well as check for an update, so you will avoid that the system is vulnerable and you will be able to use the most recent functions. On the other hand, taking this step will prevent security from being affected when you connect to the internet .

To keep everything up to date, enter the following code:

  • sudo apt-get update

 Install and activate HTTPS transfer

The only way to access the installation files that are downloaded is via HTTPS , since in the ARM architecture used by the Raspberry Pi, these are left in the “dev2day” repository . In the most modern versions it comes by default, but to check, enter the following code:

  • sudo apt-get install apt-transport-https

 Add the repository “dev2day”

To configure the “dev2day” repository as the registered source of the files, an encryption key is required.

To obtain the password you must add the following command:

  • wget -O – https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add –

When entering this code, you will see a key and after obtaining it you must enter the repository “dev2day” to the list of sources of the package:

  • echo «deb https://dev2day.de/pms/ jessie main» | sudo tee /etc/apt/sources.list.d/pms.list

And to finalize and confirm the changes made, the list of packages must be updated:

  • sudo apt-get update

 Install the Plex Media Server

Once the previous steps have been taken, you can start to insert the installation of the Plex package to the card:

  • sudo apt-get install -t jessie plexmediaserver

When prompted, press the “Download” button and the file will begin uploading to your computer.

 Enable permission

To have permissions in the configuration of the Plex application on your Raspberry Pi , you must replace the default user with the administrator functions.

Next, a text document will appear where you must search for the phrase “PLEX_MEDIA_SERVER_USER = plex” . There you will replace the last word “Plex” with the word “Pi” . Once you do, press “CTRL + X” on the keyboard , then “Y” and the changes made will be saved.

To check everything, enter the following command:

  • sudo service plexmediaserver restart

 Specify the static IP address

In order to connect the device with the Plex server, it is necessary to have a static IP address . Thus, any device that wants to connect with the card will find it easily.

To configure this step, we first find out the current address with this command:

  • hostname –I

The result you get , you must write down because it will be necessary later .

Now, enter the following command:

  • sudo nano /boot/cmdline.txt

Once you open the text document “cmdline.txt” , in the final part add a line according to the form “ip = IP address” . After the “=” symbol , write down the address you saved earlier. Save the changes.

 Restart the Raspberry Pi

To see the changes and how the process is progressing, restart the card using the following command:

  • sudo reboot

With this, we guarantee that the Plex application has been installed and is ready to be used.

 Add your files to the Plex library

We continue opening the web browser, once it loads we will enter this address:

  • http://your_IP_Address:32400/web/

In the first part, you are going to write the static IP address that you have selected. To enter you must do so with a Google or Facebook account. When you enter, the interface will appear and using the “Add Library” option you will begin to load the files.

 Create a connection to your files

The files are already uploaded and in a few minutes they will be synchronized. We are now going to see them from another device to check that everything is in order . To give permissions, go to the “Server” tab and once inside, click on the “Remote Access” option .

Next, click on “Enable remote Access” and wait until the server accepts the changes. To use it from any device, you have to have the Plex application loaded and register with the data you already used. Thus, you will have access to the multimedia library that you have uploaded.

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment