How to set up a Raspberry Pi Plex server
In this article, I’ll show you how to set up Plex Media Server on the Raspberry Pi. So one of the problems with the digital age is storing large amounts of data here and there, especially media files, which are always painful when you play your favorite songs on your home computer, and you cannot really access it or interact with any Other people from any other part of the house, unless you go down where it is. All these special types of problems and other similar problems are the ones Plex is trying to solve. In this tutorial, we will install a Plex server on your Raspberry Pi to give you unlimited, unrestricted access to the media library.
Plex Server Introduction:-
A Plex is a client-server media player system that has a Plex server to provide all media files and one Plex client to access or stream all media files from the server.
Plex Media Server runs on many operating systems such as Windows, MacOS and Linux. Plex can organize all the media files, whether it is music, movies, photos, shows, or posters and thumbnails, you can also display scores and other things from online services.so here it we will be going to use Raspberry Pi as a Plex server.
Media players are clients that run on client devices (such as mobile devices, computers, etc.). Clients can access media files from the Plex server.
Plex Home Media Server lets you keep all your media files in one place and access them from any and all other devices. You can access data from all your favorite devices such as Web, Android Smartphone, Apple, Amazon Fire TV, iOS, Windows, Xbox, PlayStation, Chromecast, Smart TV and more. Plex Client supports all of these devices.
In this article, we will create a Plex server on Raspberry Pi. You will be able to upload media files to a connected storage device (USB pen drive or external HD) and then transfer the media from the server to any other device, whether it is a cell phone or a connected computer. This can be a very useful tool as it helps you manage space well on all other devices and make it easy to share with friends and family.
- Raspberry Pi 3 (should work fine with Pi 2) Buy Now
- SD card (at least 8GB) Buy Now
- USB drive or external hard drive (optional) Buy Now
In this raspberry pi server article, we use Raspberry Pi 3 and Raspbian Jessie OS. All basic hardware and software requirements are discussed earlier, and you can find it in the Raspberry Pi profile.
So here I assume you are familiar with Raspberry Pi and know how to access your raspberry pi via terminal software like putty. A lot of assumptions are correct? Yes, but these are basic things you can learn from our previous raspberry pi project.
We will gradually implement the Plex server on Raspberry Pi and take them seriously, this project is just like a charm.
Step-by-Step Process to set up a Raspberry Pi Plex server
Step 1: Install Raspbian
We will be running our Plex server on the Raspbian operating system. You can use NOOBS to install it, which is probably the easiest option. Just click the link for our method of operation.
Step 2: Update Raspbian
Let’s make sure we have the latest version of Raspbian. Open the command line (it’s the black and blue boxes on the taskbar) and type:
sudo apt-get update
sudo apt-get upgrade
Step 3: Check if the HTTPS transport package is installed
We will use the HTTPS transport package in this process. It should be installed automatically on Raspbian, but for some older versions this is not the case. Stay at the command line and enter:
sudo apt-get install apt-transport-https
This will install the latest version. If you already have it, you will only receive a message telling you to do so. Either way, you are now ready for the next step.
Step 4: Add the dev2day repository to your package source list
So after it we have to add the dev2day repository because it contains the plex. So before is first, we need a key for the dev2day site O key.
wget -O – https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add –
Next, we add the dev2day repository to the package source list.
echo “deb https://dev2day.de/pms/ jessie main” | sudo tee /etc/apt/sources.list.d/pms.list
Finally, update the package list.
sudo apt-get update
Step 5: Download Plex
Yes, we are finally at this stage!
sudo apt-get install -t jessie plexmediaserver
You must click “y” when prompted to approve the download.
Step 6: Permissions chores
Let’s set the plex to run under the Pi user.
sudo nano /etc/default/plexmediaserver.prev
Your terminal window will be populated with a large text file. Find the line that says PLEX_MEDIA_SERVER_USER = plex. Delete “plex” and type “pi” so that the line reads PLEX_MEDIA_SERVER_USER = pi.
Now press CTRL + X to exit. Type Y for “Yes” to save your changes, and then press Enter to retain the same old file name. Then enter in the terminal:
sudo service plexmediaserver restart
Step 7: IP address chores
You need your Raspberry Pi Plex server to have a static IP address so you only have to connect once on each client device. First, get your IP:
This will bounce your IP address. Copy or write down. Let’s open the txt file for your command line.
sudo nano /boot/cmdline.txt
At the bottom of the command-line text file, enter ip = followed by your IP address. Save and exit the file (CTRL + X, then Y, then enter).
Step 8: Restart your Pi
Let’s start again. You can do this from the command line using sudo reboot.
Step 9: Add files to your server
Now we have shown you how to set up the Raspberry Pi Plex server – but we did not show you how to put anything on it. We started to populate the server.
First, make sure your files are somehow connected to your Pi – for example via a USB external hard drive.
Then, open your browser and type in your IP address and enter: 32400 / web /
This will take you to the Plex web application. Log in (or create an account). Plex briefly tells you how things work, and then gives you the option to add a library. Continue: Choose the correct media type, navigate to your file, and choose the folder you want to add.
Step 10: Connect to your server from the client device
Plex also makes this part easy. Open a Plex application from a client device on the same network and Plex will test your server for you. If you have not used a web application to claim and populate your server, you will have access to the claim once it is discovered by your application.
This should work fine