Skip to content

Instantly share code, notes, and snippets.

@NuroDev
Last active February 9, 2020 16:56
Show Gist options
  • Save NuroDev/f9354dd91190b58daae7b05cf3ea56ce to your computer and use it in GitHub Desktop.
Save NuroDev/f9354dd91190b58daae7b05cf3ea56ce to your computer and use it in GitHub Desktop.
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
@actraiser30
Copy link

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