Plex is a streaming media server that allows you to store and access the media content on your system from any device. Based on the client-server model, Plex turns an ordinary system into a full-fledged media server. All media files are stored in a single system with a Plex server installed. The server organizes the media from your collection and online services. You can then access the media on the server from any smartphone, smart TV, or streaming box. All you need is to have a Plex client installed on these devices. Then, you can connect to your Plex media server to access all the media content. You can install the Plex media server on Windows, Mac, Linux, and NAS OS.
This article will show you how to install and setup the Plex media server in Ubuntu 22.04 LTS. It is recommended to use the static IP on the server machine so that it will not get changed when the client tries to access it. For installation, you will require the sudo privileges.
Open the command-line Terminal application to install Plex. Use the Ctrl+Alt+T keyboard shortcut to open the Terminal.
This step involves installing the Plex media server in Ubuntu by downloading its deb package and installing it using the dpkg command.
Alternatively, use the following command in the Terminal to download the Plex media server into your system:
The Downloaded file is saved as “plexmediaserver_version-number_amd64.deb” where the version-number is the version of the Plex media server package that you downloaded. In our case, it is plexmediaserver_1.28.0.5999-97678ded3_amd64.deb.
In the given command, replace the version-number with the version of the Plex media server that you downloaded, which in our case, would be:
Wait for a while until the installation of the Plex media server in your system is completed.
The Plex media server is enabled automatically and starts running immediately after installation. However, in some cases, you will have to manually enable and run the Plex after installation. You can configure Plex with the following commands:
Start the Plex media server:
Verify the status of the Plex media server service:
If the service is running properly, you will see the status set as Active.
You can also enable the Plex media server on boot:
Plex media server uses a number of ports for different services. However, the most significant port that must be allowed through the firewall is the TCP port 32400 that Plex uses for communication. In this step, you configure the firewall in your system for the Plex media server.
Note: You can skip this step if the firewall is not enabled in your system.
Add the following lines to the file:
title=Plex (Standard)
description=Access to the Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp
[plex-dlna]
title=Plex(DLNA)
description= Access to the Plex DLNA Server
ports=1900/udp|32469/tcp
[plex-all]
title=Plex (Standard + DLNA)
description=Access to the Plex Media Server (with DLNA capability)
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp|1900/udp|32469/tcp
Save and exit the file.
We enabled the application profile “plex-all”. You can choose other profiles based on your preferences.
You will see the output similar to this that shows all the rules added successfully.
In this step, we will perform some basic configurations such as naming the server, creating and setting up the media libraries.
To access the Plex media server from the same system into which the Plex server is installed, open the following address in your browser:
To access the Plex media server web interface from another system on the local network, use the IP address of the Plex server instead of the localhost:
The Plex app is available for just about every platform including Windows, macOS, Android and iOS mobiles, Apple TV, Amazon Fire TV, smart TV, Roku, Chromecast, gaming consoles, and many others. The Plex client app allows you to access all your libraries and media files available on your Plex media server.
This step is required only if you want to update your Plex media server to the latest public release.
$ sudo apt install –only-upgrade plexmediaserver
If, for any reason, you want to uninstall/remove the Plex media server from your system, you can do it using the following command:
That is all there is to it! With Plex, you can store all your movies, shows, videos, and photos in one place and make them accessible from any device, anywhere. In this article, you learned how to install and set up the Plex media server in Ubuntu 22.04.
Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…
Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…
At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…
I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…
Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…
Now I want to share the DNS server installation process on your Ubuntu 20.04 server.…