Skip to content
Get a Divi core node up and running on a Raspberry Pi device in a flash (pun intended)
Branch: master
Clone or download
Latest commit 5efe3f4 May 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README.md May 26, 2019

README.md

Divi Smart Node

Get a Divi core node up and running on a Raspberry Pi device in a flash (pun intended).

System requirements

We recommend a Raspberry Pi 3b+ device with a 64GB Class 10 microSD card. This is the only configuration on which this implementation has been tested.

Note: While no issues have been found with this implementation, this software is considered to be in an Alpha stage. Use at your own risk and always back up your mnemonic seed phrase before transacting with any real funds

Instructions

  1. Download the latest image.
  2. Use Etcher or similar software to flash the image to a microSD Card (64GB recommended).
  3. Insert the flashed microSD card into your Raspberry Pi 3b+ device and turn on.
  4. On boot, you will be prompted to enter an RPC username, type one of your choosing and press ENTER.
  5. The node will configure itself and begin to sync automatically, use the node as usual via the command line.

For more information on CLI commands, see our wiki page

Filepaths

Autostart Configuration

The autostart configuration can be found at ~/.config/lxsession/LXDE-pi/autostart

  • Scripts will be run at startup using the autostart file
  • Always keep scripts above the @xscreensaver -no-splash line

Divi Config Script (first run)

A script called divisetup-run.sh will run the first time the image is booted. It is located at /home/pi/divisetup-run.sh and performs the following actions:

  • Prompts user for rpc username and writes to ~/.divi/divi.conf
  • Randomly generates an rpc password using the SHA256 hashing algorithm and writes it to divi.conf
  • Renames divisetup-run.sh to divisetup-complete.sh
  • Writes daemon=1 to the divi.conf file

Divi Config Script (subsequent runs)

After the initial setup, a script named divi-startup.sh runs on boot. It is located at /home/pi/divi-startup.sh and performs the following actions:

  • Checks for divisetup-complete.sh
  • If not found, runs divisetup-run.sh
  • Runs the daemon

Divi Shutdown Script

Note: Shutdown script has not been confirmed as working and should be considered a known issue.

Aliases

Several bash aliases are present in the root directory's .bash_aliases file.

ALIAS FUNCTION
aliasfile opens the alias file for editing
reload reloads the shell
init-divi-conf resets divisetup-run.sh to reconfigure divid on next boot
dli alias for ./divi-cli. Run any divi-cli command with dli <command>
dividebug tails the debug log
divistart starts ./divid
dividir quick access to the DIVI directory
datadir quick access tho the Divi data directory where config files, etc. are found

FAQ

Q. Can I run a masternode on a Raspberry Pi?

A. Yes, see our wiki page for instructions.

Q. Can I use this Raspbian image as a "stake box?"

A. Yes, just be sure to back up your mnemonic seed phrase in case of SD card errors or any other issues.

You can’t perform that action at this time.