script for headless miner

This one we don't install any gtk/wx craziness, and the whole thing
becomes much faster as a result.
This commit is contained in:
Jarvis Carroll
2025-05-30 11:42:02 +10:00
parent 91d85c8ecc
commit fb153a0e64
4 changed files with 23 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
if [ $# -eq 0 ]; then
>&2 echo "A public key must be provided."
return
fi
# Since we don't need the 238 packages required to run wx applications, we
# might as well see if a headless miner can run on just a subset of erlang.
sudo apt -y install wget erlang-tools erlang-dev erlang-eunit erlang-inets
wget -q https://zxq9.com/projects/zomp/get_zx && bash get_zx
export PATH=$PATH:$HOME/bin
zx import realm install_scripts/qpq.zrf
zx import realm install_scripts/uwiger.zrf
zx run uwiger-gmhive_client -gmhc pubkey "$1"