◆Smart Home Ideas Journal

Plex Media Server Setup on Linux

By

Setting up a Plex Media Server on Linux allows you to stream and manage your media collection from a central location, providing access to your favorite movies, TV shows, and music across various devices. This guide will walk you through the process, ensuring an optimized and secure setup for your Linux Plex Media Server.

Before we begin, ensure you have a Linux distribution (like Ubuntu, CentOS, or Fedora) installed on your server or computer. A 64-bit architecture is recommended, as Plex supports only 64-bit systems. Also, make sure your system meets the minimum requirements for running a Plex Media Server.

Installing Plex Media Server

To install Plex on your Linux system, you first need to add the Plex repository to your package manager's sources list. For Ubuntu/Debian based systems, use the following commands in your terminal:

How to Install Plex Media Server on Linux: A Tutorial for Newbie
How to Install Plex Media Server on Linux: A Tutorial for Newbie
PLEX Media Server | Complete Setup on Linux
PLEX Media Server | Complete Setup on Linux
a flat screen tv sitting on top of a white table next to a lamp and chair
a flat screen tv sitting on top of a white table next to a lamp and chair

sudo apt update sudo apt install software-properties-common

Now, add the Plex repository and install Plex Media Server:

How To Set-Up Plex PVR?
How To Set-Up Plex PVR?
Raspberry Pi Plex Server - Make:
Raspberry Pi Plex Server - Make:
Manually update your Plex Media Server on Freenas - Quick & Simple
Manually update your Plex Media Server on Freenas - Quick & Simple

sudo add-apt-repository "deb https://downloads.plex.tv/repo/debian stable main" wget -q -O - "https://downloads.plex.tv/repo/debian/public.key" | sudo apt-key add - sudo apt update sudo apt install plexmediaserver

Autostarting Plex Media Server on Linux

To ensure that your Plex Media Server starts automatically after a reboot, use the following command to enable it:

sudo systemctl enable plexmediaserver

How to Set Up a Plex Server on MacOS - Make Tech Easier
How to Set Up a Plex Server on MacOS - Make Tech Easier
Starting a Plex Media Server - Everything you need to know
Starting a Plex Media Server - Everything you need to know
These Are the 8 Plex Plugins I Can't Live Without
These Are the 8 Plex Plugins I Can't Live Without
Running the Plex Media Server in a Docker Container
Running the Plex Media Server in a Docker Container
How To: Building a Media Server with Plex
How To: Building a Media Server with Plex
7 Hidden Plex Settings You Should Be Using
7 Hidden Plex Settings You Should Be Using

You can verify that Plex is running with:

sudo systemctl status plexmediaserver

Accessing and Configuring your Plex Media Server

After a successful installation, open your web browser and navigate to http://localhost:33400/web to access the Plex web app and configure your new server. Here, you can sign in using an existing Plex account or create a new one. After signing in, you'll be guided through the initial setup process.

How to Setup a Raspberry Pi Plex Server
How to Setup a Raspberry Pi Plex Server
I ditched my Plex subscription for this self-hosted media server and never looked back
I ditched my Plex subscription for this self-hosted media server and never looked back
the plex app on an iphone with movies and other things to watch in it
the plex app on an iphone with movies and other things to watch in it
a book with the title plex a manual for your media, with style
a book with the title plex a manual for your media, with style
I ditched my Plex subscription for this self-hosted media server and never looked back
I ditched my Plex subscription for this self-hosted media server and never looked back
The 8 Best Media Server Software Options for Linux
The 8 Best Media Server Software Options for Linux
How To Setup A Headless Media Server Using Ubuntu 14.04 and Plex Software | Chubbable Blog Site
How To Setup A Headless Media Server Using Ubuntu 14.04 and Plex Software | Chubbable Blog Site
How To Build A 23TB Plex Server With Docker
How To Build A 23TB Plex Server With Docker
I Wish I'd Known These 5 Tips Before I Started Using Plex
I Wish I'd Known These 5 Tips Before I Started Using Plex
Tutorial: Mediencenter Plex auf Low-Cost-Hardware
Tutorial: Mediencenter Plex auf Low-Cost-Hardware
TrueNAS Core 12 Plex Setup & ACL Permission Tutorial on a 144 TB Server
TrueNAS Core 12 Plex Setup & ACL Permission Tutorial on a 144 TB Server
How to Sideload Plex Plugins
How to Sideload Plex Plugins

Once set up, you can manage your media libraries, set up users, and configure your server's settings. For a more detailed configuration, refer to the official Plex Media Server documentation.

Organizing your Media Library

Plex organizes your media collection based on metadata, such as movie and TV show titles, cast, and crew. To ensure your library appears correctly, place your media files in the following structure:

/path/to/your.media.library/Movies/[movie title]-[year].mkv /path/to/your.media.library/TV Shows/[TV Show Title]/ Season [season number]/Episode [episode number]-[episode title].mkv

Once organized, manually refresh your Plex Media Server libraries to update the changes:

  • Open the Plex web app.
  • Select "Settings" (gear icon) on the left sidebar.
  • Click "Refresh" next to the library you want to update.

Managing User Access and Permissions

Leveraging Plex's user management features allows you to control access to your media collection. Share your content privately with friends and family or create a public server for open access:

  • In the Plex web app, select "Settings" (gear icon).
  • Choose "Users" from the left sidebar.
  • Click "Create new user" to add new users or modify existing ones.
  • Configure the user's access level, libraries they can access, and other settings.

For more information on user management, see the Plex user management guide.

Optimizing Plex Media Server Performance

To ensure optimal performance, consider the following tips for your Linux Plex Media Server:

  • Hardware Transcoding: If your server has sufficient resources (CPU, RAM, and GPU), hardware transcoding can offload video conversion tasks, improving performance.
  • Disable Unused Plugins: Disabling unused plugins in the Plex web app can help improve server performance.
  • Tune System settings: Adjust system settings like swap space and system resource allocation to better suit your server's needs.

For further assistance, refer to the Plex troubleshooting guide for performance issues.

Setting up a Plex Media Server on Linux provides a robust and secure media streaming solution. With proper organization, access control, and performance optimization, you'll enjoy a seamless and captivating entertainment experience. Now that your server's up and running, explore the countless possibilities of Plex, from sharing your media collection with friends to discovering new content with Plex's integration with various online services.