This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
NOTICE! UPDATE JAVA (FOR PT 1.2.6+)
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. 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 –recv-key –keyserver keyserver.ubuntu.com 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:
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 account for ProfitTrailer
- And of course a little bit of BTC to trade
Downloads
- Etcher (https://etcher.io)
- Raspbian Stretch with Desktop image (https://www.raspberrypi.org/downloads/raspbian/)
- Profit Trailer (https://github.com/taniman/profit-trailer/releases)
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 Options
→Desktop / CLI
→Desktop Autologin
- Change Localisations
Change Locale
→OK
→OK
- Then change your
Timezone
- IMPORTANT: Go to
Interface Options
→VNC
→Enabled
- Lastly, go to
Advanced Settings
→Resolution
→1280×720
- Then
Finish
these settings andReboot
*(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
- Download Profit Trailer and put in in your
/home/pi
folder - Follow the Profit Trailer Wiki on how to set up the bot (https://github.com/taniman/profit-trailer/wiki)
- Enjoy your headless Raspberry Pi with Profit Trailer!
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 -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
You're all set! Enjoy using ProfitTrailer!
For support please contact:
- @TooSlow (http://telegram.me/too_slow)
- @CryptoMartijn (http://telegram.me/CryptoMartijn).
- BTC:
1KhBF4MPgsRb4Nq25winnEgHHWC9e8UTnv
- REF:
www.binance.com/?ref=12192810