Plex Install

In this post, we will see how can install our own Plex server instance on our Ubuntu (or any Debian based) system.
Plex allows us to have our own media library (movies, tv shows, music, images, videos) that we can access from any device in our local network or the outside world if we enable it.
The only thing that we will need, except for a linux server, is a free Plex account that we will see where you can create, later in the process.
Download Plex
- Open on a browser plex downloads page and choose your platform
- Choose distribution, and copy download link
- Download on server with wget:
Install with dpkg
Check status
If Plex server isn’t running start it manually:
Enable Plex Repository
See list of files from package:
Open this file:
Uncomment only the last line:
Import Plex public key to apt package manager:
Update software repository index:
Permissions & Ownership (on shared folders)
Samba Directory
Add plex user to Samba Users
Instead of creating a new user for Samba, add plex user to sambashare:
Creating Samba Users Home directory
Create the plex’s user home directory inside samba/
directory and set the directory ownership to user plex
and group sambashare
:
Add plex user to Samba Database
Add the plex
user account to the Samba database by setting a password. Once the password is set enable the Samba account:
Configuring Samba Shares
Open the Samba configuration file:
and append the section at the end of the file:
Restart Samba Services
Regular Directory
- Make sure the group owner is a group that the
plex
user is in. - Give permission with
setfacl
command.
Plex Media Server Initial Setup
- Open on a browser this link (replace the IP with your server’s IP):
http://192.168.1.99:32400/web
Now it is ready for the GUI setup on the browser:
- Sign in with your account (or create a new one if you don’t have one)
- Give a name to your server
- Select “Allow plex to access my media outside my home”
- Select “Add Library”
- After selecting the folders you want to share with plex
- Select “Next” and “Done”.
Further stuff
- Reverse Proxy
- HTTPS
- Upgrade