
Plex Media Server is a self-hosted streaming solution that gives you the power to control what, when and how you wish to stream media content online. Similar to paid streaming services like Netflix, Plex allows you to access your data on any device with internet access.
In this guide, you will install Plex Media Server on a Ubuntu 20.04 Virtual Private Server (VPS).
Set up the Plex repository.
Install Plex Media Server.
You may receive the following prompts during the installation process; simply press enter (N) to proceed.
Verify that Plex is running.
Plex uses several ports to communicate and sync media on your server. Make sure you allow each of them on the firewall to avoid any run time errors.
Allow Plex TCP ports.
Allow Plex UDP Ports.
Check the current firewall table if the new rules are listed.
Then, restart the firewall for rules to take effect.
First, create directories to store your media files. For easy and safe access, use your current user home directory.
Create new Images, Music, Movies, and Series subdirectories under the main Media directory.
Grant the user plex ownership permissions to the directory.
Then, through a new SSH terminal session, tunnel your server traffic from port 32400 to a random port like 3000 on your localhost with the following command:
Now, visit your localhost address on port 3000 through a web browser.
If in any case, XML errors pop up in your browser, change the URL to http://localhost:3000/web/manage
Next, sign in with your Plex account, create one to proceed with a splash screen on how Plex works, and then continue setting up the media server.
Give your server a new name for easy identification. You will be prompted to add a new library, select the type, click Browse for Media Folder, and select the Media folder created earlier in your user home directory.
Click Add Library to save your directory, then repeat the process to add all Media directories. Once all is set, click Done to redirect to the main dashboard and sync all files in your server's Media directory.
Note that the first Plex Media Server configuration must be done from a localhost address; else, if you directly visit your server IP address on port 32400, you will not have the option to add Libraries. Alternatively, add a subdomain using Nginx to proxy traffic directly from localhost port 32400.
Using your favorite editor, create a new Nginx server block file.
Paste the following contents and replace plex.example.com with your actual subdomain.
Save the file.
Test the Nginx configuration
Restart Nginx
Congratulations, you have successfully installed Plex Media Server on a Ubuntu 20.04 server. Each time you download or add media content to the server, it will automatically sync to all devices where your Plex account is logged in. To increase your server space for movies and other media, consider attaching a Vultr block storage volume on the server.
0 Comments
Be the first to comment and share your perspective with the community.