mkdir /mnt/dietpi_userdata/crypto
cd /mnt/dietpi_userdata/crypto


apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev -y
git clone https://github.com/xmrig/xmrig.git


cd xmrig
mkdir build
cd build
cmake ..
make

#wallet site       getmonero.org

cd /mnt/dietpi_userdata/crypto/xmrig/build

./xmrig -o gulf.moneroocean.stream:10128 -u 43VUAFPvkg5jKZZtgPJ4jaFX12VTWXVEtVUJRy3hsAFuagt7wB6bdVAWDnxHb6K7JEXUApRVc3HP1MnRhpxnhqcu6K6rXu7 -p pi4ram8
./xmrig -o gulf.moneroocean.stream:10128 -u 43VUAFPvkg5jKZZtgPJ4jaFX12VTWXVEtVUJRy3hsAFuagt7wB6bdVAWDnxHb6K7JEXUApRVc3HP1MnRhpxnhqcu6K6rXu7 -p PCdietpi


h shows speed

s shows completed

c current connection

# site to monitor      moneroocean.stream      
43VUAFPvkg5jKZZtgPJ4jaFX12VTWXVEtVUJRy3hsAFuagt7wB6bdVAWDnxHb6K7JEXUApRVc3HP1MnRhpxnhqcu6K6rXu7
#Old way
# Downloads and installs a script.  To install xmrig

mkdir temp cd temp wget https://theshealys.com/scripts/MineInstall

# To Run xmrig
cd /mnt/dietpi_userdata/crypto/xmrig/build

./xmrig -o gulf.moneroocean.stream:10128 -u 43VUAFPvkg5jKZZtgPJ4jaFX12VTWXVEtVUJRy3hsAFuagt7wB6bdVAWDnxHb6K7JEXUApRVc3HP1MnRhpxnhqcu6K6rXu7 -p pi4ram8