Setting up EC2 instance
Create AWS Account
- Create an account with Amazon AWS.
- On the home page, click the services tab and then go to compute and click 'EC2'. Once you are there you will chose your region on the top of the page in the header section. Next click the 'Launch Instance' button at the center of the page and then select an AMI. For this tutorial I am using Ubuntu Server 16.04 LTS.
- Next you will need to choose an instance type. I am just going to use the preselected t2.micro for the tutorial. For the purpose of mining, the Compute Optimized and the GPU instances are your best choices.
- You can then skip to step six and under the source tap select my IP.
- Next press Review and Launch and then create a new key pair to be able to connect with your instance. Once the instance is live, you can connect to your instance using an SSH through Terminal, PuTTY or similar program.
- The final step is to install your mining software of choice and start mining! With a compute optimized c4.8xlarge instance you will get about 750 H/s when mining for Cryptonote currencies such as Qwertycoin.
SSH into instance
Download key pair that you created earlier
Make sure you are in the same directory as the key and allow permissions
chmod 600 <key-name>.pem
- SSH into instance
ssh -i <key-name>.pem ubuntu@<EC2-IP-Address>
Install mining software
- In the terminal install dependencies by running this command
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git
- Clone the package
git clone https://github.com/fireice-uk/xmr-stak.git
- To remove donations, type
constexpr double fDevDonationLevel = 2.0 / 100.0;
constexpr double fDevDonationLevel = 0.0 / 100.0;
- Make build directory
- Move into the new directory
- Run cmake
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
- Finish building it
XMR-Stak will now be located in
Move to where it's at
- Launch XMR-Stak