Skip to content

๐Ÿ“บ Plexยถ

๐Ÿ“– Introductionยถ

This guide assumes you are starting with a headless Debian server. It provides step-by-step instructions for installing Plex Media Server, including optional enhancements and handling repository keys.

๐Ÿ› ๏ธ Installation Stepsยถ

1. Install Required Packagesยถ

First, install the necessary packages for adding repositories and handling keys:

sudo apt install apt-transport-https curl wget sudo gnupg2 -y

2. Add Plex Repositoryยถ

Add the Plex Media Server repository to your system:

echo "deb https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

3. Add Plex GPG Keyยถ

Download and add the Plex GPG key for package verification:

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

4. Update Package Listยถ

Update your package list to include Plex:

sudo apt update

Note: You might encounter an apt-key deprecation warning during the update. To resolve this, copy the trusted keys:

cd /etc/apt
sudo cp trusted.gpg trusted.gpg.d

After copying the keys, run the update again:

sudo apt update

5. Install Plex Media Serverยถ

Now, install Plex Media Server:

sudo apt install plexmediaserver

6. Access Plex Media Serverยถ

Find your serverโ€™s IP address with:

ip -f inet address | grep inet | grep -v 'lo$' | cut -d ' ' -f 6,13 && curl ifconfig.me && echo ' external ip'"

Then, access the Plex web interface by navigating to:

http://myinternal_ip:32400/web

Replace myinternal_ip with the actual IP address of your server.