Skip to content

Instantly share code, notes, and snippets.

@ECiurleo
Last active February 26, 2024 23:00
Show Gist options
  • Save ECiurleo/7541368dd6da391ce1ccda2890ac3cf0 to your computer and use it in GitHub Desktop.
Save ECiurleo/7541368dd6da391ce1ccda2890ac3cf0 to your computer and use it in GitHub Desktop.
Install Plex on Raspbian / Debian
# Update package lists
sudo apt-get update && \
# Install necessary packages for HTTPS transport
sudo apt-get install apt-transport-https && \
# Add the Plex Media Server signing key
curl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex-archive-keyring.gpg >/dev/null && \
# Add Plex repository to the system
echo deb [signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list && \
# Update package lists again with the new Plex repository
sudo apt-get update && \
# Install Plex Media Server
sudo apt install plexmediaserver && \
# Remove unnecessary packages
sudo apt autoremove && \
# Create directories for media
mkdir tv && \
mkdir audiobooks && \
mkdir movies && \
mkdir music
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment