Setting up your own media server can revolutionize how you access and enjoy your digital content. Plex Media Server stands out as a top-tier solution, offering a user-friendly interface and robust features to stream your movies, TV shows, music, and photos across all your devices. For users of Debian and Ubuntu-based Linux distributions, installing Plex Media Server from the APT (Advanced Package Tool) repository is a streamlined and efficient method. This guide will walk you through the process, ensuring a smooth setup and optimal performance.
Prerequisites
Before diving into the installation, ensure you have the following:
- A Debian or Ubuntu-based system: This guide is tailored for these distributions.
- Sudo privileges: You’ll need administrative rights to install software.
- Internet connectivity: To download packages from the Plex repository.
Step-by-Step Installation Guide
1. Add the Plex APT Repository
To install Plex Media Server using APT, you first need to add the official Plex repository to your system’s package sources. This allows APT to find and download the Plex Media Server package.
Open your terminal and execute the following command to add the Plex repository key to your system’s trusted keys:
wget -qO - https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
This command downloads the Plex signing key and adds it to your APT keyring. This step ensures that packages from the Plex repository are trusted and verified during installation.
Next, add the Plex repository itself to your APT sources list. Use the following command:
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
This command adds a new entry to your sources list, pointing APT to the Plex repository.
2. Update the Package List
After adding the new repository, it’s crucial to update your system’s package list. This synchronizes your system with the newly added repository, making Plex Media Server available for installation.
Run the following command in your terminal:
sudo apt update
This command fetches the package lists from all configured repositories, including the newly added Plex repository. You should see output indicating that packages are being retrieved and updated.
3. Install Plex Media Server
With the repository added and the package list updated, you can now install Plex Media Server using APT.
Execute the following command:
sudo apt install plexmediaserver
This command instructs APT to install the plexmediaserver
package. APT will download the necessary files from the Plex repository and install Plex Media Server on your system. During the installation process, you might be prompted to confirm the installation and disk space usage. Type Y
and press Enter to proceed.
4. Verify Installation and Service Status
Once the installation is complete, it’s essential to verify that Plex Media Server is installed correctly and the service is running.
To check the status of the Plex Media Server service, use the following command:
sudo systemctl status plexmediaserver
This command displays the status of the plexmediaserver
service. Look for active (running)
in the output to confirm that the service is up and running. If the service is not running, you can start it with:
sudo systemctl start plexmediaserver
To ensure Plex Media Server starts automatically on system boot, enable the service with:
sudo systemctl enable plexmediaserver
5. Initial Configuration
Plex Media Server is now installed and running. To complete the setup, you need to access the Plex web interface to configure your server and libraries.
Open your web browser and navigate to:
http://your_server_ip:32400/web
Replace your_server_ip
with the IP address of your server. If you are accessing it from the same machine, you can use http://localhost:32400/web
or http://127.0.0.1:32400/web
.
Follow the on-screen instructions to:
- Sign in or create a Plex account: This is necessary to manage your server and access it remotely.
- Claim your server: Associate your server with your Plex account.
- Set up your media libraries: Specify the folders where your movies, TV shows, music, and photos are stored.
Conclusion
Congratulations! You have successfully installed Plex Media Server from the APT repository on your Debian or Ubuntu system. By following these steps, you’ve set up a powerful media server that allows you to stream your personal media library to any Plex-enabled device, anywhere in the world. Enjoy seamless media streaming and take control of your digital entertainment with your newly installed Plex Media Server. Remember to keep your server updated for the latest features and security enhancements by regularly updating your system packages using sudo apt update && sudo apt upgrade
.