How to create a Plex Server on Raspberry Pi 4

Plex is a great toolkit, a media server software that allows you to stream movies and TV shows directly to any Plex client. The Plex client can be a page in a browser on a computer, an app on a tablet or phone, an Android TV box or even an app on a Smart TV.

Either way, this server software is neat, flexible and fast, helping to keep your movie and program collection organized and accessible.

In this article, TipsMake.com will read the feasibility of creating and actually building an independent Plex server from Raspberry Pi 4 and a hard drive with readers.

How to create a Plex Server on Raspberry Pi 4 Picture 1
Create Plex Server on Raspberry Pi 4

Create a Pi Plex server

To build this server, you need the following:

  1. A Raspberry Pi 4 (preferably placed in a case with a heat sink or cooling fan)
  2. USB C power (preferably official power)
  3. SD card has sufficient capacity
  4. Ethernet cable or WiFi
How to create a Plex Server on Raspberry Pi 4 Picture 2
USB power C

First, install Raspbian on the card. Download the image here and burn it to the SD card with the appropriate software, such as the great multi-platform balenaEtcher.

Insert the SD card into the Pi as usual and launch it.

Prepare Pi

When you see a command prompt, enter it with the ID pi and password raspberry to log in to the Pi.

Now, you need to make sure that the Pi is fully updated. Type the following:

 sudo apt-get update sudo apt-get upgrade 

Then you should reboot.

How to create a Plex Server on Raspberry Pi 4 Picture 3
You should reboot

Now you need to download the correct repository containing Plex server for Raspberry Pi Linux. Enter the following command:

 sudo apt-get install apt-transport-https 

Before you can download a Plex repo, you must add the Plex GPG key or PlexSign.key directly to the repo with the following commands:

 curl https://downloads.plex.tv/plex-keys/PlexSign.key sudo apt-key add - 

Now the key has been added. You can download server software with the following commands:

 echo deb https://downloads.plex.tv/repo/deb public main sudo tee /etc/apt/sources.list.d/plexmediaserver.list 

Once that is done, you need to run the update command again to refresh Pi:

 sudo apt-get update 

Once that is done, you should be able to install server software on the Pi.

Install Plex server

The software installation itself is fairly easy. Just enter:

 sudo apt-get install plexmediaserver 

And if the repo is in place, the software will be installed easily and normally. Now, you need to make sure that the IP address on the network is still static. First, you do this by finding out what the current IP address is, then editing the cmdline.txt file .

Find your current IP address by typing:

 hostname -I 

In the example case, the IP address is 192.168.0.53.

Now open the file cmdline.txt and edit it. Open nano editor and file by typing:

 sudo nano /boot/cmdline.txt 

. and add the line:

 ip=IP CỦA BẠN 

. at the bottom of this file and save it with Ctrl + X (Enter Y at the prompt.)

Now type:

 reboot 

Pi will reboot. The setup is complete and the Pi can now run a headless Plex server (without the need for a monitor). Use Plex client or access by web browser to port 32400 as follows:

 192.168.0.53:32400/web/ 

Where the first part is your IP address.

If you succeed, the server will display as one of the options.

How to create a Plex Server on Raspberry Pi 4 Picture 4
The server will display as one of the options

Finally, you can add media files. Selecting the type of movie library or TV show will change the way files are organized in a database.

How to create a Plex Server on Raspberry Pi 4 Picture 5
Selecting the library type will change the way the database is organized
4.5 ★ | 6 Vote

May be interested

  • 5 game servers that can run on Raspberry Pi5 game servers that can run on Raspberry Pi
    how to set up a raspberry pi as a game server? all you need to do is make sure you have the appropriate ethernet cable, power adapter and game server software. here are 5 games that you can host on a raspberry pi game server.
  • How to install Plex media server on Ubuntu 19.04How to install Plex media server on Ubuntu 19.04
    are you looking for the easiest and easiest method to install plex media server on ubuntu 19.04? this is the snap command that will set up your plex server.
  • How to set up MiniDLNA on a Raspberry PiHow to set up MiniDLNA on a Raspberry Pi
    you can use any client that supports the dlna protocols to transfer media files from your raspberry pi. using minidlna could be a lightweight alternative to running software like plex on a raspberry pi.
  • 9 types of servers that can be hosted on Raspberry Pi9 types of servers that can be hosted on Raspberry Pi
    raspberry pi is a versatile tool. you can use it to light up leds, write work emails, stream movies to old tvs/monitors, or even host game servers.
  • How to turn Raspberry Pi into a personal cloud serverHow to turn Raspberry Pi into a personal cloud server
    in this tutorial, we will show you how to turn your raspberry pi into a personal cloud server. before proceeding, make sure you've booted up your pi, have a mouse and keyboard connected, and finally the raspbian operating system installed on it.
  • Create your own wireless printer with Raspberry PiCreate your own wireless printer with Raspberry Pi
    wireless technology is probably the best improvement for printing for years. fewer, more flexible cables about where you can put your printer, it's great (unless you have an old printer).
  • 8 Plex Plugins You Need to Have8 Plex Plugins You Need to Have
    while plex is great on its own, the real fun comes from customizing your experience with plugins, turning the platform into your personal streaming delorean.
  • Top 8 Plex best clients to stream mediaTop 8 Plex best clients to stream media
    plex identifies itself as the best software for managing media libraries, streaming content to different screens in your home and watching videos remotely when you're on the go.
  • How to set up Minecraft server on Raspberry PiHow to set up Minecraft server on Raspberry Pi
    want to play minecraft in your own way? you want to set up servers, build your own world and enjoy them together with friends and family? the good news is that you can do all this on raspberry pi.
  • How to change DNS server on Raspberry PiHow to change DNS server on Raspberry Pi
    the process of changing dns servers on raspberry pi is quite simple and involves modifying a single file.