# \[UPDATED\] Guide to mining on DigitalOcean! ($0.007 per hour, 700+ PPS)

**URL:** <https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213>\
**Category:** Primecoin\
**Created:** [July 9, 2013, 8:26pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213 "2013-07-09T20:26:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 9, 2013, 8:26pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/1 "2013-07-09T20:26:28Z")

</div>

3/28/2014 UPDATE: Now using mikaelh’s HP12 miner. Thanks mikaelh!

Below I’ve written a step-by-step guide along with my personal tips. Please use my referral link below. Donations are welcome!  
(XPM: AbPbhpodUx4DDPpgrYUCuGrTVehqiVxHes | LTC: LSRn1M1kp7cukPnn9K6UcckVP5Mi3FA7PZ | BTC: 1CGz2zaJeJ1Bg5ttVtzNbNuR13ThchPHyk)

1. Visit [DigitalOcean](https://www.digitalocean.com/?refcode=04c6e664100a) and sign up for a new account.
2. Try any of these promo codes for a free $10 credit: [http://www.retailmenot.com/s/digitalocean](http://www.retailmenot.com/s/digitalocean) (note: you must enter it along with your credit card on the billing tab)
3. Create a 512GB / 1 CPU Ubuntu 12.10 x64 Desktop. (This is the best value for mining purposes. $0.007 per hour up to $5 per month and I preferred the Desktop just because I hate not having GUIs though there may be a slight performance decrease.)
4. You will be emailed the password for your “Droplet”. Use it to login via “console access”
5. Download Primecoin. [http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp12/primecoin-0.1.2-hp12.tar.bz2/download](http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp12/primecoin-0.1.2-hp12.tar.bz2/download)

```auto
apt-get install build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y
apt-get install libgmp-dev
tar jxf primecoin-0.1.2-hp12.tar.bz2
cd primecoin-0.1.2-hp12/src 
dd if=/dev/zero of=/swapfile bs=64M count=16
mkswap /swapfile
swapon /swapfile
make -f makefile.unix USE_UPNP=-
mkdir ~/.primecoin
echo "rpcuser=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
primecoind --daemon
```

1. Setup primecoind to load on startup: applications menu-\>settings-\>settings manager-\>session and startup-\>application autostart-\>add

```auto
/usr/local/bin/primecoind --daemon
```

1. Create a script on desktop to run watch your mining progress (This makes it easier as once you login you just have to double-click one icon to check on your mining stats)  
right click on desktop-\>create launcher-\>`watch 'primecoind listtransactions | grep "amount\|category" & primecoind getmininginfo'`
2. Now your first “Droplet” is all set.
3. To make more “Droplets” you can save time by cloning your first “Droplet” by saving it as an image and reusing it in “Create”. (note: this maybe a security risk because then all your Droplets will have the same wallet)
4. 

```
New accounts are limited to 5 "Droplets" however you can send in a support ticket to request your limit be increased.

```

5. 

```
To access your newly mined Primecoins

```

on VPS terminal:

```auto
primecoind listtransactions # to find your receiving addresses
primecoind dumpprivkey $receiving_address
```

on main wallet:

```auto
primecoind importprivkey $privkey_from_vps
```

Happy mining! Let me know if you have any questions or your own suggestions/improvements.

–  
Signed: Kenny Tan

---

<div class="post-metadata">

**Author:** ![Fuzzybear](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/fuzzybear/32/92_2.png) [@Fuzzybear](https://discourse.peercoin-library.org/u/Fuzzybear)\
**Post date:** [July 9, 2013, 10:41pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/2 "2013-07-09T22:41:55Z")

</div>

nice guide, i had a test with a few servers and found no advantage to increasing the number of cores and ram… think my server provider sucks 😛

---

<div class="post-metadata">

**Author:** ![craslovell](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/craslovell/32/163_2.png) [@craslovell](https://discourse.peercoin-library.org/u/craslovell)\
**Post date:** [July 10, 2013, 2:31am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/3 "2013-07-10T02:31:30Z")

</div>

Giving it a try, but it looks like the promo code isn’t working ☹

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 10, 2013, 2:49am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/4 "2013-07-10T02:49:22Z")

</div>

> [@craslovell](#):
>
> Giving it a try, but it looks like the promo code isn’t working ☹

Try any of these: [http://www.retailmenot.com/s/digitalocean](http://www.retailmenot.com/s/digitalocean)

---

<div class="post-metadata">

**Author:** ![craslovell](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/craslovell/32/163_2.png) [@craslovell](https://discourse.peercoin-library.org/u/craslovell)\
**Post date:** [July 10, 2013, 2:53am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/5 "2013-07-10T02:53:05Z")

</div>

> [@XPMiner](#):
>
> [quote=“craslovell, post:3, topic:213”]Giving it a try, but it looks like the promo code isn’t working ☹

Try any of these: [http://www.retailmenot.com/s/digitalocean](http://www.retailmenot.com/s/digitalocean)[/quote]

I was just about to say, HELLOSF works for $5 off.

Making a droplet now for fun, we will see how it goes!

---

<div class="post-metadata">

**Author:** ![craslovell](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/craslovell/32/163_2.png) [@craslovell](https://discourse.peercoin-library.org/u/craslovell)\
**Post date:** [July 10, 2013, 3:04am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/6 "2013-07-10T03:04:44Z")

</div>

Going to have to add some nodes, this droplet doesn’t like to play nice.

---

<div class="post-metadata">

**Author:** ![craslovell](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/craslovell/32/163_2.png) [@craslovell](https://discourse.peercoin-library.org/u/craslovell)\
**Post date:** [July 10, 2013, 3:06am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/7 "2013-07-10T03:06:56Z")

</div>

> [@craslovell](#):
>
> Going to have to add some nodes, this droplet doesn’t like to play nice.

scratch that it just had to think hard about it for 5 minutes 🙂

---

<div class="post-metadata">

**Author:** ![ekco](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@ekco](https://discourse.peercoin-library.org/u/ekco)\
**Post date:** [July 10, 2013, 3:30am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/8 "2013-07-10T03:30:25Z")

</div>

I’ve had so-so luck on my digitalocean miners - my openVZ miners perform a hell of a lot better.

digitalOcean1: 32 PPS  
digitalOcean2: 19 PPS  
digitalOcean3: 28 PPS

openVZ1: 118 PPS  
openVZ2: 312 PPS  
openVZ3: 230 PPS

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 10, 2013, 3:47am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/9 "2013-07-10T03:47:29Z")

</div>

[quote=“ekco, post:8, topic:213”]I’ve had so-so luck on my digitalocean miners - my openVZ miners perform a hell of a lot better.

digitalOcean1: 32 PPS  
digitalOcean2: 19 PPS  
digitalOcean3: 28 PPS

openVZ1: 118 PPS  
openVZ2: 312 PPS  
openVZ3: 230 PPS[/quote]

What’s the rate you’re paying for openVZ?

---

<div class="post-metadata">

**Author:** ![craslovell](https://discourse.peercoin-library.org/user_avatar/discourse.peercoin-library.org/craslovell/32/163_2.png) [@craslovell](https://discourse.peercoin-library.org/u/craslovell)\
**Post date:** [July 10, 2013, 3:59am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/10 "2013-07-10T03:59:34Z")

</div>

my droplet is getting about 3 PPS when I check it. Doesn’t bother me though it’s just for fun!

---

<div class="post-metadata">

**Author:** ![mhps](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mhps](https://discourse.peercoin-library.org/u/mhps)\
**Post date:** [July 10, 2013, 8:45am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/11 "2013-07-10T08:45:13Z")

</div>

According to this [https://en.bitcoin.it/wiki/Wallet#Bitcoin\_Qt](https://en.bitcoin.it/wiki/Wallet#Bitcoin_Qt) it is not a good idea to use the same wallet elsewhere (e.g. in the VM created by images)

The solution seems to be simple if the wallet in the image is empty – delete the wallet.dat and a new one will be generated when the wallet is run. [https://en.bitcoin.it/wiki/Securing\_your\_wallet#Making\_a\_new\_wallet](https://en.bitcoin.it/wiki/Securing_your_wallet#Making_a_new_wallet)

If you don’t know it yet – here is how to access your new coins from another wallet even before the coins mature. Useful when you have to give up the VM and the immature coins in it cannot be sent out: [http://www.ppcointalk.org/index.php?topic=333.0](http://www.ppcointalk.org/index.php?topic=333.0)

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 11, 2013, 4:27pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/12 "2013-07-11T16:27:43Z")

</div>

OP has been updated with optimizations.

---

<div class="post-metadata">

**Author:** ![DR3AMR2](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/d/3e96dc/32.png) [@DR3AMR2](https://discourse.peercoin-library.org/u/DR3AMR2)\
**Post date:** [July 11, 2013, 10:45pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/13 "2013-07-11T22:45:57Z")

</div>

For the watch section, you’ll get a cleaner output to show the mining info and balance (immature, mature and orphan) if you use this:

`watch 'primecoind listtransactions | grep "amount\|category" & primecoind getmininginfo'
`

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 11, 2013, 11:22pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/14 "2013-07-11T23:22:15Z")

</div>

[quote=“DR3AMR2, post:13, topic:213”]For the watch section, you’ll get a cleaner output to show the mining info and balance (immature, mature and orphan) if you use this:

`watch 'primecoind listtransactions | grep "amount\|category" & primecoind getmininginfo'
`[/quote]

Thanks! Updating OP

---

<div class="post-metadata">

**Author:** ![DR3AMR2](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/d/3e96dc/32.png) [@DR3AMR2](https://discourse.peercoin-library.org/u/DR3AMR2)\
**Post date:** [July 12, 2013, 2:50am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/15 "2013-07-12T02:50:00Z")

</div>

You can also get away with compiling the source code in the smaller single CPU droplet if you create a swapfile

`dd if=/dev/zero of=/swapfile bs=64M count=16
mkswap /swapfile
swapon /swapfile`

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 12, 2013, 6:48am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/16 "2013-07-12T06:48:10Z")

</div>

[quote=“DR3AMR2, post:15, topic:213”]You can also get away with compiling the source code in the smaller single CPU droplet if you create a swapfile

`dd if=/dev/zero of=/swapfile bs=64M count=16
mkswap /swapfile
swapon /swapfile`[/quote]  
Thanks again! Updated OP. What’s your XPM address? you deserve a tip! Btw, did you sign up as a result of my guide or did you already know about this?

---

<div class="post-metadata">

**Author:** ![n01d3x](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@n01d3x](https://discourse.peercoin-library.org/u/n01d3x)\
**Post date:** [July 13, 2013, 1:58am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/17 "2013-07-13T01:58:52Z")

</div>

Ok, so I have got my droplet set up and running. I can see the mininginfo, but how will I know when I find a block?

---

<div class="post-metadata">

**Author:** ![UnknownK](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/u/7bcc69/32.png) [@UnknownK](https://discourse.peercoin-library.org/u/UnknownK)\
**Post date:** [July 13, 2013, 8:12am UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/18 "2013-07-13T08:12:22Z")

</div>

According to you I signed up for a digital ocean account. But while entering the card details I didn’t notice any place where I can enter the promo code. They actually charged my original creditcard until I deactivated the account. please help me out here.

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 13, 2013, 6:39pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/19 "2013-07-13T18:39:31Z")

</div>

> [@n01d3x](#):
>
> Ok, so I have got my droplet set up and running. I can see the mininginfo, but how will I know when I find a block?

You can setup a main wallet to run on your main computer. Import the private keys from your droplet. Instructions are in OP. However you have to have mined blocks before you know what addresses you normally mine into.

---

<div class="post-metadata">

**Author:** ![XPMiner](https://discourse.peercoin-library.org/letter_avatar_proxy/v4/letter/x/8797f3/32.png) [@XPMiner](https://discourse.peercoin-library.org/u/XPMiner)\
**Post date:** [July 13, 2013, 6:40pm UTC](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213/20 "2013-07-13T18:40:05Z")

</div>

> [@UnknownK](#):
>
> According to you I signed up for a digital ocean account. But while entering the card details I didn’t notice any place where I can enter the promo code. They actually charged my original creditcard until I deactivated the account. please help me out here.

Just send in a support ticket, they will credit you $10.

[Next page](https://discourse.peercoin-library.org/t/updated-guide-to-mining-on-digitalocean-0-007-per-hour-700-pps/213.md?page=2)
