This guide will explain to you step by step how to quickly set up several miners without having to make them one by one and do it with almost no typing. As well as setting it up so that even if the server resets your miner will keep on mining.
First set up and account and billing information on digital ocean.
Important- If you are feeling nice you can use my referral code 7ea6639b1f9b so I can get some credit on my account.
Then once that is set up go to create droplet
- Give it a hostname e.g Myfirstminer1
- Select a size. I have found the $20 option to be most efficient
- Select region either San Francisco or Amsterdam 2
- Select Image Ubuntu 13.04 x64 or 13.10 x64
- Click Create Droplet and wait until complete.
Now your droplet is read to be accessed and you will have received an email with the access details. To access your droplet you follow one of the following processes depending on your operating system.
Macs
Open Terminal and use the command ssh root@ then enter your password
Windows
Download and open http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Paste the ip address you were emailed into the host name box and click open. Then type root as the user and paste in the password (right click to past in windows putty).
You will then enter into the command line of your program and then you copy and paste the following commands in one by one.
sudo apt-get update
sudo apt-get install yasm -y git make g++ build-essential libminiupnpc-dev
sudo apt-get install -y libboost-all-dev libdb+±dev libgmp-dev libssl-dev dos2unix
git clone https://github.com/thbaumbach/primecoin
cd ~/primecoin/src
make -f makefile.unix
cd
apt-get install supervisor
mkdir -p /var/log/supervisor
touch /etc/supervisor/conf.d/primecoin.conf
nano /etc/supervisor/conf.d/primecoin.conf
Important - When you input the install supervisor you will be prompted by the terminal to answer a question y/n just type y and press the enter button.
Important - There will be a long wait after you input the makefile.unix command
Now it should have opened a new window in the terminal where you are going to paste in your mining pools details. I have set this example text to run on the American http://beeeeer.org/ mining pool but if you want to mine with a different pool just go to their website and they will tell you the values you need to input in each section e.g. poolpassword.
Example Text below (Edit then Copy it all)
[program:primecoin]
command=/root/primecoin/src/primeminer -pooluser=AVRSjnEdfxYpXTWszca2gcSTvMSARf4wT4 -poolip=54.200.248.75 -poolport=1337 -genproclimit=1 -poolpassword=PASSWORD
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
autorestart=true
Important - Make sure you change pooluser to your wallet address
Important - Make sure you change the genproclimit= value to the number of cpu in your droplet eg if you chose the 20 dollar option you should put 2. Otherwise it will not utilize the other cpu and you will be paying more for nothing.
After you have pasted the edited text above you press cntrl-x for windows or cmd-x for Mac. Then answer y to the question and press enter twice.
You can now enter in these final commands and you will be able to see your miner at work.
/etc/init.d/supervisor stop
/etc/init.d/supervisor start
tail -f /var/log/supervisor/primecoin.log
Important- Here are some rough guides to payout in xpm depending on how long prime found is 7=0.00149 8=0.0165 9=0.1987 10=0.2174 X=0.2224
Now if you just wanted the single miner you can close the program (it will keep running even if the server is reset) and you have finished this guide, but if you want to easily set up copies of this miner keep on reading.
To do this we want to shut down our miner (it has to be powered down in order to clone it), by firstly exiting the log by pressing cntrl-z or cmd-z and then we shut the program down with the following command. Don’t worry it will automatically start up later in this guide.
sudo shutdown -h now
Then you log back in to digital ocean and go to your droplets. You will see the name of your miner click on it and it will take you to a new window. There you will see a tab named snapshot, click it and type in a name for your clone eg miningclone1 then you click make snapshot.
After it finished taking a snapshot go to the images tab on the left side of your digital ocean account, you should see your clone there under snapshots. Click on the globe next to your clone to make it available in all regions. Once that is complete all you have to do to create a new miner is click on the create button and follow these instructions.
- Give it a hostname e.g Myfirstminer2
- Select a size
- Select a region
- In Select image click on my images and the click on your clone eg. miningclone1
- Click Create Droplet and wait until complete.
Now you can clone yourself and army of miners!
Important - Remember if you set up the original miner to use 1 cpu then all the clones you set up should also use the same amount of cpus. Because even if you select an option that has 2 or 8 cpus it will not use them since you have programed the original miner to only use 1 cpu. If you wish to use more or less cpus than what your original miner uses you should create another miner with the correct number of cpus. The other more technical option is to use the nano command in this guide to edit your mining instructions after stopping the supervisor and create a clone of that edited miner.
To monitor your Miners for beeeeer.org go to http://xpm.syware.de/ and paste in your wallet address or http://beeeeer.org/user/ and add your wallet address after user.
If you found this guide useful and are feeling generous you can either refer me when setting up your account in digital ocean
refcode=7ea6639b1f9b
or send a tip
XPM - AVRSjnEdfxYpXTWszca2gcSTvMSARf4wT4
BTC - 1B4c4MwjwoSfayteqQdtP9EePVhHvtjFNH
PPC - PFiAvQkuCxS2vLhnnktzf985rUgwyLFDTo
Update - Replace this line in the code if you want to mine on the new XRam Pool.
-poolip=xpool.xram.co -poolport=1339 -pooluser=AVRSjnEdfxYpXTWszca2gcSTvMSARf4wT4 -poolshare=6 -genproclimit=1