Skip to content

Instantly share code, notes, and snippets.

Embed
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 - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ 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
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
# where the mediaserver should store the transcodes
PLEX_MEDIA_SERVER_TMPDIR=/tmp
# uncomment to set it to something else
# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"
# 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
@NuroDev

This comment has been minimized.

Copy link
Owner Author

@NuroDev NuroDev commented Aug 7, 2017

WARNING:

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
@actraiser30

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

thanks

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.