Pages:
Author

Topic: [XPM] Pool mining primecoin using DigitalOcean (VPS) - page 28. (Read 88579 times)

newbie
Activity: 42
Merit: 0
I have managed to compile it with the larger droplet thanks. If I want to move it to smaller droplets do I just have to move the primecoind file or is there more I have to move? Also is there a easy way to move it? tar it and upload it to dropbox?

Just the primecoind file.

From the directory where it is located:

scp primecoind otherdropletip:~/.

It will ask you for a password for the other instance. You should find the compiled binary in the home directory there.
Thanks got them all working with the new miner. Didn't see the post about resizing till I was done but that would have been a better way to do it.
Currently have 4 miners going here and they are each getting 155, 169, 143, 112 (All in new York) All on the smallest droplets.
full member
Activity: 154
Merit: 100
Okay, can we get instruction on how to extract coin from our DigitalOcean droplet.  It has been so long since I have had to do console/coding like this Sad.

Sure. I do it this way:

  • ssh into remote instance
  • ./primecoind listtransactions –> copy the address mentioned in the output at "address"
  • ./primecoind dumpprivkey {{paste copied address here}} –> copy the private key returned
  • on your local computer holding the "master wallet" -> ./primecoind importprivkey {{paste copied private key here}}
  • now address holding the minted coins appears in your local wallet

No need to send coins over the blockchain this way, immature coins can be imported immediately.
It may help

//How can I get the address before found a block?
sr. member
Activity: 378
Merit: 255
Got a PM:

Quote
HI,

I was trying your VPS thread thank you.  I will happily donate if it pays! Hope it does and have a question.

When running this after i ssh in what command will show amount of XPM i have if found?

And what command will allow me to send the XPM to a wallet address?

primecoind listtransactions will list any mined blocks.

You can then dumpprivkey from the VPS and importprivkey to your home wallet. I'll add it to the OP since its been asked a few times.
hero member
Activity: 644
Merit: 501
Thank you rethaw!

100 - 180 pps 1-core/1gig (compiled fine btw, didn't work on 512mb))
270 - 330 pps 1-core/1gig

Edit: Going to shut them off and try the 8-core. Pretty expensive though, hopefully can get a few xpm with it. Smiley

fyi you dont need to create a new droplet to build the code. you can actually just temporarily resize your single droplet, build, and then downsize again.

edit : this way you don't need to move the primecoind file from one droplet to another

Thanks for this.
sr. member
Activity: 401
Merit: 250
fyi you dont need to create a new droplet to build the code. you can actually just temporarily resize your single droplet, build, and then downsize again.

edit : this way you don't need to move the primecoind file from one droplet to another

Nice tip.

My plan was to clone my bigger droplet and reproduce it on a smaller server.
newbie
Activity: 50
Merit: 0
fyi you dont need to create a new droplet to build the code. you can actually just temporarily resize your single droplet, build, and then downsize again.

edit : this way you don't need to move the primecoind file from one droplet to another

update : im getting ~120 on 1core /512mb ... about 3x from before the update
sr. member
Activity: 378
Merit: 255
I have managed to compile it with the larger droplet thanks. If I want to move it to smaller droplets do I just have to move the primecoind file or is there more I have to move? Also is there a easy way to move it? tar it and upload it to dropbox?

Just the primecoind file.

From the directory where it is located:

scp primecoind otherdropletip:~/.

It will ask you for a password for the other instance. You should find the compiled binary in the home directory there.
newbie
Activity: 42
Merit: 0
I have managed to compile it with the larger droplet thanks. If I want to move it to smaller droplets do I just have to move the primecoind file or is there more I have to move? Also is there a easy way to move it? tar it and upload it to dropbox?
sr. member
Activity: 378
Merit: 255
Yeah, it worked with 5.1. Thanks.
But my second droplet, 5.3 is ok, after that makefile failed. Don't know why >"<

Me neither, but glad its working now!

Anyone care to post their pps? I'm getting around 150 on the smalls and 1500 on the 8-core.

EDIT: I should mention you will end up charging your card sooner if you use a larger instance.
full member
Activity: 154
Merit: 100

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=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
primecoind --daemon
watch 'primecoind listtransactions & primecoind getmininginfo'

Couldn't find any package by regex 'libdb5.3++-dev'
I'm using 13.4 64bit droplets too Sad

Try apt-get update?

libdb5.3++-dev - Berkeley v5.3 Database Libraries for C++ [development]

Otherwise you can use another version

libdb5.1++-dev or libdb4.8++-dev

Yeah, it worked with 5.1. Thanks.
But my second droplet, 5.3 is ok, after that makefile failed. Don't know why >"<
sr. member
Activity: 378
Merit: 255
Do you have to pay the monthly and hourly cost?   What are the two costs?

The monthly cost is just the sum of the hourly costs, i.e.

.007 / hour * 24 hours / day * 30 days / month = $5.04 / month
newbie
Activity: 17
Merit: 0
For anyone not wanting to give out creditcard details or if you simply don't have one:
1. go to https://bancore.com/
2. sign up
3. generate a card
4. use your new virtual credit card info for registering your droplets



AUrXSodpcj5LKio1v5jWfu6ZXNAZbveU1h
sr. member
Activity: 401
Merit: 250
I went ahead add set up a 2GB unit and it's compiling happily. Thanks.
legendary
Activity: 1456
Merit: 1000
Do you have to pay the monthly and hourly cost?   What are the two costs?
sr. member
Activity: 378
Merit: 255
Its a bad idea to grab someone else's precompiled binary.

Yeah I'm aware of that. I suppose I could fire up a droplet with 2GB of RAM temporarily, it's only 0.03 an hour. Wink

So it's definitely an out-of-memory issue?
I'm thinking of going this route too as I can't get it to work either.

So far, this is the only tested way to get the optimized miner in this thread. And since it scales with core count you can get huge pps on an 8 core instance...
newbie
Activity: 42
Merit: 0
Its a bad idea to grab someone else's precompiled binary.

Yeah I'm aware of that. I suppose I could fire up a droplet with 2GB of RAM temporarily, it's only 0.03 an hour. Wink

So it's definitely an out-of-memory issue?
I'm thinking of going this route too as I can't get it to work either.
sr. member
Activity: 401
Merit: 250
Its a bad idea to grab someone else's precompiled binary.

Yeah I'm aware of that. I suppose I could fire up a droplet with 2GB of RAM temporarily, it's only 0.03 an hour. Wink

So it's definitely an out-of-memory issue?
sr. member
Activity: 378
Merit: 255

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=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
primecoind --daemon
watch 'primecoind listtransactions & primecoind getmininginfo'

Couldn't find any package by regex 'libdb5.3++-dev'
I'm using 13.4 64bit droplets too Sad

Try apt-get update?

libdb5.3++-dev - Berkeley v5.3 Database Libraries for C++ [development]

Otherwise you can use another version

libdb5.1++-dev or libdb4.8++-dev
full member
Activity: 154
Merit: 100

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=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
primecoind --daemon
watch 'primecoind listtransactions & primecoind getmininginfo'

Couldn't find any package by regex 'libdb5.3++-dev'
I'm using 13.4 64bit droplets too Sad
legendary
Activity: 1456
Merit: 1000
I always get this when I try compiling.  Any tips? 

URCE=2  -MMD -MF obj/init.d -o obj/init.o init.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [obj/init.o] Error 4


Addressed earlier: need to build on a larger instance or remove the -O2 flag in makefile.unix.

When you say larger instance are u refering to " 1GB / 1 CPU 30GB SSD Disk 2TB Transfer" or which droplet are u making?
Pages:
Jump to: