Want to stream video hosted on your Raspberry Pi to various devices in your home? There are several options available (including Kodi), but for the best results, a dedicated Plex install is recommended. In fact, the Raspberry Pi is one of the best devices to use as a Plex media server.
Here’s how to install a Plex server on your Raspberry Pi, set it up, and start streaming your favorite movies, TV shows, music, family photos, and other media.
What is a plex?
In case you don’t know, Plex is an app that lets you stream media anywhere, on almost any device. Installed separately, it can be used to play video, music and image files stored on a local (or network) drive.
Meanwhile, if set as a server, the secondary device can then access the same content remotely, as long as the Plex app is installed. The application adapts to changing scenarios; it can also act as a server, or it can be your Plex client.
Our Guide to Plex shows how cool it is. It’s worth noting that Plex in server form has been available for the Raspberry Pi since 2017. Prior to this, the Pi was only suitable for running Plex client applications.
What You Need for a Raspberry Pi Plex Server
To install a Plex server on your Raspberry Pi, you will need:
- Raspberry Pi 3 or later
- microSD card (8 GB or more)
- External HDD or USB flash drive with media files
- USB keyboard and mouse
Naturally, you will also need a TV with a competent sound system connected. You can use these additional features:
- Ethernet cable for more reliable router connection
- Wireless / Bluetooth keyboard and mouse
While it is possible to set up a Raspberry Pi via an SSH connection you’ll need a device to directly control Plex once it’s up and running.
Step 1: Install and update Raspbian
You are probably already running Raspbian on your Raspberry Pi. Other versions of Linux for the Raspberry Pi should work, but this guide was prepared using a fresh install of Raspbian Stretch.
Need help installing an operating system on your Raspberry Pi? Beginners should probably start with NOOBS, but if you’re computer savvy, the standard Raspberry Pi setup guide should help you out.
Once installed, boot up your Pi and type in Terminal:
sudo apt update sudo apt upgrade
This ensures that your version of Raspbian is fully up to date.
Step 2: Install dev2day and download Plex
To install Plex, you need to add a new repository. You will also need a GPG key to download it. Let’s deal with this first:
wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add -
Then edit the list of packages from the terminal using the echo and tee commands:
echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list
Retry the package update:
sudo apt update
Plex is now ready to install. usage
sudo apt install -t stretch plexmediaserver
Follow the on-screen instructions to complete the download and installation. In a few minutes, your Raspberry Pi should have a Plex server installed.