↓ Slide 1

Mac Setup Guide

In slideshow mode, use arrow keys or the navigation buttons at lower right of screen to move forward/back.

This guide will assist you getting ProfitTrailer running on your Mac.

↓ Slide 2


  • Installing Java
  • Downloading ProfitTrailer
  • Mandatory Settings
  • Running ProfitTrailer
  • Run via start script (optional)
↓ Slide 3

Getting Started with ProfitTrailer on Mac

This guide will help you set up your ProfitTrailer bot on your Mac. First of all, running the bot 24/7 is not possible if you allow your Mac to fall asleep or close a laptop as the bot will not run anymore.
(To disable automatic sleep, see here: https://support.apple.com/kb/PH25222?locale=en_US)
That being said, you may want to buy a VPS before installing it on a dedicated computer.

↓ Slide 4

1. Installing Java

(Java 9 will not work)

Download and install Java 8. Make sure it is the JDK and not the JRE version:

↓ Slide 5

2. Downloading ProfitTrailer

Go to this link: https://github.com/taniman/profit-trailer/releases.
Download the latest release.
Extract the archive you downloaded somewhere, for example on the desktop. You can do so by double-clicking the downloaded archive if it hasn't been extracted automatically already. (In that case you will find the extracted folder in your downloads)
Make sure you copy/move it to your desktop before proceeding with the next steps.

↓ Slide 6

3. Mandatory Settings

Setup Mandatory Settings before attempting to run the bot.

  • This guide includes an example application properties file, but no other settings. So before you go ahead and run the bot on random settings, without knowing what they do, please study the wiki.
↓ Slide 7

4. Editors

Please make sure you use a proper text editor to edit any files. That could be TextWrangler, SublimeText or Brackets for example.

→ Slide 8
→ Slide 9

5. Running ProfitTrailer

Open a Terminal window (You can find the terminal in ApplicationsUtilitiesTerminal)
Navigate to the folder where your ProfitTrailer is located, by typing 'cd' followed by a SPACE and then dragging the small blue folder icon from the top bar of your finder window, like this:

→ Slide 10

The drag-n-drop trick fills in the path to your ProfitTrailer folder, so you don’t have to look it up. Now press ENTER to go to that folder. The result should look something like this:

→ Slide 11

Now that you’ve located your ProfitTrailer-folder in the Terminal, it’s time to run the bot. Copy/paste the following command and press ENTER:
(Next Slide)

→ Slide 12
java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -Dio.netty.allocator.numDirectArenas=0 -Djdk.nio.maxCachedBufferSize=262144 -XX:+UseSerialGC -XX:+UseStringDeduplication -Xms64m -Xmx512m -XX:CompressedClassSpaceSize=300m -XX:MaxMetaspaceSize=128m -jar ProfitTrailer.jar
→ Slide 13

If the bot is reporting that it cannot save the json file due to permissions, you may want to add “sudo” to the beginning of the java command like this (you will be prompted to enter your password when you start the bot):
(Next Slide)

→ Slide 14
sudo java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -Dio.netty.allocator.numDirectArenas=0 -Djdk.nio.maxCachedBufferSize=262144 -XX:+UseSerialGC -XX:+UseStringDeduplication -Xms64m -Xmx512m -XX:CompressedClassSpaceSize=300m -XX:MaxMetaspaceSize=128m -jar ProfitTrailer.jar
→ Slide 15

If you are successful, you will see the following appear in your terminal window.
Leave this window open - it is the bot! If you close it, the bot will stop.

→ Slide 16

Your ProfitTrailer bot is now up and running. Congratulations! Now go to http://localhost:8081 if it did not open automatically. (adjust port if you have used a different one)
If you cannot reach your bot via webbrowser using localhost:8081, try using instead.

→ Slide 17

When you open the GUI for the first time you will be asked to set a password. You will also need to enter your default_api_key to confirm you are the owner.

→ Slide 18

If successful you will then be asked to Login.

→ Slide 19

Finally you will be presented with the Config Load screen. See Saving/Loading/Editing Configs.

→ Slide 20
  • Public - Choose from our database of public configs and copy it to your bot giving it a unique name.
  • Saved - Choose from one of your own configs that you have already created in the past.

→ Slide 21

6. Run via start script (optional)

Optional add-on for running PT more easily. The bot must be stopped when completing this step.
Run one of the following commands in the terminal while being within the PT-folder like you were in step 4:
If it ran without using sudo:
(Next Slide)

→ Slide 22
echo java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -Dio.netty.allocator.numDirectArenas=0 -Djdk.nio.maxCachedBufferSize=262144 -XX:+UseSerialGC -XX:+UseStringDeduplication -Xms64m -Xmx512m -XX:CompressedClassSpaceSize=300m -XX:MaxMetaspaceSize=128m -jar ProfitTrailer.jar > runpt.sh; chmod a+x runpt.sh
→ Slide 23

If it requires sudo to run:
(Next Slide)

→ Slide 24
echo sudo java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -Dio.netty.allocator.numDirectArenas=0 -Djdk.nio.maxCachedBufferSize=262144 -XX:+UseSerialGC -XX:+UseStringDeduplication -Xms64m -Xmx512m -XX:CompressedClassSpaceSize=300m -XX:MaxMetaspaceSize=128m -jar ProfitTrailer.jar > runpt.sh; chmod a+x runpt.sh
→ Slide 25

This will write the startup command into the file runpt.sh and make it executable afterwards.
After that you can run the bot by using:

→ Slide 26

This concludes the ProfitTrailer Mac Setup Guide

  • mac_guide.txt
  • Last modified: 3 months ago
  • by armchairguru