We started working on a Raspberry Pi 4 standalone Grin-Node which can be build by anyone.
Anyone could should run a Grin-Node, therefore we are making this forum post and help you setup your own RPI4 Grin-Node
- RPI4 Model B 8 GB RAM
- 3.5" Screen for RPI4
- Case for RPI4 + FAN
It is important to use an active fan with the heatsink on RPI4.
(Disclaimer: we are not showing how to basic-setup the RPI4 and setup the display, SSH etc)
Install RUST using https://rustup.rs/
git ● tor ● clang ● ncurses and libs (ncurses, ncursesw5) ● zlib libs (zlib1g-dev or zlib-devel) ● pkg-config ● libssl-dev ● llvm ● linux-headers (needed on Alpine linux)
For Debian-based distributions (Ubuntu, Mint etc):
apt install build-essential git tor cmake git libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm ``` (Credits: https://paouky.github.io/docs/getting-started/build/)
Clone the official Grin repository
git clone https://github.com/mimblewimble/grin
Compile latest tag using the following script within the directory where you did clone the grin repo
#!/bin/bash /usr/bin/git checkout master /usr/bin/git fetch --tags latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) /usr/bin/git checkout $latestTag echo $latestTag /root/.cargo/bin/cargo clean /root/.cargo/bin/cargo build --release
- setup grin-server.toml to use TUI
whether to run the ncurses TUI (Ncurses must be installed)
run_tui = true
To see the TUI on your 3.5" screen add the following to your .bashrc file:
[[ $(/usr/bin/tty) == "/dev/tty1" ]] && exec /usr/bin/screen -S display
Now SSH into your RPI4 and connect to your screen session and start grin-node and you should see your TUI on your 3.5" display.
We are thinking of Grin-branding a few RPI4 cases and ship them to users, e.g for our next Grin-Node Challenge or even for a donation we can send them to you
Few more pictures of the build process
Thank you @johndavies24 for the ARM compilation help on Keybase from you.