-
Notifications
You must be signed in to change notification settings - Fork 0
Server:Linux
For this guide, we will assume that you have root privileges and you are running on a Debian based system. The guide assumes that you do not have any of the prerequisites (such as Node.js and MongoDB) installed. If you are using another system then most of the guide should be the same, and replace apt install for whatever package manager that comes with your systems. The package names should be the same if not similar.
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
This will install the the Node v10 and community edition of MongoDB repositories into apt for installation
sudo apt update
sudo apt install -y nodejs mongodb-org curl jq
sudo systemctl enable mongod
sudo systemctl start mongod
This completes the installation of dependancies for MediaButler
sudo npm i -g mediabutler-server pm2
PLEX_URL=http://127.0.0.1:32400/ DB_URL=mongodb://127.0.0.1:27017/mediabutler pm2 start mediabutler
You should now be able to access http://127.0.0.1:9876/ and be greeted with a "Hello World!" message. This completes the installation of MediaButler Server
After the initial installation of MediaButler above, you will notice that we had to supply a PLEX_URL and DB_URL as part of the initial startup process. You should not need to set this again afterwards. You should be able to control starting and stopping of the MediaButler server with the pm2 package.
pm2 stop mediabutler
pm2 restart mediabutler
pm2 start mediabutler
We would also recommend reading the documentation of pm2 for further support with starting and stopping
Updating MediaButler is quite simple, you just run the npm installation again and tell the server to restart.
sudo npm i -g mediabutler-server@latest
pm2 restart mediabutler