Username: Password:

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - vlmm

Pages: [1]
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
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-armor
Code: [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 -listThere 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.

2
hi

i can't find the log files in Gunthy_v5055_RC_8ab53b2. where are they? V3 had a log for every pair. but now? thank you?

3
hi

EDIT:
i was able load the page. i can start an stopp the bot but there is no data loaded into the GUI.

EDIT2:
on OSX the same problem - see screenshot in a post below.

EDIT3:
on telegram a WIN user reported the same problem.



i am running Gunthy_v5055_RC_8ab53b2 on a raspberry pi.

i tired to start the gui.

i installed node.js and then tried node app.js.

this is the output:

Code: [Select]
XXXXX@raspberrypi:~/Gunthy_v5055_RC_8ab53b2 $ node app.js
/home/XXXXXXGunthy_v5055_RC_8ab53b2/app.js:244
app.listen(json.client.port, json.client.hostname, 511, function () {
                      ^

TypeError: Cannot read property 'port' of undefined
    at Object.<anonymous> (/home/pi/Gunthy_v5055_RC_8ab53b2/app.js:244:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:504:3

how can i solve this?

thank you

Pages: [1]