Skip to content

Instantly share code, notes, and snippets.

@Toe-Hlaing-Win
Forked from NotoriousBTC/README.md
Created July 24, 2021 12:32
Show Gist options
  • Save Toe-Hlaing-Win/002a8c766d456721cadd522d1d5e01ca to your computer and use it in GitHub Desktop.
Save Toe-Hlaing-Win/002a8c766d456721cadd522d1d5e01ca to your computer and use it in GitHub Desktop.
Digital Ocean CPU Cloud Mining Instructions

CPU Cloud Mining

  • Sign Up for an SSD cloud server or log in if you already have an account.

  • Click 'Create Droplet' to get your instance running

  • Select the specifications you wish to mine (16GB/8CPU) on as well as the latest Ubuntu x64 image (Ubuntu 13.10 x64).

  • Your username and password will be emailed to you within 55 seconds

  • Log in to your droplet via SSH

ssh [email protected]
  • Change your root password.
passwd
  • Relocate into the home directory
cd ~
  • Create a swap file
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
  • Install dependencies
sudo apt-get update
sudo apt-get install build-essential libcurl4-openssl-dev git zip
curl http://downloads.sourceforge.net/project/cpuminer/pooler-cpuminer-2.3.2-linux-x86_64.tar.gz > cpuminer.tar.gz
tar xzvf cpuminer.tar.gz

Test whether your compiled minerd launches fine: Code:

./minerd --help

It'll return all its command options.

  • Now head over to a Pool and follow the instructions posted, for example:
./minerd -o stratum+tcp://pool.miner.com:3333 --userpass=username.worker:password

If you wish to run this process in the background so it doesn't close once you drop the SSH connection, use screen. When a screen session is detached, the processes that were running inside it are not stopped.

Launch screen

screen

Hit space, then launch the miner; e.g.

./minerd -o stratum+tcp://pool.miner.com:3333 --userpass=username.worker:password

ctrl+d detatches the current screen sessions and brings you back to the normal terminal, you can re-attach your detached session by typing

screen -r

Notes

sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb++-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment