Skip to content

How to setup profit trailer on linux vps

Get Profit Trailer

  1. Purchase Profit Trailer trading bot. [Be sure you select correct exchnage. Bittrex, Poloniex, Binance]
  2. Download Profit Trailer  [Under Assets, click on the ProfitTrailer.zip
  3. Once ordered, you will get an email with yout license key.
  4. This can take some time, so at this time I suggest you order your VPS and start getting that setup.

Order VPS

  1. Order your Linux VPS from ShockHosting
  2. Click on VPS at top of the page.
  3. On the slide bar, you can slide it back to the left to see the  $4.99 plan. (If you are running one bot, then this plan is perfect)
    Click on the red ORDER THIS VPS button on the right.
  4. Under hostname you can enter any hostname you want. hostname.com is fine.  If you have your own domain, you can enter pt.yourdomain.com.
  5. Under root password you can enter in a password you will remember.
  6. Under Location, you can chose one of two US locations.  It does not matter which on you choose.
  7. You do NOT need an extra IP
  8. Under OS select Ubuntu 16.04
  9. Click on the red Continue button.
    Enter in your billing info that matched your credit card.  Otherwise you will get flagged for fraud.
  10. Under Promotional Code, enter in 25OFF.  That will get you a 25% recurring discount on your VPS.
  11. Check off the box I have read and agree to the Terms of Service.
  12. Click on Checkout button and continue with purchase. Using credit card and your payment will be automatic.
  13. Shortly, you will get an email with your linux VPS IP address, userame and password.

Download BitVise

Bitvise is a fantastic program to connect to your VPS.  It will open a SSH command window and also a SFTP window as well.  This will allow you to access your files on your server very easily. 

  1. Download Bitvise (Windows)
  2. Once finished, double click on the file you downloaded to install it.
  3. Once installed you will see BitVise SSH Client one your desktop and/or in your Start Menu. 

Log into VPS

  1. Launch BitVise SSH Client from your desktop or Start Menu.
  2. Under host enter in server IP address
  3. Under Port enter in 22
  4. To the right under authentication, under username enter in root.  Under password, enter password from the welcome email. Click on the Login button at bottom of window.
  5. You will connect to your VPS and to windows will appear.  The black window will be your SSH terminal window.  This is where you will enter in commands.  The second window will be the SFTP window.  This is where you can upload files and also edit files quickly.

Setup Linux Server

  1. Once logged in, first thing you need to do is change the default SSH port from 22 to something else 8080
  2. In the black terminal window enter or copy/paste nano /etc/ssh/sshd_config
  3. Hit the down arrow/cursor key 4 times until you get the cursor to Port 22
  4. Press the right arrow/cursor key until the fitst 2 in 22 is highlighted.
  5. Press the DEL key twice.  Then type the port you want to use  8080
  6. Press CTRL O.  This will ask to save the file. Press Enter to save file
    Press CRTL X.  This will exit nano and take you back to terminal
  7. Type or copy/paste  service sshd restart (This will restart SSH service.  Now you will need to connect SSH to your server with port 8080 instead of using 22. This will offer some security as port 22 is constantly getting brute force login attempts from bots
  8. Copy/paste the following  echo ‘0 0 * * * apt-get update && apt-get upgrade -y’ >> /etc/crontab Press Enter
    This will auto update your linux server everyday.
  9. Copy/paste apt-get update && apt-get upgrade -y This will update the software on your linux VPS server.

Install Profit Trailer

Below are the commands to install an setup neccessary apps and Profit Trailer.  Copy/paste each line one at a time and press enter.  Once you get back to flashing cursor you can than go to next command

  1. apt-get install unzip nano default-jdk nodejs npm -y   Press Enter
  2. ln -s /usr/bin/nodejs /usr/bin/node   Press Enter
  3. npm install pm2@latest -g   Press Enter
  4. cd /var/opt   Press Enter
  5. wget https://github.com/taniman/profit-trailer/releases/download/v1.2.6.12/ProfitTrailer.zip   Press Enter
  6. unzip ProfitTrailer.zip   Press Enter
  7. cd ProfitTrailer   Press Enter
  8. chmod +x ProfitTrailer.jar   Press Enter
  9. pm2 save   Press Enter
  10. pm2 startup   Press Enter
  11. pm2 start pm2-ProfitTrailer.json   Press Enter

Setup Profit Trailer

  1. Go back to your SFTP window from BitVise.
  2. On the right side under the green text Remote Files, click on the yellow folder with the green arrow pointing upward.
  3. This will take you to / directory.
  4. In the section below, you will see some directories.  The last one will be var.  Doubleclick on var, doubleclick on opt, doubleclick on ProfitTrailer
  5. Here you will see all the Profit Trailer files.
    Doubleclick on the application.properties files.  This will open the file up for you to edit it.
    Below are templates you can use by copy/pasting into your application.properties file. 
    You just need to change the following…
    server.timeZoneOffset = -06:00
    server.password = YourPassword
    default_apiKey = Enter api key created
    default_apiSecret = Enter api secret created
  6. Once you have entered in the info, you can click the X to close the app and it will ask you to save the file or not.  Click YES to save. 

server.port = 8081

telegram.botToken = 
telegram.chatId =

trading.exchange = BITTREX
server.timeZoneOffset = -06:00
server.sitename = BITTREX 
server.password = Enter Password Here You want to use to access your bot via web
server.enableConfig = true

# how many days of log history to show?
trading.logHistory = 180

#Put here your licensed API key
default_apiKey = Enter 1st  api key created
default_apiSecret = Enter 1st api secret created

#Put here a second api key that will be used to do all the buying and selling.
#This api key does NOT need to be activated
trading_apiKey = Enter 2nd  api key created
trading_apiSecret = Enter 2nd api secret created

server.port = 8081

telegram.botToken =
telegram.chatId =

trading.exchange = POLONIEX
server.timeZoneOffset = -06:00
server.sitename = POLONIEX 
server.password = Enter Password Here You want to use to access your bot via web
server.enableConfig = true

# how many days of log history to show?
trading.logHistory = 180

#Put here your licensed API key
default_apiKey = Enter apikey
default_apiSecret = Enter api secret

#Put here a second api key that will be used to do all the buying and selling.
#This api key does NOT need to be activated
trading_apiKey = Enter same api key from above
trading_apiSecret = Enter same api secret from above

server.port = 8081

telegram.botToken =
telegram.chatId =

trading.exchange = BINANCE
server.timeZoneOffset = -06:00
server.sitename = BINANCE 
server.password = Enter Password Here You want to use to access your bot via web
server.enableConfig = true

# how many days of log history to show?
trading.logHistory = 180

#Put here your licensed API key
default_apiKey = Enter apikey
default_apiSecret = Enter api secret

#Put here a second api key that will be used to do all the buying and selling.
#This api key does NOT need to be activated
trading_apiKey = Enter same api key from above
trading_apiSecret = Enter same api secret from above

Start Profit Trailer

  1. Switch back to to the black terminal window.  type pm2 reload 0 This will start Profit Trailer.
  2. Wait about 10 seconds and then open a new browser or tab
  3. Type in http://server_ip:8081  Press Enter
  4. You will get prompt a login page to enter a password.  Use the password you entered in the application.properties files.
  5. You are now logged into the GUI and can configure the bot to trade as you like.

Script Install

Below is a quick script you can use to install and setup Profit Trailer.   Log into your VPS and type nano pt and press enter. 
Copy and paste the text below into the pt file you have it open. Once you are done…
Press CRTL O to save the file
Press CRTL X to close nano
Type sh pt press enter.  This will begin the install process.
Once done, you will need to Setup Profit Trailer.

# Change SSH default port
echo ‘0 0 * * * apt-get update && apt-get upgrade -y’ >> /etc/crontab
echo ‘Port 8080’ >> /etc/ssh/sshd_config
# echo ‘PermitRootLogin No’ >> /etc/ssh/sshd_config
service sshd restart

timedatectl set-timezone America/Winnipeg

# Update and upgrade Upgrade server
apt-get update && apt-get upgrade -y

# Install needed apps
apt-get install unzip nano default-jdk nodejs npm -y
ln -s /usr/bin/nodejs /usr/bin/node
npm install pm2@latest -g

# Download PT
cd /var/opt
wget https://github.com/taniman/profit-trailer/releases/download/v1.2.6.12/ProfitTrailer.zip
unzip ProfitTrailer.zip
cd ProfitTrailer
chmod +x ProfitTrailer.jar

# Auto start PT at boot up
pm2 save
pm2 startup

# Start PT
pm2 start pm2-ProfitTrailer.json