hi
i am running the bot with a raspberry pi.
i will share what i did. maybe this will help someone and others might post feedback to improve things.
the post was updated for Gunbot XT. And i will include all questions asked here step be step.
You need a licence? Contact me and you will get a 10% discount vlom@protonmail.com
Like it guide? thank you: BTC 14xQzDipMf1tzPQaj6bG7vsUXK1jDNjGkV
the piif you install raspian (
https://www.raspberrypi.org/documentation/installation/installing-images/) you need a screen (a TV via HDMI works) and a keyboard first. you have to enable the SSH access and for that you have to edit raspi-config (
https://www.raspberrypi.org/documentation/configuration/raspi-config.md).
1. installing:download the version you like. you can do this with wget.
for Gunbot XT
wget https://github.com/GuntharDeNiro/BTCT/releases/download/803/Gunbot.XT.Edition.-.Arm.package.zip
unzip it and
unzip Gunbot.XT.Edition.-.Arm.package.zip
cd into the folder.
cd Gunbot XT Edition - Arm packaget
then you have to make the "apps" executable. you can do with
chmod +x gunthy-arm
for the GUI:
chmod +x gunthy-gui-arm
if tis does not work for you then try:
chmod u+x gunthy-arm
or
chmod u+x gunthy-gui-arm
2. configuration.without GUIbecause i am running the pi headless i connected to the pi with cyberduck (
https://cyberduck.io). Connect with SFTP.
After you did this navigate to the gunbot folder. after that you can click on config.js and afterwards on the text wrangler icon.
This will open the config.js in textwrangler.
Edit what have to be edited and save the file. it will be saved on your raspberry. you don't have to download or upload the config.js
with GUIcd into the folder and start the GUI-app
./gunthy-gui-arm
after that open a browser and type:
localhost:5000
If you have an error message during the launch of ./gunthy-gui-arm then check if port 5000 is already in use. you can do this like this:
netstat -lptn
If the port is used then try a reboot.
sudo reboot
3. runningwithout GUIi am running the raspberry pi headless. thats why i connect via terminal now. before you start bot install screen or a similar tool.
https://wiki.alpinelinux.org/wiki/Screen_terminal_multiplexer. Otherwise the bots stops when you close the terminal on your machine.
sudo apt-get install screen
after you have done that start the bot. cd into the directory where gunthy-arm is. the type this into your terminal:
screen ./gunthy-arm
with ^A d (control A d) you can detach from the session. after that you can close the terminal and the bot keeps running.
with GUIAnd if you run your pi headless, than you can use the GUI via VNC.
You need an app on your host and the raspi has to be configured for the VNC use.
See here:
https://www.raspberrypi.org/documentation/remote-access/vnc/This is how it can look like when you use VNC:
4. checkingyou can reconnect to the session with the bot and check if it is running
screen -x
(if you have only one screen session)
or use
screen -list
There are screens on:
11151.pts-1.mhlab01 (Attached)
11131.pts-3.mhlab01 (Attached)
2 Sockets in /var/run/screen/S-root.
screen -x 11151
(if this is the session with bot)
if you want to capture the output of the gunbot screen session you can do the following steps.
Create the file .screenrc in your home directory.
sudo nano .screenrc
put this into the file:
# Always show a status line in the window footer
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
# Autodetach session on hangup instead of
# terminating screen completely
autodetach on
# Turn off the splash screen
startup_message off
# set log on all windows
deflog on
(
https://remysharp.com/2015/04/27/screen)
The next time you start the bot with screen ./gunthy-arm there will a file be created (screenlog.0) in which the output is saved.