Getting started for Raspberry Pi
Getting started for Raspberry Pi
Use the following instructions to mine a block.
Update your Raspberry Pi.
sudo apt-get update
sudo apt-get upgrade
Install the required dependencies.
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common
Install Berkeley DB from source code.
wget https://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
sudo make install
Configure environment variable.
export LD_LIBRARY_PATH="/usr/local/lib"
Open your wallet, and make sure your wallet is connected with a node.
Your wallet is connected when you see the icon in the lower right corner of your wallet.
The message “Syncing Headers (0,0%)” will disappear once you mine your first block.
Close your wallet and create the file dsfr.conf in the folder “$HOME/.dsfr/”.
Paste the following text into dsfr.conf and save the file.
rpcuser=rpc_dsfr
rpcpassword=83d42d11c26155019d7f3a9e4
rpcallowip=127.0.0.1
rpcport=23293
listen=1
server=1
Open your wallet.
Create a file named mine.sh and paste the following text into mine.sh.
#!/bin/bash
SCRIPT_PATH=`pwd`;
cd $SCRIPT_PATH
echo Press [CTRL+C] to stop mining.
while :
do
dsfr-cli generate 1
done
Save the file.
Open the terminal on your Raspberry Pi.
Go to the directory where you extracted dsfr-qt.
E.G. cd Downloads
Execute the following command in Terminal to make mine.sh executable.
chmod +x mine.sh
Execute the following command in Terminal to start mining your first block.
./mine.sh