banner



Raspberry Pi 4 Plex Media Server

In this tutorial, I get through all the steps to getting your very own Raspberry Pi plex server upward and running.

Raspberry Pi Plex Server

This projection is perfect for anyone who wants to have a media server that tin can be accessed by anyone inside a household. You can besides set it upwards to be accessed exterior your local network.

Plex is a client-server setup where the customer straight streams information from the Plex media server. This setup means you can have all your movies, music, and photos located on the ane device, the server. In this case, we will be using the Raspberry Pi.

You can then have multiple clients connect to the aforementioned server. It is great every bit y'all don't need to have multiple copies of the same media across several devices.

The Plex client is supported on a ton of devices including Windows, Apple, Android, Amazon Burn down Idiot box, Chromecast, Xbox, PlayStation, Linux, and then much more. It really is a fantastic dwelling house media solution.

If yous just desire a single customer without the whole server setup, then something like the Raspberry Pi Kodi media center might interest yous more.

If you are afterwards an alternative completely gratuitous media server, you tin too cheque out Jellyfin .

Equipment

You will demand the following equipment to be able to complete this Raspberry Pi Plex server tutorial.

Recommended

Optional

  • Raspberry Pi Case
  • USB Keyboard
  • USB Mouse
  • External Hard drive or USB Bulldoze (For storing movies, music & photos)

Annotation: This will not work at all on older versions of the Pi. A Raspberry Pi 2 or later volition piece of work.

Video

In this video project nosotros will be walking you through the steps of installing the Plex Media Server to your Raspberry Pi.

Exist sure to also bank check out the written version of our Plex guide beneath.

Adblock blocking the video? Support the states by subscribing to our ad-free service.

Setting up the Raspberry Pi Plex Server

In this tutorial, I will be using Raspbian so if you oasis't got it installed then check out my guide on how to setup Raspbian here.

If you want to run a slim version of Raspbian, and so you should take a look at installing Raspbian Calorie-free.

Preparing your Pi for Plex

one. Now before nosotros install the Plex Media Server software to the Raspberry Pi, we need start to ensure our operating system is entirely up to date by running the following 2 commands.

              

two. To install the Plex packages to the Raspberry Pi, we will need to add the official Plex parcel repository.

Before we practice that nosotros need to install the "apt-ship-https" package.

This parcel allows the "apt" package manager to recollect packages over the "https" protocol that the Plex repository uses.

Install the package by running the control below.

              

3. Let's now add the Plex repositories to the "apt" keyrings directory.

This primal is used to ensure the files that you are downloading are in fact from that repository and signed by that key.

Run the following control to download and save the fundamental to our keyrings directory.

              

4. With the Plex GPG key now added, we tin can finally add the official plex repository to the sources listing by running the post-obit command.

              

In the line nosotros are calculation, y'all can come across that nosotros refer to the keyring nosotros downloaded in the previous step.

5. As nosotros have simply added a new repository to our sources, nosotros will need to run the "update" control again to refresh the package list.

              

If you get the error "/usr/lib/apt/methods/https could not be constitute." Then the https transport bundle hasn't been installed. Double bank check that information technology has been installed correctly.

Installing Plex to your Raspberry Pi

1. Now that nosotros take fix our Raspberry Pi and so that it can read from Plex's official package repositories we tin can go ahead and finally install the Plex Media server bundle to the Pi.

To install the "plexmediaserver" parcel, run the control beneath.

              

ii. The installation process for Plex sets up a few unlike things for us.

The first is that it creates a user and group for Plex to run under. This user and group is chosen "plex".

Information technology too will set up 2 directories, one where to store files temporarily that Plex is transcoding. You tin detect this binder at "/var/lib/plexmediaserver/tmp_transcoding".

The second directory is where Plex volition store all the metadata it retrieves for your media. This folder can be found at "/var/lib/plexmediaserver/Library/Application Back up"

3. As Plex is running a unlike user to the Raspberry Pi's default "pi" user, you lot will need to make sure you have permissions prepare correctly on your drive.

If you need help setting upward your external drive with Plex, y'all tin try following our guide on mounting a USB drive on Raspbian.

Setting a Static IP Address for your Plex Server

1. Now that nosotros have installed Plex to our Raspberry Pi nosotros should brand certain that we are using a static IP address.

There are two reasons to utilize a static IP. One is that the IP will be easier to remember. Second is that information technology will make sure your Plex server can always be found at the same accost.

To get your current IP address, enter the following control.

              

ii. Now open up the cmdline.txt file.

              

three. At the lesser of this file, add together the post-obit line: (Replacing "YOUR IP" with the IP you got from using hostname -I)

              

4. Once done, exit by pressing CTRL + 10 and then Y to save.

5. Now simply restart the Pi by running the post-obit command.

              

half-dozen. The Pi should at present ever offset with the aforementioned IP. You tin also set this on near routers past tying the mac address of your network device (WiFi or Ethernet) to an IP.

Now the Raspberry Pi Plex media server should be all ready upwardly and ready to scan your media and stream it whatever customer that wishes to connect. I volition go through some basics of setting everything upward beneath.

Storing Media on the Raspberry Pi

Now in that location are several ways to store your media on the Raspberry Pi. I will mention each of the methods beneath.

You tin can hook up an external hard bulldoze with all your music, movies and whatever else you may take. Setting the Plex program to run as the Pi user ways y'all tin can plug a USB difficult drive in and access the media in Plex without whatever bug.

You're also able to mount drives permanently; I have already covered this in a previous tutorial, so exist sure to check out my guide on how to mountain a USB hard drive to the Raspberry Pi. Make sure you fix the user & grouping possessor of the drive to Pi.

Some other option is to set your Pi upwards equally a NAS. This will allow yous to transfer your media across to it without needing to disconnect and reconnect a hard drive.

You tin set this all up by following my tutorial on setting up a Raspberry Pi network attached storage.

Lastly, you can use the SD card for storage, but as you could imagine, this will speedily run out of space. You can prepare a folder on the SD card to be accessed via the network.

Connecting Clients to The Plex Media Server on the Raspberry Pi

If you're using an app on your telephone, computer, Xbox, PlayStation, or any other device, then the Plex customer should be able to pick upwards on the server automatically.

Yous will, unfortunately, find the official mobile Plex applications are behind a paywall. For example, y'all will demand to pay coin to get full access to all the features. However, all other apps, including the web app, should exist costless with only a pocket-sized set of features requiring a subscription.

To connect to the browser, enter the IP followed by the port 32400 and /spider web/. For example, mine is.

              

You volition exist prompted to log in, just sign upwardly or sign in to an existing plex account. Y'all tin skip this by merely entering by entering the address above again.

Side by side, you will need to set up your music, moving picture, and TV show libraries. This process is incredibly piece of cake and shouldn't be too hard in getting information technology set up correctly.

Add Library

1. First select add library in the left-paw side cavalcade.

2. Adjacent, select the type of media that is in the folder. If you have more than than one type, and so yous will need to add a new library for each type of media.

Media Type

3. Next, you volition need to select the folder that has all your media in it.

For example, mine is on a USB drive that is displayed in the left-mitt side column or can exist institute at /media/pi/ESD-USB

Add Folder


4. Once you lot add the library, information technology will now organize your clips in a nice piece of cake to scan interface.

If you need more information on how to setup, name and organize your media library, and then Plex has an astonishing corporeality of documentation on naming and arrangement.

Fixing File Permission Errors with Plex

One of the most common bug you may encounter with Plex on your Raspberry Pi is with it being unable to access your files. The most common cause of this issue is wrong permissions.

This department will show you how to alter the permissions for an ext4 bulldoze.

If you are running an NTFS or FAT formatted drive, you will need to endeavour remounting your disk bulldoze and adjusting its mounting options. The reason for this is that the NTFS and Fatty filesystems exercise not support the Linux permission system.

i. To begin, work out the location of the drive or binder that y'all want to adjust the permissions for.

For example we have an ext4 drive mounted to our Raspberry Pi at the location /mnt/pimounteddisk/.

2. As the adjacent two commands demand to be executed as the superuser, let'due south change to it by running the following command.

              

three. With the path to your drive or binder in hand, nosotros are going to make utilize of the following two commands.

Make sure that when yous run these that you supersede [YOURDRIVEPATH], with the path you desire to adjust permissions on.

              

The second command finds all directories and assigns the possessor "read", "write" and "execute" privileges and gives all other uses "read" and "execute" privileges.

The tertiary command is used to find all files and will assign the owner "read" and "write" privileges, and all other users will go the "read" permission.

4. One time those commands have finished running, we can go alee and exit out of the superuser style.

              

v. You should at present be able to interact with your media files from inside Plex successfully.

Hopefully, at this stage, you will now have Plex up and running on your Raspberry Pi without whatever bug.

If you come up across any issues or have some feedback, then please don't hesitate to leave a comment below.

Source: https://pimylifeup.com/raspberry-pi-plex-server/

Posted by: morristhadell.blogspot.com

0 Response to "Raspberry Pi 4 Plex Media Server"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel