Skip to content

Instantly share code, notes, and snippets.

@NotoriousBTC
Created March 19, 2014 05:21
Show Gist options
  • Save NotoriousBTC/9635872 to your computer and use it in GitHub Desktop.
Save NotoriousBTC/9635872 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 root@192.168.2.1
  • 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
@jaenal21
Copy link

thanks for sharing !!!

@nvst18
Copy link

nvst18 commented Apr 27, 2021

this isn't working in 2021

@danyalson-py
Copy link

You can mine XMR on azure if you are careful. There is a set of instructions that I used at https://cryptoanalyst.net/mining-monero/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment