This guide explains how to install Plex Media Server on a LumaDock VPS running Ubuntu 22.04. After installation, you will be able to access Plex through your browser, link your Plex account, and begin adding media libraries.
Requirements
You need a LumaDock VPS with Ubuntu 22.04, SSH access as root or a sudo user, and an active Plex account.
Step 1 – Update your VPS
ssh root@YOUR_VPS_IP apt update && apt upgrade -y
Add the official Plex repository
Installing from the Plex repository ensures you receive updates correctly.
Step 2 – Add the Plex repository
apt install curl wget apt-transport-https -y \
curl https://downloads.plex.tv/plex-keys/PlexSign.key \
| gpg --dearmor \
| tee /usr/share/keyrings/plex.gpg > /dev/null \
echo "deb [signed-by=/usr/share/keyrings/plex.gpg] https://downloads.plex.tv/repo/deb public main" \
| tee /etc/apt/sources.list.d/plexmediaserver.list \
apt update
Install Plex Media Server
Plex installs as a systemd service and starts automatically.
Step 3 – Install Plex
apt install plexmediaserver -y
Firewall adjustments (optional)
If you use UFW or the LumaDock Cloud Firewall, allow the default Plex port.
Step 4 – Allow Plex port
ufw allow 32400/tcp
Access the Plex web interface
Once Plex is running, you can open the dashboard and complete the setup.
Step 5 – Open Plex in your browser
http://YOUR_VPS_IP:32400/web
Log in with your Plex account and follow the on-screen steps to create libraries and organize your media.
Troubleshooting
If Plex is unreachable, verify that your firewall allows port 32400 and confirm that the service is running.
Service status and restart:
systemctl status plexmediaserver
systemctl restart plexmediaserver
Live logs:
journalctl -u plexmediaserver -f
Your Plex server should now be ready for streaming.
