Introduction
Plex Media Server has become one of the most popular solutions for organizing, streaming, and enjoying multimedia collections at home. When running on Linux, it leverages the stability, security, and flexibility of the operating system, offering solid performance even on modest hardware. This guide is intended for users who already have basic Linux knowledge and wish to delve into the installation, configuration, and optimization of Plex on distributions such as Ubuntu, Debian, Fedora, or Arch.
Prerequisites
Before you begin, make sure you meet the following requirements:
- A recent Linux distribution (Ubuntu 22.04 LTS, Debian 12, Fedora 39, or Arch Linux).
- Access to an account with sudo privileges.
- A stable internet connection for downloading packages and updates.
- At least 2 GB of RAM and a quad-core processor for smooth transcoding (although Plex can run with fewer resources if transcoding is avoided).
- Sufficient storage space for your media library; it is recommended to use an external hard drive or a NAS unit mounted via NFS/SMB.
Step-by-step Installation
The process varies slightly depending on the distribution, but the general steps are the same.
On Ubuntu and Debian
- Update the package index:
sudo apt update - Install necessary dependencies:
sudo apt install apt-transport-https ca-certificates - Add the official Plex repository:
curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
echo "deb https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plex.list - Update again and install Plex Media Server:
sudo apt update && sudo apt install plexmediaserver - Start and enable the service:
sudo systemctl enable --now plexmediaserver
On Fedora
- Install the
dnf-plugins-corepackage:sudo dnf install dnf-plugins-core - Add the Plex repository:
sudo dnf config-manager --add-repo https://downloads.plex.tv/repo/rpm/$basearch/ - Install the server:
sudo d