Last active
July 25, 2024 12:01
-
-
Save ademar111190/76e395d9efdadc4e1338756393044f92 to your computer and use it in GitHub Desktop.
A helper to mining using Public Pool and cpuminer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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