Skip to content

Instantly share code, notes, and snippets.

@najashark
Created August 15, 2016 10:21
Show Gist options
  • Save najashark/75a08d60818583921ad2c584a16039c1 to your computer and use it in GitHub Desktop.
Save najashark/75a08d60818583921ad2c584a16039c1 to your computer and use it in GitHub Desktop.
#!/bin/sh
#If you would like to mine directly to an exchange, then use EXCHANGE_ADDRESS.your_payment_id as your address in your mining software,
#and also when looking at your stats in the home page.
#Please, do not mine to an exchange without your payment ID.
echo -n "Enter your WALLET_ADDRESS [ENTER]: "
read YOUR_WALLET_ADDRESS
echo -n "Enter your POOL_ADDRESS:PORT [ENTER]: "
read YOUR_POOL_ADDRESS
sudo apt-get update -y
sudo apt-get install libcurl4-gnutls-dev automake build-essential git screen -y
sudo apt-get install libtool -y
sudo apt-get install libssl-dev -y
git clone https://github.com/perl5577/cpuminer-multi.git
cd cpuminer-multi
echo "autoreconf -i" >> autogen.sh
./autogen.sh
CFLAGS="-march=native" ./configure
make
make install
screen -t mm minerd -a cryptonight -o stratum+tcp://$YOUR_POOL_ADDRESS -u $YOUR_WALLET_ADDRESS -p x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment