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. http://blog.livthomas.net/installing-java-8-on-raspberry-pi-3/

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 --keyserver keyserver.ubuntu.com --recv-key EEA14886

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:

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

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

Requirements

  • 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

Downloads

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
  • 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.

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

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

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)


Installing Profit Trailer

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.


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
  • Paste the following script inside it:
  • #!/bin/bash
    cd ~/ProfitTrailer
    sudo java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -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
Enter your comment:
 
  • raspberry_pi_guide.txt
  • Last modified: 4 months ago
  • by t1m3c