Skip to content

Instantly share code, notes, and snippets.

@cetinajero
Last active November 15, 2024 23:52
Show Gist options
  • Save cetinajero/310294bed8199b0baf1b2099667b0bb3 to your computer and use it in GitHub Desktop.
Save cetinajero/310294bed8199b0baf1b2099667b0bb3 to your computer and use it in GitHub Desktop.
Usefull commands for Plex

Installation

Enable the package repository for CentOS

Create the file
sudo vi /etc/yum.repos.d/plex.repo
File contents
[PlexRepo]
name=PlexRepo
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1
Install the Plex media server package
sudo yum -y install plexmediaserver
Go to setup webpage

http://plex.grupopv.mx:4000/web

Completely uninstall Plex media server

sudo yum -y remove plexmediaserver
sudo rm -r /var/lib/plexmediaserver/

Configure NATed port for remote playing

Go to: http://fg.cuu.grupopv.mx:32500/

Account -> Server -> Settings -> Remote access

Update:

Manually specify public port = 32500

Monitoring last played items

cat /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.* | grep -iE "Using.local.file|got.skipped.for|MDE:|Content-Length.of.\/home\/plex|Play.progress.on" | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment