Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to download and install Plex Media Server for Raspberry Pi
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install apt-transport-https -y && wget -O - | sudo apt-key add - && echo "deb jessie main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install -t jessie plexmediaserver && sudo rm -rf /etc/default/plexmediaserver && echo
# default script for Plex Media Server
# the number of plugins that can run at the same time
# where the mediaserver should store the transcodes
# uncomment to set it to something else
# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library
PLEX_MEDIA_SERVER_USER=pi | sudo tee -a /etc/default/plexmediaserver && sudo service plexmediaserver restart

This comment has been minimized.

Copy link
Owner Author

@NuroDev NuroDev commented Aug 7, 2017


This script has only been tested on Raspberry Pi 2 & 3. 1st generation & Pi Zero is yet to be tested.
Please use the latest version of Raspbian available. Download Raspbian here.

After running the script you need to set a static IP address. This can be done by getting your current IP address using:

hostname -I

Then type:

sudo nano /boot/cmdline.txt

And at the end of the file, add ip=YOUR_IP_HERE followed by the your current IP address.
Once finished, reboot your Pi using:

sudo reboot

This comment has been minimized.

Copy link

@actraiser30 actraiser30 commented Dec 21, 2019

Hello great script can you update it for raspbian stretch or raspbian buster,the current version is for raspbian jessie


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.