Disclaimer: This is not a profitable way to mine so only do this if you’re interested in learning as it will cost you money.
First of all you’ll need to get yourself a Monero wallet, you can do this in one of two ways:
- Go to https://mymonero.com and get yourself a free wallet
- Go to https://getmonero.org and download the software to set yourself up a local wallet
For the purposes of this tutorial option one would be the easiest, alternatively feel free to use my address for testing:
Next go to Amazon Web Services and sign up for an account if you don’t already have one and sign in to your console and head over to EC2. We’re going to launch a spot request instance as the price is so much cheaper than the on demand price – at the time of writing this the spot price for m4.10xlarge is $0.3552 compared to the on demand price of $2.00.
Go to Spot Requests and Request Spot Instances. Change AMI to Ubuntu 16.04 and Instance Type to m4.10xlarge. Scroll down to Security Groups and select Default and launch-wizard-1. If there’s nothing showing in Key pair name then you’ll need to create one and download the PEM file, otherwise select the one that you want to use. Scroll down to the bottom and click Launch.
You should now be on a screen that’s showing the state of your spot request. Every minute or so, click on the refresh button until Status is showing as fulfilled, and once it has click on Instances on the left menu.
Select your instance and click Connect – follow the instructions on how to connect using your operating system.
Now at the command line, enter in the following:
$ sudo apt-get update $ sudo apt-get install libcurl4-openssl-dev git -y $ sudo apt-get install build-essential -y $ sudo apt-get install autotools-dev autoconf -y $ sudo apt-get install libcurl3 libcurl4-gnutls-dev -y $ git clone https://github.com/OhGodAPet/cpuminer-multi.git $ cd cpuminer-multi $ ./autogen.sh $ CFLAGS="-march=native" ./configure $ make $ sudo make install $ sudo minerd -a cryptonight -o stratum+tcp://xmrpool.eu:3333 -u 41neyamL4393wWmKAEUryViAkdKC9bjgYep4ahVAqSpWfC5Be717UC8NKKQGTQgaz3XbFoaQS7Cb9hZ1sBANKUVY93QM5qF -p x
Obviously changing my wallet address with yours (if you wish).
All being well you should now see the following, indicating that you’re mining Monero:
To see how you’re doing, head over to https://web.xmrpool.eu/ and scroll down to the bottom – enter in your wallet address and hit lookup.