Running distributed.net on Mac Mini M4

Here is a quick guide on running distributed.net on your Mac.

First pull an Ubuntu image
docker pull ubuntu

Run Ubuntu image with 8 CPUs in detached mode. This will start a docker container running Ubuntu OS with 8 CPUs, run it in detached mode, with the name dnetc.
docker run –cpus 8 –interactive –tty -d -name dnetc ubuntu bash

Show the list of containers
docker container ls

Attach to a running container
docker attach dnetc

To exit from a container and keep it running
Press Ctrl-P + Ctrl-Q

Update Ubuntu System
apt update && apt upgrade

Install wget
apt install wget

Download dnetc ARM client
wget ftp://ftp.distributed.net/pub/dcti/current-client/dnetc-linux-arm64.tar.gz

Unzip dnetc ARM client as dnetc subdirectory
tar -xzf dnetc-linux-arm64.tar.gz -C dnetc

Configure and start the dnetc
Configure the number of crunchers to the number of cpus you prefer to run