This article will show you how to install Plex WebTools, a plugin for Plex. Plex WebTools is a collection of utilities to help with the management of your Plex Media Server.
You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).
To install Plex WebTools, log in via SSH then copy and paste the following commands:
wget -q https://github.com/ukdtom/WebTools.bundle/releases/download/3.0.0/WebTools.bundle.zip unzip -q WebTools.bundle.zip -d ~/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/
Configuring Plex WebTools
The WebTools plugin runs on 33400 alongside Plex (which runs on 32400). To allow multiple users to use them, they need to be forwarded from your user namespace to an accessible port via web browser. It sounds more complicated than it is in reality - you can configure things by doing the following:
echo 33400 > ~/.config/feral/ns/forwarding/tcp/port pkill -9 -fu "$(whoami)" 'plexmediaserver' && pkill -9 -fu "$(whoami)" 'EAE Service'
Obviously, change port in the command above to a port number! There is no particular port number you need to pick - you can generate a random one with this command:
echo $(shuf -i 10001-32001 -n 1)
The configuration commands above will also stop your Plex - this is because the plugin needs Plex to be restarted to work. Within 5 minutes of stopping Plex it will be restarted and your port will be properly configured.
Accessing Plex WebTools
Once that's done, you can get the access URL for PLex WebTools with the following command:
grep -l 33400 ~/.config/feral/ns/forwarding/tcp/* | echo http://$(hostname -f):$(awk -F'[^0-9]*' '$0=$3')
Paste the result into your browser and enter your Plex login details.