Introduction
Plex Media Server has become one of the most popular solutions to organize, transmit and enjoy multimedia collections in the home. When running on Linux, it takes advantage of the stability, security and flexibility of the operating system, offering a solid performance even on modest hardware. This guide is designed for users who already have basic Linux knowledge and want to deepen the installation, configuration and optimization of Plx in distributions such as Ubuntu, Debian, Fedora or Arch.
Previous requirements
Before you start, 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.
- Stable Internet connection to download packages and updates.
- At least 2 GB of RAM and a four-core processor for fluid transcoding (although Plx can work with less resources if transcoding is avoided).
- Sufficient storage space for your multimedia library; it is recommended to use an external hard drive or NAS drive mounted via NFS / SMB.
Step-by-step installation
The process varies slightly according to distribution, but the general steps are the same.
In Ubuntu and Debian
- Update the package index:
sudo apt update - Install necessary units:
sudo apt install apt-transport-https ca-certificates - Add the official repository of Plex:
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 - Reupdate and install Plex Media Server:
sudo apt update && sudo apt install plexmediaserver - Start and enable the service:
sudo systemctl enable --now plexmediaserver
In Fedora
- Install the package
dnf-plugins-core: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 dnf install plexmediaserver - Enable and start the service:
sudo systemctl enable --now plexmediaserver
In Arch Linux
- Install from the AUR using a helper as
yay:yay -S plex-media-server - Start the service:
sudo systemctl enable --now plexmediaserver
After installation, open a browser and direct tohttp://localhost:32400/webto complete the initial configuration wizard.
Initial configuration
During the assistant, you should:
- Create a Plx account or log in with an existing one.
- Name your server (e.g., «Media»).
- Add content libraries: click «Add Library», select the type (Movies, Series, Music, Photos) and indicate the route where your files are stored.
- Adjust the remote access options if you want to play content off your local network.
It is recommended to use absolute routes and mount external units by/etc/fstabso that they are available as long as the system starts.
Performance optimization
For the best performance, consider the following settings:
- Hardware transcoding:If your CPU has integrated GPU (Intel Quick Sync, AMD VCE) or a NVIDIA card, install the corresponding drivers and enable hardware transcoding in
Ajustes > Transcodificador. This significantly reduces the CPU load. - bandwidth limits:In the same section, it sets a reasonable limit for the bandwidth of the lift if you are to transmit out of the house, avoiding saturation of your connection.
- SQLite database:Plx stores metadata in a database located in
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/. Periodically, it runssudo -u plex vacuumdbto optimize it. - Resource monitoring:Use tools like
htop,iotopandnetstatto detect bottlenecks. If the use of disk is high, consider moving the library to an SSD. - Automatic updates:Configure an attended-upgrades or a cron to review the lex repository weekly to keep the server up to date.
Common problem solution
Some frequent inconvenience and resolution:
- The server does not start:Check the log with
journalctl -u plexmediaserver -f. The most common errors are wrong permissions in media folders; make sure the userplexread and execute. - Transcoding fails:Check that the necessary codecs are installed (packages)
ffmpeg,libva-utils,nvidia-driveraccording to your hardware). In the case of GPUS NVIDIA, installnvidia-driverand the packageplexmediaserver-ffmpegif available. - Remote access does not work:Confirm that the 32400 port is open in your router and that the UPnP service or port forwarding is set up correctly. You can also use an SSH tunnel to test connectivity.
- Metadata are not updated:Make sure that the scraping agent is configured correctly and that the connection to the services of TheMovieDB, TVDB or MusicBrainz is not blocked by a firewall.
Conclusion
Install Plx Media Server in Linux provides a powerful, customizable and efficient platform to manage your multimedia content. Following the installation steps, adjusting the configuration to take advantage of hardware transcoding and monitoring the system's resources, you can enjoy a fluent transmission experience on and off your local network. Remember to keep the system and server up to date, and make regular backup of the Plx database to avoid metadata losses. With this knowledge, you are ready to turn your Linux machine into the ultimate entertainment center.


