Plex Media Server on Raspberry Pi

What is Plex ?

An Introduction

Plex gives you one place to find and access all the media that matters to you. From personal media on your own server, to podcasts, web shows, and news, to streaming music, you can enjoy it all in one app, on any device.

And, it’s really simple to start using…

First, if you are streaming only third-party content (podcasts, web shows, TIDAL music), then you are good to go as soon as you have an account, just install an app on your phone, Smart TV, computer, or simply open up our web app on your browser!

If you are looking to set up your own personal media server to house your own stuff, there are a few more (simple!) steps to get up and running.

Preliminary Note

In this tutorial, I will use the IP address These settings might differ for you, so you have to replace them where appropriate.

Before proceeding further you need to have Raspberry Pi OS Lite / Desktop installed on your Raspberry Pi device. If you don’t already have this, you can use the Tutorial: Installing Raspberry Pi OS to install the Operating System.


  1. Raspberry Pi board
  2. Power supply
  3. Micro SD card
  4. Ethernet cord


Open your terminal and run these commands:

1 Update system.

sudo apt-get update
sudo apt-get upgrade -y

2 Enable HTTPS transfer during downloads.

sudo apt-get install apt-transport-https

3 Networking

Set static IP address for the Raspberry Pi.

sudo nano /etc/dhcpcd.conf

Navigate to the end of the text document and insert a new line the following:

interface eth0
static ip_address=
static routers=
static domain_name_servers=

Press ctrl + x, and then press y + enter to save.

Reboot with:

sudo reboot

4 Installing Plex

curl | sudo apt-key add -

Then, add the repository to the sources list:

echo deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Finally, confirm the changes by updating the package list:

sudo apt-get update

If you receive the error message “/usr/lib/apt/methodes/https could not be found,” it means the apt-transport-https package was not correctly installed. If this case, repeat the installation procedure.

sudo apt-get install plexmediaserver

If you see this message:

Configuration file ‘/etc/apt/sources.list.d/plexmediaserver.list’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.

Press N, keep your currently-installed version


To avoid authorization issues when configuring the Raspberry Pi Plex server, you need to exchange the default user profile with an administrator profile of your choice. To do this, use the default text editor nano to open the configuration file of the Plex Media Server. Here is the relevant command:

sudo nano /etc/default/plexmediaserver

Look for the entry “PLEX_MEDIA_SERVER_USER=plex” and replace “plex” (after the equals sign) with the username of the desired account.

Restart Plex Media Server.

sudo service plexmediaserver restart

Installation complete.

Add files to the Plex library

Next, create a new account or log in with either a Facebook or Google account. Once logged in, you can customize your Raspberry Pi Plex media server to suit your needs and prepare all your image, music, and video files for streaming over the network. To do this, click “Add Library” and specify the type of media and the directory in which the respective files are located.


Leave a Reply