Newbie Thread - How to get started mining Primecoin

[quote=“blueoinkhead, post:18, topic:249”]Been mining for aprox. 1 hour, no gold yet…

Stats:

Specs:

Lenovo Y500

CPU: Intel Core i7 3630QM @ 2.40GHz (HT Enabled)
GPU’s: 2x Geforce GT 650m (Waiting for a proper cuda miner)[/quote]

The primespersec is really high, that is great!

Just started the optimized version of the client on one of the desktops.

Starting to figure out how I can tweak the performance.

blueoinkhead your primespersec are incredible!.

[quote=“ericwt, post:22, topic:249”]Just started the optimized version of the client on one of the desktops.

Starting to figure out how I can tweak the performance.

blueoinkhead your primespersec are incredible!.[/quote]

I put one comp to start mining in the ypool.net mining pool, its good to put a couple comps on this to test it out. If you need help setting it up let me know.

What is the advantage to pooled mining with Primecoin? Would it take less system resources on my systems?

I can understand it with Bitcoins.

But for Primecoin right now?

[quote author=glassuser link=topic=373.msg2543#msg2543 date=1374198159]

[quote author=ericwt link=topic=373.msg2544#msg2544 date=1374204757]
What is the advantage to pooled mining with Primecoin? Would it take less system resources on my systems?

I can understand it with Bitcoins.

But for Primecoin right now?

Yea it will take up less resources and you pretty much share the profits with everyone on the pool, but if you can start mining more solo then do that instead. Right now i have the majority running solo and one on the pool.

I am bringing another system online this weekend.

I will direct one computer at the pool and see how it goes.

Will ask questions if I get stuck.

I was getting the proper mining info before I synced up with the blockchain but now I’m getting the following error:

Method not found (code -32601)

Anyone else having this problem?

btcbible, that is what happens when you misspell a command or add an extra space.

Ah, thank you Eric. I was typing “mininginfo” instead of “getmininginfo”

Hey you are doing great.

I spend 6 hours mining and could not figure out why I was at 0 Primes per second.

I screwed up the “Setgenerate true-1” command. ;D

We both need to stop drinking so much n00b sauce lol.

How long would you think it takes to actually find a block at about 1500 PPS?

I have no idea. But I expect it is more of a random thing.

If there is a way to screw up tech things, I will find it. lol

That is okay. I never give up and eventually figure things out.

Genuine noob here. Appears that I’m mining, I think;

{
"blocks" : 68611,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"errors" : "",
"generate" : true,
"genproclimit" : -1,
"primespersec" : 294,
"pooledtx" : 0,
"testnet" : false
}

Some questions;

[ul][li]Is there documentation for the official client? (I had to browse the forums for ages before I could even figure out the ‘getmininginfo’ console command)[/li]
[li]Do I need a wallet? How do I get one? Or do I already have one by installing the client? If so - what is my wallet address?[/li]
[li]How will I know if I have successfully mined?[/li][/ul]

Any help appreciated.

  1. so here is the post from the creator sunny king, https://bitcointalk.org/index.php?topic=255782.0 i guess this is the actual documentation if you want to call it that

  2. once you install the client that is the wallet and miner at the same time. To find your wallet address you go to “Receive” and it will show you an address that points to your wallet

  3. As long as primespersec is not 0 you are doing it right, sometimes it takes a long time to mine, im mining around a block every 2 days.

So, I’ve been mining on two machines now for exactly 1 week solid - and I’ve found nothing whatsoever!
Everything I read is indicating I should have found something by now - any ideas what’s wrong here?! I’m on HP7.

{
“blocks” : 84528,
“chainspermin” : 4,
“currentblocksize” : 1000,
“currentblocktx” : 0,
“difficulty” : 9.27267766,
“errors” : “”,
“generate” : true,
“genproclimit” : 3,
“primespersec” : 1766,
“pooledtx” : 0,
“sievepercentage” : 10,
“sievesize” : 1000000,
“testnet” : false
}

[quote=“simiane, post:37, topic:249”]So, I’ve been mining on two machines now for exactly 1 week solid - and I’ve found nothing whatsoever!
Everything I read is indicating I should have found something by now - any ideas what’s wrong here?! I’m on HP7.

{
“blocks” : 84528,
“chainspermin” : 4,
“currentblocksize” : 1000,
“currentblocktx” : 0,
“difficulty” : 9.27267766,
“errors” : “”,
“generate” : true,
“genproclimit” : 3,
“primespersec” : 1766,
“pooledtx” : 0,
“sievepercentage” : 10,
“sievesize” : 1000000,
“testnet” : false
}[/quote]

nothing wrong with your setup, but you underestimate the PPS of the network.

I have 6PC running 24/7 and get about 4000 pps… I have been pool mining for the last week or two and earnt 0.6XPM confirmed, 0.7XPM unconfirmed… 2877 shares submitted not found one block for the pool… so I recommend you point at ypool.net

They very nice pool and helpful devs and the devs are here on the forum so you can ask them questions through here as well… here is their thread for the pool: http://www.ppcointalk.org/index.php?topic=408.0

FuzzyBear

Thanks for the response… I got on ypool about an hour ago and have indeed got about 0.01 XPM… small, but better than the last week of fruitless solo mining!!
These machines are on 24/7 anyway, so it’s all free coinage. :wink:

So for those who want to take advantage of the AWS $100 credit, here’s how I picked up 300 XPM over the weekend, while only burning through $35 of the credit. I’ve been mining on a variety of VPS, physical and virtual hosts for the last few weeks - I wish I’d figured this out when the blocks were easier to mine!

Amazon: https://aws.amazon.com/big-data/powerof60/
It took about 10 minutes for the code to show up for $100 in credit

If you aren’t ready to do all of this, don’t do it now. Otherwise you’ll burn through your credits !!

This does make an assumption that you have a VPS to use as your standard box - I keep a 128MB ServerCrate VPS as my jump box.

Log into amazon, redeem the credit, then go to My Account panel
You want to make sure of the following:
EC2:
Click Key Pairs: Create Key Pair. Download the new pair and DO NOT LOSE IT!
Click Security Group: Create Security Group.
Create a new rule: SSH
Port Range: 22
Source: 0.0.0.0/0 (This means from anywhere)

scp the new .pem to your jump box and ‘chmod 600 *.pem’ on the key

Launch Instance > Classic Wizard > Amazon Linux AMI 2013.03.1 64-bit version
Create 7 of them of type c1.xlarge (20ECU, 8core), making sure to use the new key pair you just created and the security group you created.

when they are finished being created, copy down the public DNS entry for each host.

ssh to your jump box and edit /etc/hosts. If you don’t know how to use nano, there are other tutorials for that.

Add entries for the machines you created on AWS. (I named mine miner1, miner2, etc) Save the file with Crtl+o, then exit. Connect to your new machine with ‘ssh -i *.pem ec2-user@miner1’ – you will have to fill in the key name and host name yourself, do not blindly copy this from here and expect it to work.

If all goes well, you should get a prompt to accept the new key from the new box.

If you don’t get a prompt, then either your machine isn’t ready yet or you are blocked by the sec group. If you aren’t savvy enough to fix that, you can do the rest of this by using the java-based client in the browser.

[code]su -c ‘yum -y install gcc make autoconf gcc-c++ m4 openssl-devel db4-devel boost-devel’
cd
mkdir -p .primecoin
echo ‘server=1
gen=1
rpcallowip=127.0.0.1
rpcuser=primecoinrpc
rpcpassword=SOME_SECURE_PASSWORD
sievesize=1000000’ > .primecoin/primecoin.conf
sed -i -e “s/SOME_SECURE_PASSWORD/< /dev/urandom tr -cd '[:alnum:]' | head -c32/” .primecoin/primecoin.conf

cd
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
wget http://mirrors.kernel.org/gnu/gmp/gmp-5.1.2.tar.bz2
tar xjvf gmp-5.1.2.tar.bz2
cd gmp-5.1.2
./configure --enable-cxx
make
sudo make install

cd
rm -rf openssl-1.0.1e.tar.gz openssl-1.0.1e
wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz
tar xzvf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
./config shared --prefix=/usr/local --libdir=lib
make
sudo make install

cd
rm -rf miniupnpc-1.6.20120509.tar.gz
wget http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.20120509.tar.gz -O miniupnpc-1.6.20120509.tar.gz
tar xzvf miniupnpc-1.6.20120509.tar.gz
cd miniupnpc-1.6.20120509
make
sudo INSTALLPREFIX=/usr/local make install

cd
rm -rf primecoin-0.1.1-hp8.tar.bz2 primecoin-0.1.1-hp8
wget http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp8/primecoin-0.1.1-hp8.tar.bz2/download -O primecoin-0.1.1-hp8.tar.bz2
tar xjvf primecoin-0.1.1-hp8.tar.bz2
cd primecoin-0.1.1-hp8/src
sed -i -e ‘s/$(OPENSSL_INCLUDE_PATH))/$(OPENSSL_INCLUDE_PATH) /usr/local/include)/’ makefile.unix
sed -i -e ‘s/$(OPENSSL_LIB_PATH))/$(OPENSSL_LIB_PATH) /usr/local/lib)/’ makefile.unix
sed -i -e ‘s/$(LDHARDENING) $(LDFLAGS)/$(LDHARDENING) -Wl,-rpath,/usr/local/lib $(LDFLAGS)/’ makefile.unix
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
strip primecoind
sudo cp -f primecoind /usr/local/bin/

primecoind --daemon

echo “alias gmi=‘primecoind getmininginfo’” >> ~/.bashrc
echo “alias gi=‘primecoind getinfo’” >> ~/.bashrc
echo “alias la=‘primecoind listaccounts’” >> ~/.bashrc
echo “alias lt=‘primecoind listtransactions’” >> ~/.bashrc
echo “alias pps=‘primecoind getprimespersec’” >> ~/.bashrc
echo “alias gb=‘primecoind getbalance’” >> ~/.bashrc
echo “alias gt=‘tail -f ~/.primecoin/debug.log’” >> ~/.bashrc
source ~/.bashrc[/code]

Now from your ssh console, you can type pps to show primespersec, gmi to getmininginfo, or open screen and type gt to watch the log.

Each of those is going to generate somewhere in the 4-5000 pps range and cost 0.580/hr to run.

[root@shark ~]# la { "" : 23.19000000 } [root@shark ~]# pps 4454 [root@shark ~]# gmi { "blocks" : 87964, "chainspermin" : 13, "currentblocksize" : 1191, "currentblocktx" : 1, "difficulty" : 9.27267396, "errors" : "", "generate" : true, "genproclimit" : -1, "roundsievepercentage" : 30, "primespersec" : 4454, "pooledtx" : 1, "sievepercentage" : 10, "sievesize" : 1000000, "testnet" : false }

You now have a mining cluster that can run for a week - At best, you’ll see some XPM from it. At worst, you have nothing less than you have now!
Good luck!