Prerequisites
- A machine running Debian 12 with GUI mode
- A user account with sudo privileges
- Internet access for downloading packages
Step 1: Update Your System
Before installing any new software, it’s always a good practice to update your system’s package index. Open a terminal and execute the following command:
sudo apt update && sudo apt upgrade -y
Step 2: Install Required Dependencies
Next, install the necessary dependencies for Plex Media Server:
sudo apt install curl gnupg2 -y
Step 3: Add Plex Repository
To ensure you’re installing the latest version of Plex, add the official Plex repository to your system:
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
Then, add the Plex GPG key:
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
Step 4: Install Plex Media Server
Update your package index again and install Plex Media Server:
sudo apt update
sudo apt install plexmediaserver -y
Step 5: Enable and Start Plex Service
Once installed, enable Plex to start on boot and then start the service:
sudo systemctl enable plexmediaserver
sudo systemctl start plexmediaserver
Step 6: Configure Plex Media Server
Access the Plex web interface by navigating to
http://localhost:32400/web
from a browser on GUI console using your preferred web browser. From there, you can create your Plex account or sign in, and follow the on-screen instructions to configure your media library.