Testnet for Raspberry Pi 4: Manjaro minimal + docker + alpine

Can anyone test my setup please?
I’m sure there’s still some mistakes in there.
I’m thinking of adding neovim too, but I feel like I’m still not 100% I’ve got the current best setup is.
I’m also wondering whether or not manjaro-arm-installer can be used in docker.

Requirements

Client

Desktop/Laptop running Manjaro Linux OS, direct or installed in virtualbox.

Server

Raspberry Pi 4

Steps

Client

Download this first.

Note 1: During your next step you will encounter choosing the drive where you want to install the OS.
Make sure that you’re not choosing your laptop/desktop drive.
It happened to me once and despite stopping in time,
I still ended up deleting all my files and folders during the cleanup.

Note 2: There’s no need for difficult passwords right away, because we’re going to use SSH keys and then via SSH we can change those passwords.

Open a terminal, enter this command.

sudo manjaro-arm-installer 
rpi4
minimal
YOUR_USERNAME <- folaht
sys,network,power,wheel,audio,input,lp,storage,video,users
YOUR_FULLNAME <- Folât Pjêrsômêj
SIMPLE_PASSWORD <- môpâs
repeat
SIMPLE_PASSWORD <- môpâs
repeat
your_microSD_drive_usually_sdc_or_sdb <- BE CAREFUL! BE REALLY REALLY CAREFUL!
YOUR_TIMEZONE
YOUR_LANGUAGE

Once the installment is finished, enter these commands.

curl https://link.tardigradeshare.io/s/jvda7uw6irz3hu342ray4lvuqnkq/rezosur/safe_network_dev_enviroment_setup.sh?download -o safe_network_dev_environment_setup.sh
curl https://link.tardigradeshare.io/s/jup4hvjfcdrvhmakmviwlaxw6ipa/rezosur/dockerfile?download -o dockerfile
curl https://link.tardigradeshare.io/s/jwpzpkabysdyz4e6rkilufhpbvjq/rezosur/sshd_config?download -o sshd_config
mv safe_network_dev_environment_setup.sh /path/to/rpi/home/user/safe/
mv dockerfile /path/to/rpi/home/user/safenet_node
mv sshd_config /path/to/rpi/etc/sshd_config
ssh-keygen -t ed25519 -N <passphrase> -C "USER@HOSTNAME"
cat ~/.ssh/id_ed25519.pub | tee -a /path/to/rpi/.ssh/authorized_keys

Put your MicroSD card into your Raspberry Pi 4 and connect it to your modem.

ssh your_username@your_hostname
passwd
YOUR_GENERATED_PASSWORD
sudo su
passwd
YOUR_GENERATED_PASSWORD

Server

I can then run the script to setup my dev environment.

sudo sh ~/safe/safe_network_dev_enviroment_setup.sh
cd ~/safenet_node
docker build -t safe_node .
docker run -it safe_node sh
safe node join
safe files ls safe://hyryyry6mw7uiufjbwxapfht8fdy3p89jxyrq7iiem9fx8h8xmwr1s1bm9wnra
safe files get safe://hygyy1yqjbwg9dwft5af1yp7teg4eb84c9x8h8cwm4iwtsh4a43eakemoyr

Rebuild

So far, whenever a new testnet breaks out, you need to rebuild all over again. Not preferable, but this is the only way I know so far.

docker container ls
docker stop CONTAINER_ID
docker build --no-cache -t safe_node .
docker run -it safe_node sh
safe node join
9 Likes