Skip to content

Instantly share code, notes, and snippets.

@ademar111190
Last active July 25, 2024 12:01
Show Gist options
  • Save ademar111190/76e395d9efdadc4e1338756393044f92 to your computer and use it in GitHub Desktop.
Save ademar111190/76e395d9efdadc4e1338756393044f92 to your computer and use it in GitHub Desktop.
A helper to mining using Public Pool and cpuminer
#!/bin/sh
pkg upgrade
apt install build-essential
pkg install git
pkg install libjansson
pkg install libcurl
pkg install neovim
git clone https://github.com/pooler/cpuminer.git
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
#!/bin/sh
# https://github.com/benjamin-wilson/public-pool
# https://github.com/pooler/cpuminer
export ADDRESS="TODO add address here"
export WORKER="TODO add a name here"
export URL="stratum+tcp://public-pool.io:21496"
export USERNAME="$ADDRESS.$WORKER"
export PASSWORD="x"
./minerd -o $URL -u $USERNAME -p $PASSWORD -q -B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment