Last active
December 25, 2022 06:09
-
-
Save xjocrypto/744ca92a402d9bea9d519f22e538d678 to your computer and use it in GitHub Desktop.
Step by step install of GUNBOT on a Linux server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have recently been through the process of installing GUNBOT on Ubuntu from scratch. As a newbie I had to re-install | |
a few times until I got it right as I realise my server was clearly not up-to-date. Hence let me share with you what worked for | |
me within a matter of minutes. | |
I would like to share a big thank you to Dante, James Tandy, PPEe to have answered so many of my questions at the install phase. | |
I hope this tutorial will make it faster than it was for me ;-). | |
*** If you found the below helpful, you can buy me a Mojito or Amarula drink here : | |
BTC: L5BkDnM2fZhvzcg7HPjcnetRAvv8G9SM6Lyr1iBY2koVSCwGqxSU | |
ETH: 0x356A3a7C540B65BEF918e99D76c98731D57cc2a1 | |
*** | |
1. Get a VPS somewhere (Digital Ocean, Amazon ...you name them). | |
As far as I am concerned 512Mbs , 20G (basic) is way enough | |
for me to run GUNBOT | |
****THIS TUTORIAL ASSUMES THAT YOU HAVE INSTALLED UBUNTU V17.04 x64 ******** | |
2. Under the terminal SSH; log as ROOT and create a new user (as you DO NOT want to run things as ROOT): | |
Run the following commands: | |
$ useradd NAMEOFYOURUSER | |
..Set and confirm the new user's password at the prompt. | |
..Follow the prompts to set the new user's information (name room #...). then type the below commands: | |
$ usermod -aG sudo YOURUSERNAME | |
$ su - YOURUSERNAME | |
Now you should be logged as YOUUSERNAME | |
4. Update your system by running the following command: | |
$ sudo apt-get update | |
5. We now need to install a few packages for GUNBOT to function. Type the following commands: | |
$ sudo apt install curl | |
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - | |
$ sudo apt-get install nodejs unzip wget | |
$ sudo apt-get install build-essential | |
$ sudo npm install -g pm2 | |
6. Download the latest version of V5++ and make sure you share with GUNTHAR your exchange public API key so it is activated | |
for V5 https://github.com/GuntharDeNiro/BTCT/releases | |
$ wget https://github.com/GuntharDeNiro/BTCT/releases/download/V504/GUNBOT_V5_0_4.zip | |
or whatever latest version you can find here: https://github.com/GuntharDeNiro/BTCT/releases | |
7. Unzip the folder : $ unzip NAMEOFILEWITHEXTENSION ie ($ unzip GUNBOT_V5_0_5.zip) | |
The folder should contain the executable files and config files (ie. gunthy-linx64, config.js...) | |
8. rename the folder | |
$ mv /home/yourusername/folderoldname /home/yourusername/foldernewname | |
For instance: ie $ mv /home/peter/GUNBOT_V5_0_4 /home/peter/gunbot | |
8. Make the folder executable: | |
$ chmod +x ~/gunbot or $chmod +x /gunbot | |
9. Go into the folder $ CD GUNBOT | |
10. Make the executable linux file, executable: | |
$ chmod +x gunthy-linx64 | |
11. Edit your config file: | |
$ nano config.js | |
Edit the KEYs of th exchange your bot will be linked to. | |
Edit the pairs you want to trade | |
Edit the strategy you want to use (I will post an example soon) | |
12. Quickly check that PM2 is installed on the server and check that the BOT is running: | |
$ sudo pm2 start gunthy-linx64 | |
If not installed yet: | |
$ sudo npm i -g pm2 | |
and try again: | |
$ pm2 start gunthy-linx64 | |
please note that the above command will stop when you shut down the console. | |
13. To make Ubuntu run GUNBOT in the background, at all times, here are the key commands; | |
TO START THE BOT | |
$ pm2 start gunthy-linx64 | |
TO STOP THE BOT | |
$ pm2 stop gunthy-linx64 | |
TO MONITOR TRADES | |
$ pm2 MONIT | |
TO MONITOR LOGS | |
$ pm2 logs | |
14. if you want to install the GUI https://github.com/Sjakil/gunthy-gui/releases make sure you do it on another image | |
(staging server for instance) | |
before you migrate to your prod server (the one about which I listed all the steps above). If anything goes south during | |
the GUI install, at least you are not disrupting the functioning of GUNBOT. | |
ENJOY! | |
Thanks for taking the time to make this tutorial.
You could also add the following commands to make the process restart on boot :
pm2 startup
pm2 save
edit : just make sure your gunbot process is started when you do so
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much. I sent you some ether for that drink.
Best tutorial for green thumbs like me that I've read on the install process so far.