Get a Divi core node up and running on a Raspberry Pi device in a flash (pun intended).
We recommend a Raspberry Pi 4 device with a 32GB Class 10 microSD card and 4GB of RAM. 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
ENTER
.For more information on CLI commands, see our wiki page
The autostart configuration can be found at ~/.config/lxsession/LXDE-pi/autostart
@xscreensaver -no-splash
lineThis process is automated and does not require any user input. The divi daemon (divid
) is run at the system level as a service.
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:
.divi
data directory for divi.conf
divi.conf
daemon=0
to the divi.conf
filedivisetup-run.sh
to divisetup-complete.sh
divid.service
If ~/.divi/divi.conf
exists already, only the final step will run.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:
divisetup-complete.sh
divisetup-run.sh
Note: Shutdown script has not been confirmed as working and should be considered a known issue.
Several bash aliases are present in the root directory's .bash_aliases
file.
ALIAS | FUNCTION |
---|---|
aliasfile |
opens the alias file for editing |
aliasreload |
reloads the shell |
sweep |
deletes .bash_history and closes the terminal |
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 |
diviservicestart |
starts the divid.service system service |
diviservicestop |
stops divid.service |
diviservicestatus |
prints the divid.service status for debugging |
diviclearcache |
removes unnecessary data directory files |
divirefresh |
starts ./divid with the -reindex flag |
divirescan |
starts ./divid with the -rescan flag |
dividir |
quick access to the DIVI directory |
datadir |
quick access tho the Divi data directory where config files, etc. are found |
diviuserdelete |
DANGER: This command removes all user-specific files, including wallet.dat . Use with extreme caution |
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.