Linux Installation
Installing Plex on Linux
Section titled “Installing Plex on Linux”Package Installation
Section titled “Package Installation”Using APT Repository
Section titled “Using APT Repository”# Add Plex repositorycurl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plex-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
# Installsudo apt updatesudo apt install plexmediaserverDirect Download
Section titled “Direct Download”# Download latestwget https://downloads.plex.tv/plex-media-server-new/VERSION/debian/plexmediaserver_VERSION_amd64.deb
# Installsudo dpkg -i plexmediaserver_*.debsudo apt -f install# Add repositorysudo tee /etc/yum.repos.d/plex.repo << EOF[PlexRepo]name=PlexRepobaseurl=https://downloads.plex.tv/repo/rpm/\$basearch/enabled=1gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.keygpgcheck=1EOF
# Installsudo dnf install plexmediaserver# From AURyay -S plex-media-server
# Or using paruparu -S plex-media-serverEnable and Start Service
Section titled “Enable and Start Service”# Enable on bootsudo systemctl enable plexmediaserver
# Start servicesudo systemctl start plexmediaserver
# Check statussudo systemctl status plexmediaserverAccess Web Interface
Section titled “Access Web Interface”Open http://localhost:32400/web in your browser.
Set Permissions
Section titled “Set Permissions”# Add plex user to media groupsudo usermod -aG media plex
# Set media folder permissionssudo chown -R plex:plex /path/to/media# Or use group permissionssudo chmod -R g+rw /path/to/mediaFirewall Configuration
Section titled “Firewall Configuration”UFW (Ubuntu)
Section titled “UFW (Ubuntu)”sudo ufw allow 32400/tcpsudo ufw allow 32410:32414/udpfirewalld (Fedora)
Section titled “firewalld (Fedora)”sudo firewall-cmd --permanent --add-port=32400/tcpsudo firewall-cmd --permanent --add-port=32410-32414/udpsudo firewall-cmd --reload