4 Homelab Plex
Drew edited this page 2026-05-01 21:02:06 -04:00

Plex

Step-by-step instructions for installing Plex Media Server on a headless Debian system.


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 GPG key

Download the Plex GPG key into the modern keyring location (apt-key is deprecated):

curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plex-archive-keyring.gpg

3. Add Plex repository

Add the Plex repository, signed by the keyring above:

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

4. Update package list

Update your package list to include Plex:

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.