Running Full Safex Cash Node and Solo/Pool Mining on Raspberry Pi

In this video I’m detailing how to support the new Safex Cash blockchain with your Raspberry Pi 3B. Instructions below:

Donations appreciated:

Bitcoin & Safex Tokens: 1qM2PR4FDjMnecnjoELE4Q5DzjD8QEqZ9

Safex Cash: Safex5zoeQwSeM5ZbQBHyF6zXkoyeAT7CjYfQAFFmbneEBKWX6SMihJFKUCXy59AqQ2hJovpPYT3HFhhfgaP9e9g8sbvxg49uj736

1.Download all needed programs and images


IP Scanner



Resources for building Safex Daemon and Miners:

Safex News instructions:

Safex info: &

RPI Xmrig: for dynamic difficulty starting at 100 with no option to fix anywhere below 500.
for dynamic difficulty starting at 250 with option to fix anywhere above 250.

2. To save memory we will do everything through CLI so you should either flash Raspbian lite, switch to pure CLI or connect to RPi via SSH. We’re also going to boot via USB so flash a USB with your choice of Raspbian.

2. If it’s a new RPi OS image then SSH will be disabled so to enable, create a file on the RPi SD card called: SSH . It should have no extension. Do this by creating a text file and naming it SSH.txt and then delete the .txt extension. A windows warning will come up but don’t worry.
You should also add the same type of file to your USB with the flashed OS if you want to connect via SSH.

4.Use IP scanner to find your RPi IP address. If you don’t have wifi enabled the connect an ethernet cable to your RPi and connect to your router, boot the Pi and wait for it to show up on the scanner.

5. Take the IP address and connect to the Pi through Putty.

6. First, prepare the /boot directory with up to date boot files:

sudo apt-get update && sudo apt-get upgrade

7. Then enable USB boot mode with this code:

echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt

8. Reboot the Raspberry Pi with:

sudo reboot.

9. Then use sudo shutdown now to shut the Pi off, remove the SD card and insert the USB with raspbian and log in or connect to the Pi through SSH via Putty.

10. Run:

sudo apt-get update && sudo apt-get upgrade

11. To prevent the Pi from running out of memory during the compile we need to change both numbers in the swap file to 4096. To do this run:

sudo nano /etc/dphys-swapfile

12. Navigate with arrow keys and replace both numbers with 4096. Don’t forget to do both of them.

13. CTRL+x and Y to save changes.

14. Now we just need to follow the origal compile instructions from Rich @ Safex News (…)


sudo apt-get install git build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libcurl4-openssl-dev libgtest-dev libreadline-dev libminiupnpc-dev libzmq3-dev libsodium-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpcsclite-dev

sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libg* /usr/lib/


git clone –recursive

cd safexcore

make release

cd build/release/bin

To run daemon:

sudo ./safexd

To run wallet:


Then if you want to mine to a pool run:

git clone

cd rPi-xmrig-gcc7.3.0

Insert your mining details into using:

sudo nano

To start mining:


Good luck and thanks for watching!