• Crypto Sex Toys - PPC Adult Mega Store - 1000's of products, Same Day Dispatch, Fleshlights!
  • Advertise here for 1 PPC per day
  • Escrow for your PPC (PeerCoin) Trades. Fuzzy Escrow Service 1% fee
  • Limited Edition - Physical Primecoins and Peercoins! - Each is 1 Troy Ounce of .999 Fine Silver - Available with other merchandise only at FiniteByDesign.com

Author Topic: Newbie Thread - How to get started mining Primecoin  (Read 5807 times)

Offline btcbible

  • Jr. Member
  • **
  • Posts: 6
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #30 on: July 20, 2013, 03:56:42 am »
We both need to stop drinking so much n00b sauce lol.

Offline btcbible

  • Jr. Member
  • **
  • Posts: 6
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #31 on: July 20, 2013, 03:59:11 am »
How long would you think it takes to actually find a block at about 1500 PPS?

Offline ericwt

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #32 on: July 20, 2013, 04:13:51 am »
I have no idea. But I expect it is more of a random thing.

Offline ericwt

  • Jr. Member
  • **
  • Posts: 40
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #33 on: July 20, 2013, 04:21:04 am »
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.

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

Offline Thylacine

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #34 on: July 20, 2013, 06:22:41 am »
Genuine noob here. Appears that I'm mining, I think;

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

Some questions;
  • 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)
  • 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?
  • How will I know if I have successfully mined?

Any help appreciated.

Offline glassuser

  • Jr. Member
  • **
  • Posts: 21
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #35 on: July 23, 2013, 01:09:26 am »
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.

Offline simiane

  • Jr. Member
  • **
  • Posts: 7
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #36 on: July 27, 2013, 12:56:58 pm »
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
}

Online FuzzyBear

  • Administrator
  • Sr. Member
  • *****
  • Posts: 362
  • Karma: +22/-0
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #37 on: July 27, 2013, 01:32:07 pm »
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
}

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://ppcointalk.org/index.php?topic=408.0

FuzzyBear
BTC: 1FvMYwtkrQakoL8Zq1GjfKqTkm2a7TKt6N  |  LTC: LbMPUzwPRkWa5hCJGrEiRCeoYExY6Ujt1D  |  DEV: 1JfbPx4nSGFxfzhTK1h3gHbp1E1BkFbwFW
PPC: PDtcFPhMa9Hc9zTfoRG7zcURCRpcpRdMym  |  TRC: 1FzdruHpffAeW2ZBctDLwR8P4APVpATu2j  |  FRC: 1BADxscUvT42SFXZwXgxEfWVDHkV1QPTEj
NMC: N7q9zg9h4Scfx6R25RTL8LdGxCBQbgq8wz  |

Offline simiane

  • Jr. Member
  • **
  • Posts: 7
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #38 on: July 27, 2013, 01:44:49 pm »
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. ;)

Offline ekco

  • Jr. Member
  • **
  • Posts: 4
  • Karma: +0/-0
  • Ahoy
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #39 on: July 29, 2013, 07:44:15 am »
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: [Select]
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

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.

Code: [Select]
[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!

« Last Edit: July 29, 2013, 08:07:19 am by ekco »
XPM: AKdjLt941fj1V5yvGDwMTMjewrZqJS1UYb
BTC: 17LMVsaysvdAAU9kEHARouRaoEAqsCum3L

Offline anonninja

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
am I mining, or banging my head against a hard thing?
« Reply #40 on: August 15, 2013, 03:02:49 am »
Total Noob here, but trying ever so hard to learn quick!

this is what the cmd prompt is spitting out when i've run jhprimeminer on port 8332..

primes/s: 1436 best difficulty: 4.171054
primes/s: 1832 best difficulty: 3.966857
primes/s: 1768 best difficulty: 3.624665
primes/s: 1122 best difficulty: 3.849262
primes/s: 1006 best difficulty: 4.681544
primes/s: 592 best difficulty: 4.475273
primes/s: 1207 best difficulty: 3.937341
primes/s: 1675 best difficulty: 3.942418
primes/s: 1766 best difficulty: 4.361694
primes/s: 648 best difficulty: 3.907355
primes/s: 1213 best difficulty: 3.954675
primes/s: 976 best difficulty: 3.932220
primes/s: 940 best difficulty: 4.872685
primes/s: 1447 best difficulty: 4.868898
primes/s: 1772 best difficulty: 4.971047

so, does this mean i'm mining? my ypool stats show my worker as 'offline'

when i try to connect on ypool port 10034, i get an error code 0 message..

Offline icedaddy

  • Jr. Member
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #41 on: October 04, 2013, 07:55:45 pm »
I started mining litecoin, but like primecoin much better. The problem is I have 20 machines (with more coming as I acquire them) and I do not want to deal with 20+ wallets; yes there are scripts where I can transfer coins to a primary wallet, but that is just something more to go wrong. Litecoin/cpuminer lets me mine on several PCs from a single wallet. People are posting about mining primecoin on several PCs, but I believe they are using a pool. I could use a pool (I am now) but I doubt I would qualify as a "small miner" anymore and I keep hearing at my size I should solo mine. In any case I am sick of people accusing me of being a bot miner, which I am not; since I retired I have time on my hands and am building a cluster for the fun of it and because I can. So, is there any way I can mine my 20 machines/100 cores into a single wallet without using a pool?
XPM: AdSKb2ueBiZvhQJSptn8YforuLgskipCSD
LTC: LTsRnoAx54rCiy3EoVt2AAPF4EFXgDvuTb

Offline cakeboss

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #42 on: October 06, 2013, 06:21:42 pm »
I started mining litecoin, but like primecoin much better. The problem is I have 20 machines (with more coming as I acquire them) and I do not want to deal with 20+ wallets; yes there are scripts where I can transfer coins to a primary wallet, but that is just something more to go wrong. Litecoin/cpuminer lets me mine on several PCs from a single wallet. People are posting about mining primecoin on several PCs, but I believe they are using a pool. I could use a pool (I am now) but I doubt I would qualify as a "small miner" anymore and I keep hearing at my size I should solo mine. In any case I am sick of people accusing me of being a bot miner, which I am not; since I retired I have time on my hands and am building a cluster for the fun of it and because I can. So, is there any way I can mine my 20 machines/100 cores into a single wallet without using a pool?
Correct me if I'm wrong, but it should possible to use identical wallet.dat files on multiple computers. This way all clients you are running will have the same address(es).

Offline icedaddy

  • Jr. Member
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #43 on: October 07, 2013, 04:44:37 pm »
Correct me if I'm wrong, but it should possible to use identical wallet.dat files on multiple computers. This way all clients you are running will have the same address(es).
I have seen a number of posts indicating that using the same wallet on different computers as you describe causes corruption, but it wasn't clear to me if that is only if you open multiple QT clients at the same time on the copied wallets.
XPM: AdSKb2ueBiZvhQJSptn8YforuLgskipCSD
LTC: LTsRnoAx54rCiy3EoVt2AAPF4EFXgDvuTb

Offline OtakuNoVideo

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Re: Newbie Thread - How to get started mining Primecoin
« Reply #44 on: Today at 11:32:21 am »
Correct me if I'm wrong, but it should possible to use identical wallet.dat files on multiple computers. This way all clients you are running will have the same address(es).
I have seen a number of posts indicating that using the same wallet on different computers as you describe causes corruption, but it wasn't clear to me if that is only if you open multiple QT clients at the same time on the copied wallets.

I use my Wallet on 4 PCs without any problem.
If you decide to do poolmining you won´t need the wallet running on the PCs doing the mining.