↓ Slide 1

Raspberry Pi Pre-Setup for ProfitTrailer

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

Java v8 (1.8.0_131 and up) is required.
Here is an article that explains installing Java on a Pi. Reference it if you are unfamiliar.

↓ Slide 2

Remove the old Java

Enter one line at a time

sudo apt-get purge openjdk
sudo apt-get purge java7
sudo apt-get autoremove
↓ Slide 3

Install needed package

sudo apt-get install dirmngr
↓ Slide 4

Add Keyserver

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key EEA14886
↓ Slide 5

Edit Source list

sudo nano /etc/apt/sources.list
↓ Slide 6

Add these lines to the bottom and exit with CTRL+X, type "Y" and enter twice

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
↓ Slide 7

Update repo and install the latest version of Java

sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
↓ Slide 8

Alternatively try the following commands if above does not work for you

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt update
sudo apt install openjdk-8-jdk
↓ Slide 9

Check java version

java -version
↓ Slide 10

Raspberry Pi Headless Setup for Profit Trailer


  • Raspberry Pi 3 Model B (+ Power & MicroSD)
  • ProfitTrailer (including bought license key)
  • A Bittrex/Poloniex/Binance account for ProfitTrailer
  • And of course a little bit of BTC to trade
↓ Slide 11
↓ Slide 12

SD Card Preparation

  • Download the latest version of Raspbian Stretch with Desktop
  • Burn the firmware IMG on your MicroSD card using Etcher
  • Create an empty file called ssh using a text editor
  • Place the ssh file in the “root” (/boot) of the MicroSD card

(Next Slide –>)

→ Slide 13

OPTIONAL for WiFi: Create a file called wpa_supplicant.conf containing this code with your own WiFi credentials(!):

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

	ssid="Your network SSID"
	psk="Your WPA/WPA2 Security key"
  • Place the wpa_supplicant.conf file in the “root” (/boot) of the MicroSD card.
→ Slide 14

Raspberry Pi Installation

  • Place the MicroSD card inside the Pi (+ LAN if you don't use WiFi)
  • Turn on the Raspberry Pi and wait till the yellow light turns off
  • Open up your console (Terminal, CMD etc.) and ssh into your Pi using:
  • ssh pi@your_network_id

(Next Slide–>)

→ Slide 15
  • The standard password should be “raspberry” with user being “pi”
  • Once you’re in, update your Raspberry Pi with:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
  • Once done, reboot your Raspberry Pi using:
    sudo reboot
→ Slide 16

Configure Raspberry Pi and VNC

  • Once again, open up your console and ssh into your Raspberry Pi
  • Open up the Raspberry Pi configurator using
    sudo raspi-config
  • Start by changing the password *(highly recommended for security reasons)*
  • Change Boot OptionsDesktop / CLIDesktop Autologin

(Next Slide –>)

→ Slide 17
  • Change Localisations
    • Change LocaleOKOK
    • Then change your Timezone
  • IMPORTANT: Go to Interface OptionsVNCEnabled
  • Lastly, go to Advanced SettingsResolution1280×720
  • Then Finish these settings and Reboot *(don’t exit using ESC)*
→ Slide 18

Ready! Login using VNC

  • Open VNC Viewer and type the network address from your Raspberry Pi
  • Login using username pi and the password you set earlier
  • You’re done configuring your Raspberry Pi (Yehaaaw!)
  • To access your Pi from anywhere, create a VNC Account

(And login using that account on the Pi VNC client)

→ Slide 19

Installing Profit Trailer

  • Download Profit Trailer and put in in your /home/pi folder
  • Follow the mandatory settings for the bot

(Next Slide for example Application Properties –>)

→ Slide 20
→ Slide 21

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 22

Easy ProfitTrailer Startup Script

  • Start ProfitTrailer with just profittrailer in the terminal?
  • Create a file by typing the following command in the terminal:
  • sudo nano /usr/local/bin/profittrailer

(Next Slide –>)

→ Slide 23
  • Paste the following script inside it:
cd ~/ProfitTrailer
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 
  • Close and save the file with ctrl + x (select YES when asked)
  • Give it the right permissions to run from anywhere without sudo:
  • sudo chmod +x /usr/local/bin/profittrailer
  • Enjoy running ProfitTrailer without typing the whole command
→ Slide 24

This concludes the ProfitTrailer Raspberry Pi Setup Guide

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