This is an old revision of the document!

FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

For versions 1.2.6 and later, Java v8 (1.8.0_131 and up) is required. Upgrade instructions are shown below

Here is an article that explains installing Java on a Pi. Reference it if you are unfamiliar.

Remove the old Java:

  • sudo apt-get purge openjdk*
  • sudo apt-get purge java7*
  • sudo apt-get autoremove

Install needed package:

  • sudo apt-get install dirmngr

Add Keyserver:

  • sudo apt-key adv –recv-key –keyserver EEA14886
  • Add a double “-“ in front of “recover-key” and “keyserver”.

Edit Source list:

  • sudo nano /etc/apt/sources.list

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

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

Check java version:

  • java -version


Raspberry Pi Headless Setup for Profit Trailer

  • Raspberry Pi 3 Model B (+ Power & MicroSD)
  • ProfitTrailer (including bought license key)
  • A Bittrex/Poloniex account for ProfitTrailer
  • And of course a little bit of BTC to trade
  • 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
  • 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 update_config=1 country=US network={ ssid=“Your network SSID” psk=“Your WPA/WPA2 Security key” key_mgmt=WPA-PSK }

  • Place the wpa_supplicant.conf file in the “root” (/boot) of the MicroSD card.
  • 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

  • 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
  • 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
  • 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)*
  • 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)

  • 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

  • Paste the following script inside it:

#!/bin/bash cd ~/ProfitTrailer sudo java -jar ProfitTrailer.jar -XX:+UseConcMarkSweepGC -Xmx512m -Xms512m

  • 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

For support please contact:

  • de/raspberry_pi_guide.1517841353.txt.gz
  • Last modified: 15 months ago
  • by t1m3c