◆Smart Home Ideas Journal

Effortlessly Install Plex Media Server on Ubuntu Server

By

Streamlining your media experience on Ubuntu Server involves setting up a robust media server, and Plex is a fantastic choice for this. Plex offers a user-friendly platform to organize, play, and share your media, making it a popular choice among Ubuntu users. This guide will walk you through the process of installing Plex Media Server on your Ubuntu Server, ensuring a seamless and optimized experience.

Before we dive into the installation process, it's crucial to understand that Ubuntu Server is a headless operating system, meaning it doesn't have a graphical user interface by default. Therefore, we'll be using the command line to install Plex. Don't worry, though; we'll guide you through each step, making the process as simple and straightforward as possible.

Setting Up Your Ubuntu Server for Plex

The first step is to ensure your Ubuntu Server is up-to-date. We'll start by updating the package list and upgrading the system.

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
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

Here's how you do it:

Updating Ubuntu Server

Open a terminal and run the following commands one by one:

How to Install Plex on Linux
How to Install Plex on Linux
How to Set Up a Plex Server on MacOS - Make Tech Easier
How to Set Up a Plex Server on MacOS - Make Tech Easier
How To Install Plex Media Server on CentOS 7
How To Install Plex Media Server on CentOS 7
  1. sudo apt update
  2. sudo apt upgrade

Installing Essential Packages

Plex requires some essential packages, so let's install them using the following command:

sudo apt install default-jdk libavcodec-dev libchromaprint0 libshout3

This command installs Java Development Kit (JDK), FFmpeg, Chromaprint, and Shout, which are necessary for Plex to run smoothly.

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
Starting a Plex Media Server - Everything you need to know
Starting a Plex Media Server - Everything you need to know
Manually update your Plex Media Server on Freenas - Quick & Simple
Manually update your Plex Media Server on Freenas - Quick & Simple
How to Turn Your Old Laptop Into a Plex Media Server
How to Turn Your Old Laptop Into a Plex Media Server
Getting Started With Plex Media Server on Raspberry Pi
Getting Started With Plex Media Server on Raspberry Pi
Running the Plex Media Server in a Docker Container
Running the Plex Media Server in a Docker Container

Installing Plex Media Server

Now that your system is ready, let's proceed with the Plex Media Server installation.

Here's a step-by-step guide:

Adding Plex apt Repository

Plex provides an apt repository that simplifies the installation process. Add it to your system using the following commands:

How to Install and Setup Plex on your Computer
How to Install and Setup Plex on your Computer
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
Plex Live TV & DVR: An Imperfect But Essential Tool for Cord Cutters
Plex Live TV & DVR: An Imperfect But Essential Tool for Cord Cutters
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
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
How to Turn Your Old Laptop Into a Plex Media Server
How to Turn Your Old Laptop Into a Plex Media Server
Guide to Building Your Own PLEX Media Server - Cheap and Easy
Guide to Building Your Own PLEX Media Server - Cheap and Easy
How-to: Setting up a Plex Environment - Engadget
How-to: Setting up a Plex Environment - Engadget
How To Build A 23TB Plex Server With Docker
How To Build A 23TB Plex Server With Docker
7 Hidden Plex Settings You Should Be Using
7 Hidden Plex Settings You Should Be Using
The 8 Best Media Server Software Options for Linux
The 8 Best Media Server Software Options for Linux
  1. wget https://downloads.plex.tv/plex-keys/PlexSign.key
  2. sudo apt-key add PlexSign.key
  3. echo "deb https://downloads.plex.tv/repo/deb/ public main" | sudo tee /etc/apt/sources.list.d/plexmedia-server.list

Updating Package List and Installing Plex

After adding the repository, update the package list and install Plex Media Server with these commands:

  1. sudo apt update
  2. sudo apt install plexmediaserver

The installation process might take a few moments, so be patient. Once it's complete, Plex Media Server will start automatically.

Accessing Plex Media Server

To access your newly installed Plex Media Server, you can use the following commands to get its local IP address and the URL:

  1. ip addr (This will display your IP address)
  2. printf "http://$(hostname -I | cut -d' ' -f1):32400/web.config/initialize/" (This will generate the Plex URL)

Open a web browser and navigate to the generated URL or http://:32400 to finish setting up Plex Media Server. Make sure to replace with your server's actual IP address.

Organizing and Enjoying Your Media

With Plex Media Server up and running, it's time to start organizing and enjoying your media files. Here's a quick rundown of how to get started:

Adding Media to Plex

Plex automatically scans your server for media files when it starts for the first time. You can add media to Plex by creating a folder structure that maps to your library. For example, a TV show's folder should follow this structure: /path/to/media/TV Shows/GOT (where 'GOT' is the show's title and 'TV Shows' is the library).

Streaming Your Media

To stream your media, you'll need to install the Plex client on your preferred device. You can download Plex clients for various platforms, including Windows, macOS, Linux, iOS, Android, and more. Once installed, sign in with your Plex account, and you'll be able to browse and stream your media library.

And there you have it! You've successfully installed and set up Plex Media Server on your Ubuntu Server. Now you can enjoy a seamless and organized media streaming experience. Happy streaming!