Plex Media Server installation 24.04LTS: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
(Created page with "To enable the Plex Media Server repository on Ubuntu only a few terminal commands are required. From a terminal window run the following two commands: echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add - The Ubuntu & Debian repository is about to be changed. This change is per the requirements for Ubuntu 17 + 18. It adds the now-requi...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
To enable the Plex Media Server repository on Ubuntu only a few terminal commands are required. From a terminal window run the following two commands:
To enable the Plex Media Server repository on Ubuntu only a few terminal commands are required. From a terminal window run the following two commands:


echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
First we need to add some NVIDA packages for doing encoding / transcoding etc.
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -


ubuntu-drivers devices  (will tell you what version to use)
apt install nvidia-headless-5xx nvidia-utils-5xx libnvidia-encode-5xx ocl-icd-libopencl1


The Ubuntu & Debian repository is about to be changed.
You maybe asked to supply a secure password for secure boot driver enrolment
This change is per the requirements for Ubuntu 17 + 18.
Make something up, restart the machine and you will have to enter this password through a direct console - one time only.
It adds the now-required stanza to the package file to satisfy apt-get.
You can check the driver is loaded with


For those already using the old workaround (./public main)
nvidia-smi
Revert /etc/apt/sources.list.d/plexmediaserver.list from its current ./public main workaround to be the correct public main
Flush appropriate caches
Verify you are now operating error and warning free.
For those not using the repository
When you enable repository use, no changes are required. The package you install will be properly configured.


Plex DEB can be downloaded from the plex website plex.tv, and then installed with.


http://192.168.3.200:32400/web
dpkg -i plexmediaserver_1.40.1.8227-c0dd5a73e_amd64.deb
 
http://10.3.200.1:32400/web
 
You can also get apt to update plex automagically
 
nano /etc/apt/apt.conf.d/50unattended-upgrades
 
Add the repository to the bottom of this section
 
<pre>
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        // Extended Security Maintenance; doesn't necessarily exist for
        // every release and this system may not have it installed, but if
        // available, the policy for updates is such that unattended-upgrades
        // should also install from here by default.
        "${distro_id}ESMApps:${distro_codename}-apps-security";
        "${distro_id}ESM:${distro_codename}-infra-security";
//      "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
        "Artifactory:public";
};
</pre>

Latest revision as of 22:59, 19 March 2024

To enable the Plex Media Server repository on Ubuntu only a few terminal commands are required. From a terminal window run the following two commands:

First we need to add some NVIDA packages for doing encoding / transcoding etc.

ubuntu-drivers devices  (will tell you what version to use)
apt install nvidia-headless-5xx nvidia-utils-5xx libnvidia-encode-5xx ocl-icd-libopencl1

You maybe asked to supply a secure password for secure boot driver enrolment Make something up, restart the machine and you will have to enter this password through a direct console - one time only. You can check the driver is loaded with

nvidia-smi

Plex DEB can be downloaded from the plex website plex.tv, and then installed with.

dpkg -i plexmediaserver_1.40.1.8227-c0dd5a73e_amd64.deb

http://10.3.200.1:32400/web

You can also get apt to update plex automagically

nano /etc/apt/apt.conf.d/50unattended-upgrades

Add the repository to the bottom of this section

Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        // Extended Security Maintenance; doesn't necessarily exist for
        // every release and this system may not have it installed, but if
        // available, the policy for updates is such that unattended-upgrades
        // should also install from here by default.
        "${distro_id}ESMApps:${distro_codename}-apps-security";
        "${distro_id}ESM:${distro_codename}-infra-security";
//      "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
        "Artifactory:public";
};