-
Notifications
You must be signed in to change notification settings - Fork 0
Installing on Mac OS X
#Mac OS X
To configure PlexRequests to run on a Mac 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)
Download and install the Mono OSX (MRE) package from the mono-project website
####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/mac/
####Verify Mono properly runs PlexRequests
sudo /usr/bin/mono /opt/PlexRequests/Release/PlexRequests.exe
####The following instructions will cover installation as a local user (which will start when the user logs in) and an admin user (which will start when the computer starts up)
- Create a file called
net.tidusjar.plexrequests.plistin your~/Library/LaunchAgentsdirectory with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>PlexRequests</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/mono</string>
<string>PlexRequests.exe</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/opt/PlexRequests/Release</string>
</dict>
</plist>-
Open up Terminal and run
which monoto get the absolute path of the mono executable. Make sure line 14 matches in the plist file -
Change line 20 to the absolute path of your PlexRequests folder
-
Make sure your PlexRequests folder matches your user permissions (otherwise the launchd service might fail to start):
sudo chown -R $(whoami) /opt/PlexRequests -
In Terminal:
To enable the daemon:
launchctl load ~/Library/LaunchAgents/net.tidusjar.plexrequests.plistTo disable the daemon:
launchctl unload ~/Library/LaunchAgents/net.tidusjar.plexrequests.plist -
Enjoy! This will automatically start PlexRequests when you login
- Create a file called
net.tidusjar.plexrequests.plistin your/Library/LaunchAgentsdirectory with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>PlexRequests</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/mono</string>
<string>PlexRequests.exe</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/opt/PlexRequests/Release</string>
</dict>
</plist>-
Open up Terminal and run
which monoto get the absolute path of the mono executable. Make sure line 14 matches in the plist file -
Change line 20 to the absolute path of your PlexRequests folder
-
In Terminal:
To enable the daemon:
sudo launchctl load /Library/LaunchAgents/net.tidusjar.plexrequests.plistTo disable the daemon:
sudo launchctl unload /Library/LaunchAgents/net.tidusjar.plexrequests.plist -
Enjoy! This will automatically start PlexRequests your machine boots