1
Beginners & Help / [Guide] Gunbot XT (v8.0.3) using a Raspberry Pi
« on: October 29, 2017, 07:18:10 PM »
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 pi
if 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
unzip it and
cd into the folder.
then you have to make the "apps" executable. you can do with
for the GUI:
if tis does not work for you then try:
2. configuration.
without GUI
because 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 GUI
cd into the folder and start the GUI-app
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:
If the port is used then try a reboot.
3. running
without GUI
i 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.
after you have done that start the bot. cd into the directory where gunthy-arm is. the type this into your terminal:
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 GUI
And 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. checking
you can reconnect to the session with the bot and check if it is running
or use
11151.pts-1.mhlab01 (Attached)
11131.pts-3.mhlab01 (Attached)
2 Sockets in /var/run/screen/S-root.
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.
put this into the file:
(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.
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 pi
if 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
Code: [Select]
wget https://github.com/GuntharDeNiro/BTCT/releases/download/803/Gunbot.XT.Edition.-.Arm.package.zip
unzip it and
Code: [Select]
unzip Gunbot.XT.Edition.-.Arm.package.zip
cd into the folder.
Code: [Select]
cd Gunbot XT Edition - Arm packaget
then you have to make the "apps" executable. you can do with
Code: [Select]
chmod +x gunthy-arm
for the GUI:
Code: [Select]
chmod +x gunthy-gui-arm
if tis does not work for you then try:
Code: [Select]
chmod u+x gunthy-arm
orCode: [Select]
chmod u+x gunthy-gui-arm
2. configuration.
without GUI
because 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 GUI
cd into the folder and start the GUI-app
Code: [Select]
./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:
Code: [Select]
netstat -lptn
If the port is used then try a reboot.
Code: [Select]
sudo reboot
3. running
without GUI
i 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.
Code: [Select]
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:
Code: [Select]
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 GUI
And 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. checking
you can reconnect to the session with the bot and check if it is running
Code: [Select]
screen -x
(if you have only one screen session)or use
Code: [Select]
screen -list
There are screens on:11151.pts-1.mhlab01 (Attached)
11131.pts-3.mhlab01 (Attached)
2 Sockets in /var/run/screen/S-root.
Code: [Select]
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.
Code: [Select]
sudo nano .screenrc
put this into the file:
Quote
# 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.