How to Install Plex Media Server on Ubuntu 22.04
Plex organizes your video, music, and photo collections and streams them to all of your devices.
Create your personal media hub on VPS-SERVER HOST.
Complete Installation Script
#!/bin/bash
# Plex Media Server Installer
apt-get update
apt-get install -y apt-transport-https curl
curl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | tee /usr/share/keyrings/plex-archive-keyring.gpg >/dev/null
echo deb [signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main | tee /etc/apt/sources.list.d/plexmediaserver.list
apt-get update
apt-get install -y plexmediaserver
systemctl enable --now plexmediaserver