The mobile Plex Server powered by Pi! The best mobile media streaming solution for those long family road trips. Who cares if your kids have the capacity-starved 16GB hand-me-down phones and tablets from 2012 - this untethered setup allows you to broadcast your Plex Library from literally anywhere.
To wirelessly stream movies to devices while on the road, mitigating the need for high storage-capacity endpoints
Raspberry Pi 3 Model B
160GB 2.5” USB HDD
8000mAh Lithium Ion Battery
How to build it
- Get yourself a RaspberryPi unit. Here I’m using the rPi 3 Model B. I also got an enclosure that has a CPU fan - figured this would be handy during those hot summer road trips.
- Install Raspbian. Here I’m using Raspbian Stretch Lite (2017-11-29 build)
- Ensure the Pi is connected to the network via Ethernet for the next several steps
- Configure a static IP. For the Stretch build, you need to configure this using dhcpcd.conf, not /etc/network/interfaces as mentioned here
- Install Plex Media Server. These instructions are for an older Raspberry Pi build (Jessie) but it is still relevant for the Stretch build used in this post.
- Ensure you can connect to Plex using the static IP you configured, I.e., 192.168.x.x:32400/web/ Don’t mess with adding your Libraries - we’ll do that later
- Configure hostapd and dnsmasq. This is what allows you to have the Pi broadcast a wireless signal, authenticate your endpoints, and hand out DHCP addresses. The best option I’ve found for getting this done is this fantastic little script. As of this writing, the script states to use the 2017 August Stretch Pi image, but I can confirm it works great with my November Stretch build. Huge shoutout to GitHub user Lewiscowles1986.
- See the owner’s process for running the script in his github comment here
- After rebooting, UNplug your Ethernet cable and give the Pi another reboot - from a wireless device, ensure you see the SSID you configured using the script. Connect to it
- Once connected, launch the Plex Client app and ensure it connects to the media server.
- If you successfully connect to the server, all you need to do is load your external storage device with content, then add the Libraries to Plex (The Plex Install guide from above walks you through this). If at all possible, format your external drive to EXT4 for maximum compatibility with the Raspbian.
- Once the drive is loaded with content, plug the drive into the Pi
- Type sudo blkid and find your drive. Most likely, it will be /dev/sda1 or /dev/sda2
- Create a mount point for the drive: sudo mkdir /mnt/library
- Change permissions: sudo chmod 755 /mnt/library
- Mount the drive to your configured location: sudo mount -t ext4 /dev/sda1 /mnt/library
- Update fstab so the drive always mounts to this location: sudo vi /etc/fstab
- Add the following to the bottom of the file: /dev/sda1 /mnt/library ext4 defaults 0 0
At this point, you should have a fully functional Plex Media Server on your Raspberry Pi. Here are some additional tips:
- Remember your Pi must be unplugged from Ethernet in order for the Plex Media Server to function properly over your configured wlan0
- This setup allows you to take your PMS with you anywhere, but if you intend to use a portable battery source, ensure it puts out enough power. Pi Documentation recommends 2.5 Amps - the one pictured in this post is 2.4 and works just fine