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/06/08 16:44]
tristan
linux_guide [2019/01/23 22:05] (current)
sgtbatten [Getting Started with ProfitTrailer on Linux]
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.
- +
-There is a video tutorial now. Please watch it. +
-  +
-  * [[https://​www.youtube.com/​watch?​v=l4ixVHGzvWM|How to install PT on Linux]]+
  
 ---- ----
Line 14: 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 24: 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.
  
 ---- ----
Line 77: 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
 +
 +<WRAP center round important 60%>
 +Recently new installs have had issues with pm2 not starting correctly. Update Node using the above commands if you have issues
 +</​WRAP>​
 +            ​
  
 install npm and use npm to install pm2:  ​ 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 apt-get install npm
             sudo npm install pm2@latest -g             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 174: 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 187: 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:​
  
-{{::​initial_settings_load.png?​nolink|}}+  * **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.
  
-Finally, run a save and startup commandAter 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. +{{::​initial_settings_load.png?​nolink|}}
- 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.1528476247.txt.gz
  • Last modified: 8 months ago
  • by tristan