Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_guide [2018/07/10 01:45]
diesel
linux_guide [2019/02/02 02:18] (current)
mango
Line 1: Line 1:
 ===== Linux Setup Guide ===== ===== Linux Setup Guide =====
  
-This guide will you get ProfitTrailer running on an Ubuntu Server. The process will be roughly the same for other Linux versions.+This guide will assist ​you getting ​ProfitTrailer running on an Ubuntu Server. The process will be roughly the same for other Linux versions.
  
 ---- ----
Line 10: Line 10:
   * [[linux_guide#​Installing Java (and other things)]]   * [[linux_guide#​Installing Java (and other things)]]
   * [[linux_guide#​Downloading ProfitTrailer]]   * [[linux_guide#​Downloading ProfitTrailer]]
-  * [[linux_guide#​Configuring ProfitTrailer]] +  * [[linux_guide#​Mandatory Settings]]
-  * [[Mandatory Settings]]+
   * [[linux_guide#​Running ProfitTrailer]]   * [[linux_guide#​Running ProfitTrailer]]
   * [[linux_guide#​Setup a Second Bot]]   * [[linux_guide#​Setup a Second Bot]]
Line 20: Line 19:
 ====Getting Started with ProfitTrailer on Linux==== ====Getting Started with ProfitTrailer on Linux====
  
-First of all, note that running the bot 24/7 is not possible if you allow your PC to fall asleep or close a laptop as the bot will not run anymore. You may want to consider using a [[VPS]] before installing it on a dedicated computer.+First of all, note that running the bot 24/7 is not possible if you allow your PC to fall asleep or close a laptop as the bot will not run anymore. You may want to consider using a VPS before installing it on a dedicated computer.
  
 ---- ----
-===1. Connect to Linux===+===1.Connect to Linux===
  
 We need some software to connect from your home computer to the linux server. Use anything you are compfortable with however we suggest you download: We need some software to connect from your home computer to the linux server. Use anything you are compfortable with however we suggest you download:
Line 73: Line 72:
  
 Install Nodejs and create a simlink from the /nodejs to /node folder: Install Nodejs and create a simlink from the /nodejs to /node folder:
-            ​sudo apt-get install nodejs +            curl -sL https://​deb.nodesource.com/​setup_10.x | sudo -E bash -
-            sudo ln -s /​usr/​bin/​nodejs /​usr/​bin/​node +
-             +
-//On Debian 9 you may need to use:// +
-            ​curl -sL https://​deb.nodesource.com/​setup_9.x | sudo -E bash -+
             sudo apt-get install -y nodejs             sudo apt-get install -y nodejs
             sudo ln -s /​usr/​bin/​nodejs /​usr/​bin/​node             sudo ln -s /​usr/​bin/​nodejs /​usr/​bin/​node
  
-install npm and use npm to install pm2:  ​ 
-            sudo apt-get install npm 
-            sudo npm install pm2@2.4.0 -g 
 <WRAP center round important 60%> <WRAP center round important 60%>
-Be advised: ​pm2 v3.0 is the latest, and it DOES NOT WORK. Install v2.4.0.+Recently new installs have had issues with pm2 not starting correctlyUpdate Node using the above commands if you have issues
 </​WRAP>​ </​WRAP>​
 +            ​
 +
 +install npm and use npm to install pm2:  ​
 +            npm may already be installed and you will receive dependencies errors. skip to pm2 install
 +            sudo apt-get install npm
 +            sudo npm install pm2@latest -g
 +
 pm2 is a process manager – it lets you run the bot in the background, and has features to autostart, log-rotation and much more. You do not HAVE to use pm2, but we like it, especially from running multiple bots. pm2 is a process manager – it lets you run the bot in the background, and has features to autostart, log-rotation and much more. You do not HAVE to use pm2, but we like it, especially from running multiple bots.
 http://​pm2.keymetrics.io/​docs/​usage/​quick-start/​ http://​pm2.keymetrics.io/​docs/​usage/​quick-start/​
Line 171: Line 170:
  
 Text logs are maintained by pm2 and are located at /root/.pm2/ (for my root account access) Text logs are maintained by pm2 and are located at /root/.pm2/ (for my root account access)
 +
 +Run a save and startup command. After this is complete, PM2 will restart your bot if you restart the server. ​ Run this command again if you change your app, or add a second bot.
 + pm2 save
 + pm2 startup
 +
 +To run Profit Trailer without Pm2 you can still ececute the same java command as any other operating system.
 +
 +<file java>
 +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
 +</​file>​
  
 Your ProfitTrailer bot is now up and running. Congratulations! ​ Your ProfitTrailer bot is now up and running. Congratulations! ​
Line 184: Line 193:
 {{::​login.png?​nolink|}} {{::​login.png?​nolink|}}
  
-Finally you will be presented with the Config Load screen. ​You can choose an existing Configuration if it exists or enter a unique name and load the settings ​from within ​the initialization folder.+Finally you will be presented with the Config Load screen. ​There are three methods for choosing your first configuration:​ 
 + 
 +  * **Public** - Choose from our database of public configs and copy it to your bot giving ​it a unique name
 +  * **Saved** - Choose ​from one of your own configs that you have already created in the past. 
 +  * **Import** - Choose a name and import a config from your ProfitTrailer ​initialization folder.
  
 {{::​initial_settings_load.png?​nolink|}} {{::​initial_settings_load.png?​nolink|}}
- 
-Finally, run a save and startup command. Ater this is complete, PM2 will restart your bot if you restart the server. ​ Run this command again if you change your app, or add a second bot. 
- pm2 save 
- pm2 startup 
- 
-To run Profit Trailer without Pm2 you can still ececute the same java command as any other operating system. 
- 
-<file java> 
-java -Djava.net.preferIPv4Stack=true -Dsun.stdout.encoding=UTF-8 -jar ProfitTrailer.jar -XX:​​+UseConcMarkSweepGC -Xmx512m -Xms512m 
-</​file>​ 
  
 ---- ----
  • linux_guide.1531187107.txt.gz
  • Last modified: 7 months ago
  • by diesel