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
  • 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