Skip to content

Instantly share code, notes, and snippets.

@bharley
Forked from return1/bitcoin-cpuminer.sh
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bharley/8702193 to your computer and use it in GitHub Desktop.
Save bharley/8702193 to your computer and use it in GitHub Desktop.
# install dependencies
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm make git
# clone cpuminer
git clone https://github.com/pooler/cpuminer.git
# compile
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
# start a basic script
cd ..
cat > start.sh << EOF
./cpuminer/minerd -o stratum+tcp://stablehash.com:3333 -O
EOF
chmod +x start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment