Skip to content

Setup Guide for Raspberry Pi

PermieBTS edited this page Aug 6, 2019 · 6 revisions

17.0 Setup Guide for Raspberry Pi

17.1 Installation

17.2 GUI version

17.2.1* Tested on Pi 3 B+ with Raspbian Stretch 7.0 by @thehapax

17.2.2This is the version of RaspianStretch June 2018 that works with the following instructions:

17.2.3 RASPBIAN STRETCH WITH DESKTOP 17.2.4 Image with desktop based on Debian Stretch 17.2.5 Version:June 2018 17.2.6 Release date:2018-06-27 17.2.7 Kernel version:4.14

17.2.8 You can download the Raspian Stretch Desktop from here: https://www.raspberrypi.org/downloads/raspbian/

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc make libssl-dev python3-pip python3-dev git
$ git clone https://github.com/Codaone/DEXBot.git dexbot  (or get latest release source)
$ cd dexbot   
$ nano requirements.txt

17.2.9 Comment out the pyqt5==5.10 line by adding a hash to the beginning: #pyqt5==5.10 17.2.10 Save and exit with ctrl+x and enter.

17.3 Install PyQt5 from the command line:

$ sudo apt-get update
$ sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools

17.3.1 Then run make check to see if the dependencies are all ok, followed by install-user

$ make check 
$ make install-user

17.3.2 In case you want dexbot system-wide, use sudo make install instead.

17.4 CLI only

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc make libssl-dev python3-pip python3-dev git
$ git clone https://github.com/Codaone/DEXBot.git dexbot
$ cd dexbot
$ pip3 install --user -e . # include the dot
# or for system-wide:
$ sudo pip3 install -e . # include the dot

17.4.1 Running

17.4.2 CLI version

17.4.3 to run the CLI version:

$ python3 cli.py configure 

17.4.4 or locate the dexbot-cli in your home dir. After configuration you can run it with:

$ dexbot-cli run

17.5 GUI version

17.5.1 Launch dexbot-gui with the launcher (alt + F2) or from a terminal 17.5.2 The binaries may end up in your home dir. If you can't find them, try

$ python3 gui.py 

17.6 Arch Linux for ARM

17.6.1 You need base-devel, python3-pip, and git installed. If you want gui, install pyqt5 using pacman. Then proceed with the instructions above.