Pages:
Author

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

sr. member
Activity: 479
Merit: 250
Does anyone use Chemisist's rebuild?
Quote
I've git cloned it and recompiled it on the smallest droplet (512MB 1 core) an hour ago. Didn't even had to re-size it to more memory, temporarily creating and destroying swap file for compilation, compiled while still mining.

Excellent results, it's doubled pps to previous version. It varies 250-350 pps. Recommended.

Same. Getting 300-450pps




How do I compile that?

I have the original Sunny build with the sieve update in my VPS'

Thanks for the input!
Well, somebody has to wright the full howto, so since there are no other volunteers...

First, it's easier to create the new smallest droplet. If you want to do it on the existing one you can do it also, I'll make cleaer the difference.

Create smallest droplet (512MB/ 1 CPU), select your region, select Ubuntu 13.04 x64. It has no desktop, we don't need it and desktop may make mining just a bit slower. Connect to a droplet console.

First change the root password, it's awkward to use default DigitalOcean password, hard to remember, type:
Code:
passwd
and enter the new password twice.
It's not recommended to work as root under linux, you can easily mess things up. Create a new user and make it a sudoer so it can do what root can, but safely. Enter a new password for the user and few enters, no need to enter other info:
Code:
adduser 
Make a newly created user a sudoer:
Code:
adduser  sudo
Now logoff and login again as a newly created user for the first time:
Code:
logoff
Then install all the apps and libraries you'll need in one step, -y at the and saves you for having to confirm things:
Code:
sudo apt-get install git build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y
If you already had a droplet earlier, you begin here. Remove the previous source of the primecoin, if you created new instance skip only this one step:
Code:
rm -rf primecoin
Now get fresh software from Chemisist repo on GitHub:
Code:
git clone https://github.com/Chemisist/primecoin.git
Create temporary swap file and mount it as swap, this avoids compilation errors which are all due to the lack of memory, 512MB is not enough for compilation:
Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
Move where the action takes place:
Code:
cd ~/primecoin/src
Compile the software, this takes a while, go get a cup of coffee:
Code:
make -f makefile.unix USE_UPNP=-
Unmount and remove the swap file, we don't need it for normal usage:
Code:
sudo swapoff /swapfile
sudo rm /swapfile
Create directory for wallet, configuration and logs:
Code:
mkdir ~/.primecoin
Create configuration file. For newbies, just type the first line, you'll get a prompt for second and third line:
Code:
echo "rpcuser=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
Move newly created executable to it's permanent place, where it will also be in the path:
Code:
sudo mv primecoind /usr/local/bin/.
Go home and start mining:
Code:
cd ~
primecoind --daemon
Watch the statistics and also get info about newly mined blocks:
Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

This should be it. You should have 300 pps in a few minutes. Tips are appriciated.


getting error couldnt find libdb5.3++-dev

Try apt-get install libdb-dev Smiley

now theres a error here git clone https://github.com/Chemisist/primecoin.git
legendary
Activity: 1713
Merit: 1029
Does anyone use Chemisist's rebuild?
Quote
I've git cloned it and recompiled it on the smallest droplet (512MB 1 core) an hour ago. Didn't even had to re-size it to more memory, temporarily creating and destroying swap file for compilation, compiled while still mining.

Excellent results, it's doubled pps to previous version. It varies 250-350 pps. Recommended.

Same. Getting 300-450pps




How do I compile that?

I have the original Sunny build with the sieve update in my VPS'

Thanks for the input!
Well, somebody has to wright the full howto, so since there are no other volunteers...

First, it's easier to create the new smallest droplet. If you want to do it on the existing one you can do it also, I'll make cleaer the difference.

Create smallest droplet (512MB/ 1 CPU), select your region, select Ubuntu 13.04 x64. It has no desktop, we don't need it and desktop may make mining just a bit slower. Connect to a droplet console.

First change the root password, it's awkward to use default DigitalOcean password, hard to remember, type:
Code:
passwd
and enter the new password twice.
It's not recommended to work as root under linux, you can easily mess things up. Create a new user and make it a sudoer so it can do what root can, but safely. Enter a new password for the user and few enters, no need to enter other info:
Code:
adduser 
Make a newly created user a sudoer:
Code:
adduser  sudo
Now logoff and login again as a newly created user for the first time:
Code:
logoff
Then install all the apps and libraries you'll need in one step, -y at the and saves you for having to confirm things:
Code:
sudo apt-get install git build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y
If you already had a droplet earlier, you begin here. Remove the previous source of the primecoin, if you created new instance skip only this one step:
Code:
rm -rf primecoin
Now get fresh software from Chemisist repo on GitHub:
Code:
git clone https://github.com/Chemisist/primecoin.git
Create temporary swap file and mount it as swap, this avoids compilation errors which are all due to the lack of memory, 512MB is not enough for compilation:
Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
Move where the action takes place:
Code:
cd ~/primecoin/src
Compile the software, this takes a while, go get a cup of coffee:
Code:
make -f makefile.unix USE_UPNP=-
Unmount and remove the swap file, we don't need it for normal usage:
Code:
sudo swapoff /swapfile
sudo rm /swapfile
Create directory for wallet, configuration and logs:
Code:
mkdir ~/.primecoin
Create configuration file. For newbies, just type the first line, you'll get a prompt for second and third line:
Code:
echo "rpcuser=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
Move newly created executable to it's permanent place, where it will also be in the path:
Code:
sudo mv primecoind /usr/local/bin/.
Go home and start mining:
Code:
cd ~
primecoind --daemon
Watch the statistics and also get info about newly mined blocks:
Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

This should be it. You should have 300 pps in a few minutes. Tips are appriciated.


getting error couldnt find libdb5.3++-dev

Try apt-get install libdb-dev Smiley
sr. member
Activity: 479
Merit: 250
Does anyone use Chemisist's rebuild?
Quote
I've git cloned it and recompiled it on the smallest droplet (512MB 1 core) an hour ago. Didn't even had to re-size it to more memory, temporarily creating and destroying swap file for compilation, compiled while still mining.

Excellent results, it's doubled pps to previous version. It varies 250-350 pps. Recommended.

Same. Getting 300-450pps




How do I compile that?

I have the original Sunny build with the sieve update in my VPS'

Thanks for the input!
Well, somebody has to wright the full howto, so since there are no other volunteers...

First, it's easier to create the new smallest droplet. If you want to do it on the existing one you can do it also, I'll make cleaer the difference.

Create smallest droplet (512MB/ 1 CPU), select your region, select Ubuntu 13.04 x64. It has no desktop, we don't need it and desktop may make mining just a bit slower. Connect to a droplet console.

First change the root password, it's awkward to use default DigitalOcean password, hard to remember, type:
Code:
passwd
and enter the new password twice.
It's not recommended to work as root under linux, you can easily mess things up. Create a new user and make it a sudoer so it can do what root can, but safely. Enter a new password for the user and few enters, no need to enter other info:
Code:
adduser 
Make a newly created user a sudoer:
Code:
adduser  sudo
Now logoff and login again as a newly created user for the first time:
Code:
logoff
Then install all the apps and libraries you'll need in one step, -y at the and saves you for having to confirm things:
Code:
sudo apt-get install git build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y
If you already had a droplet earlier, you begin here. Remove the previous source of the primecoin, if you created new instance skip only this one step:
Code:
rm -rf primecoin
Now get fresh software from Chemisist repo on GitHub:
Code:
git clone https://github.com/Chemisist/primecoin.git
Create temporary swap file and mount it as swap, this avoids compilation errors which are all due to the lack of memory, 512MB is not enough for compilation:
Code:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
Move where the action takes place:
Code:
cd ~/primecoin/src
Compile the software, this takes a while, go get a cup of coffee:
Code:
make -f makefile.unix USE_UPNP=-
Unmount and remove the swap file, we don't need it for normal usage:
Code:
sudo swapoff /swapfile
sudo rm /swapfile
Create directory for wallet, configuration and logs:
Code:
mkdir ~/.primecoin
Create configuration file. For newbies, just type the first line, you'll get a prompt for second and third line:
Code:
echo "rpcuser=ARPCUserName
rpcpassword=SomethingReallyLongOK
gen=1" > ~/.primecoin/primecoin.conf
Move newly created executable to it's permanent place, where it will also be in the path:
Code:
sudo mv primecoind /usr/local/bin/.
Go home and start mining:
Code:
cd ~
primecoind --daemon
Watch the statistics and also get info about newly mined blocks:
Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

This should be it. You should have 300 pps in a few minutes. Tips are appriciated.


getting error couldnt find libdb5.3++-dev
hero member
Activity: 602
Merit: 500
Has anyone found a block using Chemicist's source?

I only switched to chemsist's source an hour ago but in general I haven't found a block for the last 11+ hours.

I have found plenty.. So it blocks atleast Smiley
legendary
Activity: 1205
Merit: 1010
Please refrain from mining on momento. Our seed nodes are located there. If you kill the cluster you would cause me a lot of trouble.

I made a deposit there...0.1btc, what do I do with that then? :/
How/why would it hurt to mine on say one 8 core instance? I'm not super greedy, but don't feel like wasting money.

I think momento's cluster is very small, if I run mining in 2 vms, they basically each generate half compared to just run mining in 1 vm.

So don't try to consume all cpu there, I already felt slow there today. Mine some, I think you should be able to make the money back. But I would advise other people refrain from mining there.
hero member
Activity: 812
Merit: 1000
Please refrain from mining on momento. Our seed nodes are located there. If you kill the cluster you would cause me a lot of trouble.

I made a deposit there...0.1btc, what do I do with that then? :/
How/why would it hurt to mine on say one 8 core instance? I'm not super greedy, but don't feel like wasting money.
full member
Activity: 172
Merit: 100
I sent the bare minimum and tested momentovps and it was horrible.  I got disk errors reporting from the OS right after launching it and just closed it off to be forgotten forever.

I tried messing with amazon ec2 and I couldn't get it figured out.  Are you guys able to use amazon ec2 just like digital ocean to get machines setup in a short amount of time?

I posted in this thread just above you showing my results for amazon EC2. Ordering the machine is instantaneous for the most part. Booting the machine up takes roughly a minute. Using ubuntu, do the usual apt-get update and upgrade, taking roughly also a minute. I used the script shown here https://github.com/lucasjkr/PrimeMiner to set up the miner. From ordering to mining, it takes maybe 15 minutes at most.

Here are the commands to run the script:
Code:
sudo apt-get install git-core 
git clone https://github.com/lucasjkr/PrimeMiner.git
chmod 700 ./PrimeMiner/makeminer.sh
./PrimeMiner/makeminer.sh

When you run the script, it takes the longest, roughly ten minutes or so, but all you do is type in your root password in the beginning and then just walk away while the script does everything for you. When you come back, it will be running and showing the mininginfo refreshed every two seconds. You only pay per hour too, so at worst you loose out on 25 cents using the spot instance. Don't forget, for new subscribes to amazon web services you all get a year worth of the micro instance for free.

Here is what it looks like for the free instance: https://bitcointalksearch.org/topic/m.2718313
And for the largest CPU instance: https://bitcointalksearch.org/topic/m.2718581
hero member
Activity: 840
Merit: 1000
Has anyone found a block using Chemicist's source?

I only switched to chemsist's source an hour ago but in general I haven't found a block for the last 11+ hours.
member
Activity: 92
Merit: 10
Has anyone found a block using Chemisist's source?
sr. member
Activity: 476
Merit: 250
Question, after entering the following:

Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

How can you break out of that and get back to the command prompt?

Ctrl-C.

(Also, in that command you want a ";" and not a "&".)

Great, thank you Smiley

member
Activity: 84
Merit: 10
Question, after entering the following:

Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

How can you break out of that and get back to the command prompt?

Ctrl-C.

(Also, in that command you want a ";" and not a "&".)
sr. member
Activity: 476
Merit: 250
Question, after entering the following:

Code:
watch 'primecoind listtransactions & primecoind getmininginfo'

How can you break out of that and get back to the command prompt?



hero member
Activity: 840
Merit: 1000
Sorry about those of you that had issues with my version crashing.  You must have downloaded it while I was trying to get better version implemented for higher thread counts made.  It is currently functional and people with higher thread counts are now seeing improvements.  Thanks for having a look and testing out my (somewhat) improved version! (https://bitcointalk.org/index.php?topic=253662.new#new)

Thanks for the epic build. I'm getting 2k pps on my 8 core node.
legendary
Activity: 1205
Merit: 1010
Please refrain from mining on momento. Our seed nodes are located there. If you kill the cluster you would cause me a lot of trouble.
full member
Activity: 224
Merit: 100
Anyone else getting remote desktop connection issues? 1104 in Remote Desktop for windows, VNC just connects and quits..

On what server?
legendary
Activity: 1713
Merit: 1029
Anyone else getting remote desktop connection issues? 1104 in Remote Desktop for windows, VNC just connects and quits..
full member
Activity: 224
Merit: 100
referencing to this post https://bitcointalksearch.org/topic/m.2715241
OK since so many people have asked about the provider I use, it's https://momentovps.com/ .
Note that my first instance got 1000 pps until the second instance started mining. I currently have 6 instances running, each averaging around 450 - 500pps. One instance is running Chemicist's mod getting the same performance. I noticed no performance difference between 1GB and 256MB RAM, but it's possible there are some load balancing rules favoring instances with more RAM.

So if too many people join we will probably kill the cluster (I don't know which hardware is used, there's a topic here but it's pretty old). But since you have to install the OS on each server by hand via VNC (can't clone disks afaik, well now that i think about it you could attach two disks to one server and then clone the disk in linux; detaching drives doesn't work you have to delete the server, oh and their interface is a mess generally), I doubt too many people in this thread will make use of this provider.  Tongue

And before you get your hopes up, I got no blocks since I started mining there.
really? I've heard nothing but awful things about momentovps around here.

I sent the bare minimum and tested momentovps and it was horrible.  I got disk errors reporting from the OS right after launching it and just closed it off to be forgotten forever.

I tried messing with amazon ec2 and I couldn't get it figured out.  Are you guys able to use amazon ec2 just like digital ocean to get machines setup in a short amount of time?
sr. member
Activity: 350
Merit: 250
referencing to this post https://bitcointalksearch.org/topic/m.2715241
OK since so many people have asked about the provider I use, it's https://momentovps.com/ .
Note that my first instance got 1000 pps until the second instance started mining. I currently have 6 instances running, each averaging around 450 - 500pps. One instance is running Chemicist's mod getting the same performance. I noticed no performance difference between 1GB and 256MB RAM, but it's possible there are some load balancing rules favoring instances with more RAM.

So if too many people join we will probably kill the cluster (I don't know which hardware is used, there's a topic here but it's pretty old). But since you have to install the OS on each server by hand via VNC (can't clone disks afaik, well now that i think about it you could attach two disks to one server and then clone the disk in linux; detaching drives doesn't work you have to delete the server, oh and their interface is a mess generally), I doubt too many people in this thread will make use of this provider.  Tongue

And before you get your hopes up, I got no blocks since I started mining there.
really? I've heard nothing but awful things about momentovps around here.
member
Activity: 99
Merit: 10
Sorry about those of you that had issues with my version crashing.  You must have downloaded it while I was trying to get better version implemented for higher thread counts made.  It is currently functional and people with higher thread counts are now seeing improvements.  Thanks for having a look and testing out my (somewhat) improved version! (https://bitcointalk.org/index.php?topic=253662.new#new)
full member
Activity: 172
Merit: 100
And here is what an amazon c1.xlarge instance looks like.



If anyone would like me to test various things on amazon's various instances, feel free to ask! It costs me roughly 20 cents an hour using spot instances though, so I request 0.002 BTC per hour if anyone is interested.

Oh yeah, here is the getinfo:
Code:
{
    "version" : "v0.1.1xpm-beta",
    "protocolversion" : 70001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 24914,
    "moneysupply" : 426608.36000000,
    "timeoffset" : 0,
    "connections" : 8,
    "proxy" : "",
    "testnet" : false,
    "keypoololdest" : 1373673490,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""
}
Pages:
Jump to: