-
Notifications
You must be signed in to change notification settings - Fork 0
Installing on Debian Ubuntu
#Debian/Ubuntu
To configure PlexRequests to run on debian/ubuntu and set it to start up with the system, do the following (via terminal):
####Create a location to drop the files (up to you, we'll use /opt/PlexRequests as an example)
sudo mkdir /opt/PlexRequests
####Download the release zip
sudo wget {release zip file url}
sudo unzip PlexRequests.zip -d /opt/PlexRequests
####Install Mono (must be on v4.x or above for compatibility)
sudo apt-get install mono-devel
####Check your Mono version
sudo mono --version
if you don't see v4.x or above, uninstall it, and check here for instructions: http://www.mono-project.com/docs/getting-started/install/linux/
####Verify Mono properly runs PlexRequests
sudo /usr/bin/mono /opt/PlexRequests/Release/PlexRequests.exe
####The following instructions will be slightly different depending on the version/flavor of linux that you are currently running. The first group is for upstart, the second group is for systemd.
#####Create an upstart script to auto-start PlexRequests with your system (using port 80 in this example)
sudo nano /etc/init/plexrequests.conf
#####Paste in the following:
start on runlevel [2345]
stop on runlevel [016]
respawn
expect fork
pre-start script
# echo ""
end script
script
exec /usr/bin/mono /opt/PlexRequests/Release/PlexRequests.exe -p 80
end script
####Systemd instructions
#####Create a systemd script to auto-start PlexRequests with your system (using port 80 in this example)
sudo nano /lib/systemd/system/plexrequests.service
#####Paste in the following
Description=Systemd script to run PlexRequests as a service
After=network-online.target
[Service]
User=root
Group=root
Type=simple
Environment=statedir=/opt/PlexRequests/Release
ExecStart=/usr/bin/mono ${statedir}/PlexRequests.exe -p 80
[Install]
WantedBy=multi-user.target
#####Next, reload the daemon and enable the service:
sudo systemctl daemon-reload
sudo systemctl enable plexrequests.service
####Reboot, then open up your browser to check that it's running!
sudo shutdown -r 00