Thursday, July 11, 2013

Mining PrimeCoin using DigitalOcean (VPS)

I'd like to quickly write up what Vorksholk suggested. It has been working better than EC2 for me. If you sign up please use my referral link below. I take no responsibility for your results or the security of this arrangement! Usually I would suggest not using root for anything, but hey, time's a wastin'!

1) Go to DigitalOcean and sign up for an account.

2) Use this code for a free $10 credit on Ubuntu instances: Get Here

3) Create an Ubuntu 13.04 x64 droplet for $.007/hr. That's $5 a month so you should be able to run 2 instances for a month with little risk.

4) You will be emailed an ip address and password. SSH into your new VM.
Read more :
https://www.digitalocean.com/community/articles/how-to-create-your-first-digitalocean-droplet-virtual-server

To get the latest primecoin miner you need to build from source, below. When a new binary is posted I will link to it here.

5) Download primecoind from sourceforge, you may have to find a new link but this works for now:

Code:
wget -O primecoind-0.1.0-linux.tar.gz "http://downloads.sourceforge.net/project/primecoin/0.1.0/primecoin-0.1.0-linux.tar.gz?r=&ts=1373384018&use_mirror=superb-dca3"
tar -zxvf primecoind-0.1.0-linux.tar.gz
mv primecoin-0.1.0-linux/bin/64/primecoind /usr/local/bin/.

6) Set up your primecoin.conf.

Code:
mkdir ~/.primecoin
echo "rpcuser=yourusername
rpcpassword=SomethingReallyLongThatNoOneCouldGuess
gen=1" > ~/.primecoin/primecoin.conf

7) Now you can start mining!
Code:
primecoind --daemon

 To keep an eye on the fruits of your labors you can use the watch command. This will show you your primespersec and if you find a block.

Code:
watch 'primecoind listtransactions & primecoind getmininginfo'


FYI, signing up for multiple accounts using the same info is against their terms of service. If you do this you may have your account removed by DigitalOcean and lose access to any coins you've mined.

Speed reports
user speed range instance details
TheSpiral 200-270pps
twobits 75-100pps 1 core
twobits 700pps 4 core
CyberClones 112-169pps
kimosan 100-180pps 1-core/1gig
kimosan 270-330pps 1-core/1gig

Old speeds before update...
Entz: 30-40pps
jaakkop: 28-70pps
kimosan: 7-25pps
TheChries: 18-49pps (Note: anecdotally reports "New York 1" gives best performance)
anon2301: 25-30pps

Update

Today's update vastly improves mining. I'm getting up to 200 on the smallest instance, the large instance gets 1500+, I built it like this on the large instance.

Code:
apt-get install git
git clone https://github.com/primecoin/primecoin.git
apt-get install build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y
cd ~/primecoin/src 
make -f makefile.unix USE_UPNP=-
mkdir ~/.primecoin
echo "rpcuser=UserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
primecoind --daemon
watch 'primecoind listtransactions & primecoind getmininginfo'

Getting coins to another wallet:

There are a number of ways to do this:

After they've matured:

Code:
primecoind sendtoaddress address amount

Show address
code:
primecoind getaccountaddress <your rpcuser>

Show amount:
code:
primecoind getinfo

Show speed:
code:
primecoind getmininginfo

Before they've matured:
from vps:
Code:
primecoind listtransactions # to find the receiving address
primecoind dumpprivkey $receiving_address

from home:
Code:
primecoind importprivkey $privkey_from_vps

I then remove the wallet.dat from the vps to get all new keys, though its not necessary.

Website
http://primecoin.org

Design paper published today at
http://ppcoin.org/static/primecoin-paper.pdf

Source code will be available at:
https://github.com/primecoin/primecoin

Official Build (Windows + Linux, primecoind & primecoin-qt) will be available at:
https://sourceforge.net/projects/primecoin/files/

Exchange :
https://www.cryptsy.com/markets/view/63
https://mcxnow.com/exchange/XPM
http://www.coins-e.com/exchange/XPM_BTC/

DONATE [ PrimeCoin ] : AKNvVLAJYCAtk5WFbe8XBWxN7WrxYScZ9q
Post a Comment