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
debian/install_scripts/install_headless_apt vendored Executable file
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"

View File

@ -1,7 +1,10 @@
#!/bin/sh
sudo apt -y install wget erlang --no-install-recommends
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 qpq-gajumine

View File

@ -1,4 +1,5 @@
#!/bin/sh
# We actually only need
# erlang-base erlang-tools erlang-dev erlang-eunit erlang-inets erlang-wx
# But erlang-wx gives 238 out of the 273 dependencies of a full erlang install.
@ -6,4 +7,5 @@ sudo apt -y install wget erlang --no-install-recommends
wget -q https://zxq9.com/projects/zomp/get_zx && bash get_zx
export PATH=$PATH:$HOME/bin
zx run gajudesk

View File

@ -1,4 +1,5 @@
#!/bin/sh
sudo apt update
sudo apt upgrade
sudo apt -y install \