Published: 5 years ago

How to mine Primecoin (XPM) in the cloud

Today’s buzz is all about Bitcoin reaching $1,000 with people all over the internet crying about not jumping on the opportunity when it was early enough.

A few days ago, after discussing with some friends about alternative cryptocurrencies, I decided to see if it was feasible mining them in the cloud (on Digital Ocean) and making a profit from it. The reason I chose to go with alternative cryptocurrencies instead of going with Bitcoin, is that I believe at the moment it’s possible achieve a much higher ROI. They are still in their infancy and we can see some of them doubling their value in a matter of a couple of days as people is looking to alternative coins to invest.

For my experiment I picked Primecoin, since there was a enough documentation around, it’s still profitable to mine and it seems growing pretty quick. I also decided to mine with a pool called Beeeeer.org, since mining by yourself is much harder and this pool was very small-miners friendly.

As right now I see almost a 90% ROI with this setup.

Here’s a step-by-step guide on how to easily setup your cloud miner on Digital Ocean.

  1. Create an account on Digital Ocean (this link has my referral code)
  2. Create a Droplet. Select the 512MB / 1 CPU that only costs $5/mo (obviously bigger instances will mine faster but this is good for our experiment) and select Ubuntu 13.04 x64 as Image for the server.
  3. Once it has been created, you’ll receive an email containing instructions on how to connect to the server. Open the Terminal app and SSH into the server following the instructions in the email.
  4. Type the following commands in the Terminal (of course wait for them to be fully executed before typing the next one):

    sudo apt-get update
    sudo apt-get install yasm -y git make g++ build-essential libminiupnpc-dev
    sudo apt-get install -y libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix
    git clone https://github.com/thbaumbach/primecoin
    sudo dd if=/dev/zero of=/swapfile bs=64M count=16
    sudo mkswap /swapfile
    sudo swapon /swapfile
    cd ~/primecoin/src
    make -f makefile.unix

    This last command is going to take a while to execute. Just be patient. Once done, you have the machine ready to mine.

  5. Before starting to mine, I decided I wanted to have my miner to automatically start in case it crashes or the server is restarted for any reason. To do that you need to follow the following steps:

    apt-get install supervisor
    mkdir -p /var/log/supervisor
    touch /etc/supervisor/conf.d/primecoin.conf
    nano /etc/supervisor/conf.d/primecoin.conf

    (this will open a terminal editor)

  6. Paste the following text into the editor, making sure to add your actual Primecoin address (that you can get by registering on BTC-E, click on finances and click on deposit next to Primecoin) instead of XXXXXXXXXXXXXXXXXXX:

    [program:primecoin]
    command=/root/primecoin/src/primeminer -pooluser=XXXXXXXXXXXXXXXXXXX -poolip=54.200.248.75 -poolport=1337 -genproclimit=1 -poolpassword=PASSWORD
    stdout_logfile=/var/log/supervisor/%(program_name)s.log
    stderr_logfile=/var/log/supervisor/%(program_name)s.log
    autorestart=true
  7. Press Ctrl + X to exit and save
  8. /etc/init.d/supervisor stop
    /etc/init.d/supervisor start

  9. Congrats, your are a miner now :) You can see your miner in action with the command
    tail -f /var/log/supervisor/primecoin.log

  10. You can later check your earnings with the mining pool visiting
    http://xpm.syware.de/?a=XXXXXXXXXXXXXXXXXXX
    (make sure to replace XXXXXXXXXXXXXXXXXXX with your Primecoin address)

If you enjoyed this tutorial, feel free to donate to my beer fund :)
Donate Bitcoins

  • Chris

    How many chains / day are you getting from the one core?
    What does that work out as in XPM at today’s difficulty?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Right now I’m mining at about 400 primes/s/core, generating about 0.07/xpm/day/core

      • Plato

        how long does it take to get your first deposit? I have had it up and running for about an hour. If I buy a bigger server on digitalocean does it speed it up or do I need to change the setup?

        • http://www.DavideDiCillo.com Davide Di Cillo

          Beeeeer.org’s payout is 3 primecoins, so once you have that many coins they will send it to your wallet.

          What matters is the number of cores (just make sure to change -genproclimit=1 to whatever number of cores you have).

          • Plato

            Thanks. This is working. What is the best way to scale this up with $100/month in available spend?

          • http://nationalmafia.com DannyBoy

            Hi what aboyt ypool.net? Do I need to put username as my suername forexample omenek1989 and random password? or in username my primecoin wallet addres? pls reply on omenek16@gmail.com if anyone know pls write me email thanks in advance!

      • Dang

        It sounds pretty nice. Would You recommend to to use 4 CPU droplet, which osts 80$/month? What amount of droplets would You recommend to start with?

      • Mikhail Malyshev

        I’ve created everything as described, and it worked, thank you. But the problem is – it mines only with 187 pps, which gives only 0.006 CPD, which will give only about 3,47 USD per month, which is not profittable at all.. how you’ve got 400 PPS?

  • Artur

    Did everything by guide and got this, what did I do wrong? :)

    root@****:~/primecoin/src# tail -f /var/log/supervisor/primecoin.log

    tail: cannot open ‘/var/log/supervisor/primecoin.log’ for reading: No such file or directory

    • http://www.DavideDiCillo.com Davide Di Cillo

      If you do
      ps aux | grep primeminer

      do you see the miner working?

      Did you setup Supervisor with no problems?

      • Jack

        I had the same issue: hit CTRL+X, “Y”, ENTER when you close out of nano to save the file. CTRL+Z just killed my session.

        • http://www.DavideDiCillo.com Davide Di Cillo

          Sorry, that was typo on my end. Will fix once home.

        • http://www.DavideDiCillo.com Davide Di Cillo

          Fixed

      • Dennis

        Hello when I do ps aux | grep primeminer

        I get:
        root 12109 0.0 0.1 9440 904 tty1 S+ 10:11 0:00 grep –color=auto primeminer

        And what do I need to do next?

  • Matthew Lally

    poolpassword=PASSWORD

    Is this correct? What is the password for?

    • Matthew Lally

      Also, this is a very clear tutorial. Good job.

    • http://www.DavideDiCillo.com Davide Di Cillo

      They don’t require a password, so any value will work

  • xmp

    Hi, when I use /etc/init.d/supervisor start it says “Error: program section program:primecoin does not specify a command” Why is that? Thanks for the great tutorial btw.

    • http://www.DavideDiCillo.com Davide Di Cillo

      did you save the primecoin.conf correctly?

      • xmp

        I thought I did. I entered

        [program:primecoin]

        command=/root/primecoin/src/primeminer -pooluser=XXXXXXXXXXXXXXXXXXX
        -poolip=54.200.248.75 -poolport=1337 -genproclimit=1
        -poolpassword=PASSWORD

        stdout_logfile=/var/log/supervisor/%(program_name)s.log

        stderr_logfile=/var/log/supervisor/%(program_name)s.log

        autorestart=true

        then Press Ctrl + X to exit and save. Can you see what I did wrong there? Happy to contribute to your beer fund if I can figure it out.

        • http://www.DavideDiCillo.com Davide Di Cillo

          did you replace XXXXXXXXXXXXXXXXXXX with your primecoin address?

    • http://www.DavideDiCillo.com Davide Di Cillo

      in your supervisor file, did you pasted the first line as well?
      [program:primecoin]

  • hitchhiker999

    when I do tail, i’m just seeing this:

    connecting to 54.0.0.2:1337

    system:101

    Repeated over and over, is that ok?

    • hitchhiker999

      My mistake, a problem in the .conf with a newline while copy pasting 😀 – fixed. I suppose confirmation is the line : [MASTER] work received – in the log

  • Artur

    hey man, from server graphs I see that CPU is used only in 50% of capacity, is that the max we can use? or we can make it 100%? 😀
    Thanks

    • http://www.DavideDiCillo.com Davide Di Cillo

      I’m not sure, I’m looking to see a more optimized version of the miner.

      • Vinny Lingham

        Let me know if you find one…

    • ProfCrypto

      Same here. I am trying to find a way to use more CPU, but atm I am stuck. Anyway awesome guide Davide, thanks for your help.

  • futureminer

    i have a problem with the installer. when i wrote apt-get install supervisor i get a failure: -bash: cd:/root/primecoin/src: No such file or directory.

    what can i do? the miner doesnt work

    • http://www.DavideDiCillo.com Davide Di Cillo

      Was the repo cloned correctly?

  • Turniphead

    Works like a charm. Curious though – where is my primecoin wallet? Is it stored on BTC-E?

    • http://www.DavideDiCillo.com Davide Di Cillo

      BTC-E is an exchange, so once you reach 3xpm Beeeee.org will send you the coins there. I wouldn’t use BTC-E or any other online exchange to keep all my money, but it was the faster way to get setup with an address to send the Primecoin to. You can download a Primecoin wallet for mac at http://dls.21stcenturymoneytalk.org/dls/primecoin/Primecoin-Qt-osx.zip or win at https://app.box.com/s/3odyskwgd5k44mmg3sfc

      • http://leandroardissone.com/ Leandro A.

        Davide, is there a way to get your beeee.org wallet to your local wallet?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Yes, if you follow this tutorial, but you can use any Primecoin wallet.

  • ask

    If i made this command:
    make -f makefile.unix
    I get this error:
    In file included from main.cpp:16:0:
    prime.h:10:17: fatal error : gmp.h: No such file or directory
    compliation terminated.
    make: XXX [obj/main.o] Error 1

    Where is the failure

    • http://www.DavideDiCillo.com Davide Di Cillo

      Installing the libgmp-dev package should fix that.

  • Diego

    is http://xpm.syware.de/?a= working?
    after 3 hours I am still at 0.0 XPM :(

    PS: great post!

    • http://www.DavideDiCillo.com Davide Di Cillo

      It seems working for me. Sometimes it doesn’t update for a while and then it catches up. Are your server running correctly? What do you see when you type tail -f /var/log/supervisor/primecoin.log ?

      • Diego

        [STATS] 2013-11-28 18:23:18 | 408 primes/s, 6324 tests/s, 0 5-chains/h, 0.208 chains/d
        [MASTER] work received
        [MASTER] work received
        [MASTER] work received
        [MASTER] work received
        [MASTER] work received
        [STATS] 2013-11-28 18:24:18 | 348 primes/s, 5358 tests/s, 60 5-chains/h, 0.183 chains/d
        [MASTER] work received
        [MASTER] work received
        [MASTER] work received

        from the logs it seems to work but http://xpm.syware.de is empty :/

        • http://www.DavideDiCillo.com Davide Di Cillo

          Then you are good. Make sure that you are entering the right xpm address, but other than that you should see your coin soon. They are working to fix some backend stuff, so stats may be delayed.

  • Pingback: Tutorial: how to mine Primecoins in the cloud | XPM Coin()

  • good question

    if i test the miner with tail -f /var/log/supervisor/prime.log

    i just see

    connecting to 127.0.0.1:1337

    system:111

    Repeated over and over, whats wrong

    • http://www.DavideDiCillo.com Davide Di Cillo

      Did you try deleting the droplet and try all the steps again?

      • good question

        yes i try deleting the droplet and try all the steps again. but i get the same message.

        is that possible to copy paste the whole text in the terminal, or is that required to type the text with the keyboard?

        controll +c and control + v doesnt work.

        • http://www.DavideDiCillo.com Davide Di Cillo

          Make sure you don’t paste extra spaces

          • Steve

            I did everything you said and I have the exact same problem as the original poster.

          • Steve

            Fixed it by making the commands all a single line.

    • reuters

      I was having the same issue. noticed I had an extra space before my address. deleted the space, everything works fine

  • Sean Kean

    I’m getting two errors in this process:

    1) after running “make -f makefile.unix” the final messages before returning me to the command prompt are as follows –

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

    2) after running the last command in the tutorial, “/etc/init.d/supervisor start” i get the following messages –

    Starting supervisor: Error: File contains no section headers.
    file: /etc/supervisor/conf.d/primecoin.conf, line: 1
    ‘program:primecoin]n’
    For help, use /usr/bin/supervisord -h

    Any thoughts on what i did wrong? Thanks in advance!

    • Roadkill

      This usually happens when you don’t have enough memory. If you are trying to compile on 512Meg machine this could be the cause of the error.

  • http://perryhuang.com/ Perry Huang

    Are you achieving 90% ROI after one month on the 512mb DO instance?

    • http://www.DavideDiCillo.com Davide Di Cillo

      No, I’ve been mining only for few days. 90% is calculated based on the current difficulty and currency value. While the difficulty will definitely go up, I expect the currency to go significantly up as well.

  • Basil Siddiqui

    How do you join a pool?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Following these instructions you are joining the beeeeer.org pool

  • http://giacomoballi.com/ Giacomo Balli

    bravo!

    • http://www.DavideDiCillo.com Davide Di Cillo

      It’s based on the current mining rate and primecoin value.

      • http://giacomoballi.com/ Giacomo Balli

        si, ma dopo quanto?!

  • reuters

    Everything went ok until I entered the command to see my miner in action. I’m getting “connecting to 127.0.0.1:1337

    system:111” over and over. Any suggestions? I’m a bit of a noob

    • http://www.DavideDiCillo.com Davide Di Cillo

      You probably pasted some extra space after the address.

  • aquarius

    Has anyone had any luck upgrading the power of the VPS? Are there any calculations re: the economics of such an upgrade?

  • atomadam2

    Thanks man. Does the program and set-up change if you choose to go with a bigger than 5$/month droplet?

    • http://www.DavideDiCillo.com Davide Di Cillo

      just change genproclimit=1 to genproclimit=X where X is the number of cores of your machine.

  • Pupupsla

    I think the CPU is used only 50% because the default parameter -genproclimit=1means just one thread.

    • paul croasdale

      yeah i was wondering if it should be genproclimit=-1

  • Shaun Befort

    How do you explain this Reddit thread that says it’s unprofitable? Who’s right?

    http://www.reddit.com/r/primecoin/comments/1rsmgn/primecoin_profitability_calculations_and_mini/

    • http://www.DavideDiCillo.com Davide Di Cillo

      That post was written when the Primecoin value was much much lower, therefore unprofitable.

      • Shaun Befort

        That post was written less than a day ago.

        • http://www.DavideDiCillo.com Davide Di Cillo

          He’s using a very expensive droplet. The relation number of cores and monthly price isn’t linear. If you mine with the $5/mo droplet, you’d be profitable (but obviously you’d make little money).

  • Steve

    Does this work with ypool.net?

    • http://www.DavideDiCillo.com Davide Di Cillo

      This is specifically wrote for Beeeeer.org, for ypool probably the only difference is this line:

      command=/root/primecoin/src/primeminer -pooluser=XXXXXXXXXXXXXXXXXXX -poolip=54.200.248.75 -poolport=1337 -genproclimit=1 –

  • reuters

    Does this system work with http://middlecoin.com/ or https://hashco.ws/ ?

    • http://www.DavideDiCillo.com Davide Di Cillo

      No, also because mining SHA-256 currencies in the cloud is very inefficient.

  • paul croasdale

    genproclimit=1 or genproclimit=-1

    not too familiar with VMs, is there a difference between those two?

    • http://www.DavideDiCillo.com Davide Di Cillo

      “1” means you limit the process to 1 core, “-1” you set it to unlimited.

  • 北风(温云超, Yunchao Wen)

    excuse me, my primecoins show in http://xpm.syware.de/?a=AKZxWvChjxnzB9z9rMQno5NbbGKRtYbqgV (address got in btc-e), why still is 0 in btc-e funds ?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Beeeeer.org payout is 3xpm, right now you only generated 0.3.

      • 北风(温云超, Yunchao Wen)

        Thanks.

  • 北风(温云超, Yunchao Wen)

    if you run in Ubuntu 12.04, you must install these packages:

    libboost-chrono1.48-dev libboost1.48-doc libboost-date-time1.48-dev libboost-filesystem1.48-dev libboost-graph-parallel1.48-dev libboost-graph1.48-dev libboost-iostreams1.48-dev libboost-locale1.48-dev libboost-math1.48-dev libboost-mpi1.48-dev libboost-program-options1.48-dev libboost-python1.48-dev libboost-random1.48-dev libboost-regex1.48-dev libboost-serialization1.48-dev libboost-signals1.48-dev libboost-system1.48-dev libboost-test1.48-dev libboost-thread1.48-dev libboost-timer1.48-dev libboost-wave1.48-dev xsltproc doxygen default-jdk

    • soduase

      what is the command to install all these library…

    • Lars Føleide

      Awesome. That worked using the command
      sude apt-get install -y …. 😀

  • 北风(温云超, Yunchao Wen)

    if you don’t use root account, change the primecoin.conf to command=/home/yourusername/primecoin/

  • rqdasilva

    Thanks for the posting. when I type http://xpm.syware.de/?a=XXXXXXXXXXXXXXXXXXX with xxxx.. being my XPM address I get (Invalid address xxxxxx) everyting else is working… any ideas?

    • girt

      i have the same problem, did you resolve it?

      • rqdasilva

        No.

        • annodomini

          let’s fine some solutions folks!

  • Dang

    Hello, I tried the cloud mining now for 1 day and tried several CPUs running in different locaitions. The CPU load on exactly the same configurations is very different. One droplet shows 60% CPU load, another one 50% and another just 40%. Any idea why is it so? How could it be possible to rise CPU load to maximum capacity?

    • http://www.DavideDiCillo.com Davide Di Cillo

      It depends on who else is sharing the hardware with you, and you have no control over that.

  • Rassalas

    Ok I followed the instructions there were some unexpected problems along the way, like No Git installed, please follow these steps to install git.

    When I got to compiling I got an error regarding the gmp.h file the warning was vague or poorly scoped. I will paste in code below regarding the error. Please feel free to enlighten me if you may.
    Thank you for your interest.
    Rassalas

    /keystore.o keystore.cpp

    g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin/src -I/root/primecoin/src/obj -DUSE_IPV6=1 -I/root/primecoin/src/leveldb/include -I/root/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp

    In file included from main.cpp:16:0:

    prime.h:10:17: fatal error: gmp.h: No such file or directory

    #include

    ^

    compilation terminated.

    make: *** [obj/main.o] Error 1

    • http://www.DavideDiCillo.com Davide Di Cillo

      Are you using Digital Ocean with Ubuntu 13.04 64bit?

      • Rassalas

        I do believe so, I followed your instructions from scratch,
        “and select Ubuntu 13.04 x64 as Image for the server.”
        Is there a command I can type in the console to make sure?

  • PizzaCastle

    Hi, will this work if i snapshot the droplet and create multiple droplets using that snapshot?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Yes, and since it’s setup with Supervisor, it will also automatically start mining :)

      • PizzaCastle

        Okay perfect! Great guide btw

  • Rassalas

    I do believe so, I followed your instructions from scratch,
    “and select Ubuntu 13.04 x64 as Image for the server.”
    Is there a command I can type in the console to make sure?

    Since I didn’t hear back from you I decided to plow through the rest of the tutorial on the off chance the error I brought up earlier doesn’t matter. I’m afraid it must when I try the tail I get

    ” tail -f /var/log/supervisor/primecoin.log

    tail: cannot open ‘/var/log/supervisor/primecoin.log’ for reading: No such file or directory”

    I guess I’m thinking is there a way to tear apart my droplet and start over?

    • http://www.DavideDiCillo.com Davide Di Cillo

      From the settings you can delete a droplet.

  • dkleiw

    hi there.

    i followed your guided with your referel code.
    and copy all the scrip . but at the end before running the tail -f/var/log/supervisor/prime/log i got this message

    tail: cannot open `/var/log/supervisor/primecoin.log’ for reading: No such file or directory

    may i know what mistaken i did? thanks :)

    • http://www.DavideDiCillo.com Davide Di Cillo

      it’s not

      tail -f/var/log/supervisor/prime/log

      it’s

      tail -f /var/log/supervisor/prime/log

      • Rassalas

        Look Davide, you’ve got too comments saying the same thing, you’re ignoring the first and the second one you’re saying he mistyped it, even though the error he quotes does not say the typo you say he made.. What’s up with that?

        • http://www.DavideDiCillo.com Davide Di Cillo

          Sometime when you copy and paste code there are extra spaces at the beginning or the end of the command. Try to start again and make sure that you don’t have any of those, and I guarantee you it will work.

          • Rassalas

            Davide, I didn’t copy and paste I typed it in key by key,several times, same error. I suspect something has changed.

          • http://www.DavideDiCillo.com Davide Di Cillo

            Then try copy and pasting. A friend of mine just setup his machine and everything working fine.

          • Rassalas

            I had hoped to try that today, yesterday I was using a putty console and there was no pasting allowed.. I have a notion to try this from my old computer which is well configured to handle the SSH terminal etc. I do hope to have better results, but still a nagging worry bothers me about my first experience, after setting up the droplet as suggested and seeing no errors It didn’t know the Git nor the Make command. As I said earlier it was helpful in guiding me to install the proper software, but still why did I have to install Git and Make? and then later it was lacking a certain file when I tried to use the make command. I will try again I just didn’t have time to do it today. For nowthe old computer I plan to use is still at the office, so it will have to wait until tommorrow.

  • rqdasilva

    Thanks for the posting. when I type http://xpm.syware.de/?a=XXXXXX… with xxxx.. being my XPM address I get (Invalid address xxxxxx) everyting else is working… any ideas?

    • http://www.DavideDiCillo.com Davide Di Cillo

      It usually it shows up after you send the first successful chain.

  • Duncan Armstrong

    Thanks. Works perfectly if you follow the instructions and be careful not to add extra spaces. Mine’s a little slow ( no idea why) but getting there.

  • Rassalas

    Second time worked perfectly. My error first time (I think) was not selecting the correct Ubunto os.

    One more question can this be used to mine at ypool? I was looking at their connection info for ypool and it’s slightly different where you have to designate a worker. I decided not to get fancy until I got it working at least and mined something. But would be great if you could post alternate Primecoin.conf instructions for ypool…

  • annodomini

    http://xpm.syware.de/?a=AS1m5jjBmE

    Invalid address AS1m5jjBmEu

    Please suggest me why this is happening?

    • a88zach

      Same issue for me. Anyone have a clue what we are doing wrong?

      • annodomini

        could u nail this. I think i cracked at least 50 blocks with > %K XPM/s

    • Rassalas

      I had same thing, then once I cracked some blocks I started to get feedback data.

  • Rassalas

    So for 90% ROI means you pay $5.00/month, and get back ~ $4.50 in XPM?

    • http://www.DavideDiCillo.com Davide Di Cillo

      it means you spend $5 in servers, and you generate $9.50 in XPM (with a net profit of $4.50). Obviously that’s variable based on difficulty and XPM value.

      • Rassalas

        Ok, I’m jusy getting started, so my math was highly uncertain, thanks for your clarification.. perhaps I’ll make another droplet :)

  • Adam

    I am having a problem with using nano to write the primecoin.conf file, I am getting error writing file, can anyone help?

  • SSOOAADD

    Thank you for your tutorial.

    But I don’t understood. I can see that the CPU works, some “share” are submitted (I don’t remember the name), but NO WIN. After 7 hours, NO WIN. Can somebody explain me?

    Sorry for my bad english…

  • Damon Carpentier

    Excellent tutorial, it was my first time doing a server set up like this. Is there a similar setup like this for litecoin?

    • http://www.DavideDiCillo.com Davide Di Cillo

      Not really the same, since it wouldn’t be profitable on Digital Ocean. I should probably write a tutorial for that as well.

      • Damon Carpentier

        If you decide to please let me know. Thank you for sharing the knowledge.

      • Damon Carpentier

        Hey Davide,

        The server is working fine, but I want the payouts from beeeeer.org to go directly to my Primecoin Wallet. I changed the address from BTC-e.com’s to my Primecoin Wallet’s address, then I checked the http://xpm.syware.de/ and entered my Primecoin Wallet address. I received the following message: “Invalid address XXXXXXX..”

        Do I need to wait a day or so for a payment to be generated before I can see the new address show payment? Or is it something with in the nano programming I need to correct?

  • jamingo

    I purchased the $10/mo option, but didn’t read to update to genproclimit=X, how can I make the change now that I am already actively mining?

    • Scott Roberson

      You just stop it and restart it. it will pick up where it left off.

  • Damon Carpentier

    Have another question or two, how do you edit the Supervisor file? Just in case I want to send the coin directly to my Wallet and can this code be converted for litecoin or bitcoin?

    • http://www.DavideDiCillo.com Davide Di Cillo

      You can edit it with the same nano command.

      • Damon Carpentier

        How do I exit the log/supervisor file to return to the root@Prime?

  • Captain_Dirk

    Works perfect! Although DigitalOcean is very much not pleased with us using their CPU to the max.
    By the way, I Always thought that BTC-E didn’t accept autopayments from pools.
    Anyone had any problem with getting their XPM paid to BTC-E?

  • troy

    How would I make this run in multiple different cores? I have it running on my local ubuntu machine and it is using 1/4 cores, I would like to run it on 2 or maybe 3 of them.. is this possible?

  • Karmus

    Sir Davide Di Cillo,
    thank you for this how to.
    I´m using a Ubuntu Developer Server Image on a V-Server and i had to install some other packages to get it work. But i think that´s a Ubuntu problem. My STATS show me between 1050 and 1250 chains/d.Have a nice day.
    Karmus

    • darko

      HOWW? please explain the methods in which you are attaining 1000+ chains/d…are you sure youre not confusing it with primes/s

  • brazen

    all i get when running another server is this error

    Starting supervisor: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.

  • HeavyGloom

    hello david . first great guide work perfect on the first time . one question i heave for you … i see i allready mine 0.4 xpm in the http://xpm.syware.de/?a= . but they dont transfer to my wallet . how do i set auto transfer to my wallet >

    • edreamer

      Hello HeavyGloom,

      The pool that the miner is setup on this tutorial pays out at 3.0 XPM auto. AFAIK there is no manual payout option or option to change the auto payout threshold at this time on that pool.

      @Davide Di Cillo

      Great walk through guide.

      Thank you,
      E

  • Alex

    Hi, i have six droplet running on digital ocean, but my earnings are poor.
    With 3000 pps for each machine, i receive only one xpm a week.
    My mining pool is ypool.net.
    What’s wrong? Thank you!

    • Duncan Armstrong

      that sounds about right (or perhaps a little low). Each droplet only has 1 cpu ( if you’re using the $5 plan) so it’s limited mining capacity and you’re not going to make millions this way. Unfortunately it doesn’t appear to scale in a profitable way. I have used 1 droplet for 11 days and 1 for 3 days (so 2 now) and i’ve just got my first whole Primecoin (works out fine, still making a profit) but i’m using beeer.org. Maybe ypool is less efficient with these settings.

      • Mikhail Malyshev

        how much PPS you have on each droplet? I only have 167 … this will give only 3.47 $ per month, which is less than 5$ costs…

        • Duncan Armstrong

          my first one is giving me around 300pps and the second one is roughly the same as yours ( ><160). Both droplets are the same so i'm not sure why there's such a big difference. Also there's recently been a hefty crash in value of cryptos (bitcoin down to $650 – where bitcoin leads the others follow) so harder to make profit now.

          • Duncan Armstrong

            Also, I think I misread Alex’s original post as 300pps – no idea how he’s getting 3000pps but i’m guessing it’s on a higher core / price droplet.

  • faith

    hi, after the stpes i had problem, below from log file :(

    root@sunny:~/primecoin/src# cat /var/log/supervisor/supervisord.log
    2013-12-14 01:57:39,115 CRIT Supervisor running as root (no user in config file)
    2013-12-14 01:57:39,155 INFO RPC interface ‘supervisor’ initialized
    2013-12-14 01:57:39,155 WARN cElementTree not installed, using slower XML parser for XML-RPC
    2013-12-14 01:57:39,155 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
    2013-12-14 01:57:39,156 INFO daemonizing the supervisord process
    2013-12-14 01:57:39,157 INFO supervisord started with pid 28222
    2013-12-14 02:44:51,136 WARN received SIGTERM indicating exit request
    2013-12-14 02:45:05,326 CRIT Supervisor running as root (no user in config file)
    2013-12-14 02:45:05,327 WARN Included extra file “/etc/supervisor/conf.d/primecoin.conf” during parsing
    2013-12-14 02:45:05,372 INFO RPC interface ‘supervisor’ initialized
    2013-12-14 02:45:05,372 WARN cElementTree not installed, using slower XML parser for XML-RPC
    2013-12-14 02:45:05,372 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
    2013-12-14 02:45:05,373 INFO daemonizing the supervisord process
    2013-12-14 02:45:05,374 INFO supervisord started with pid 29789
    2013-12-14 02:45:06,375 INFO spawnerr: can’t find command ‘/root/primecoin/src/primeminer’
    2013-12-14 02:45:07,377 INFO spawnerr: can’t find command ‘/root/primecoin/src/primeminer’
    2013-12-14 02:45:09,379 INFO spawnerr: can’t find command ‘/root/primecoin/src/primeminer’
    2013-12-14 02:45:12,382 INFO spawnerr: can’t find command ‘/root/primecoin/src/primeminer’
    2013-12-14 02:45:12,382 INFO gave up: primecoin entered FATAL state, too many start retries too quickly
    root@sunny:~/primecoin/src#

Some HTML is OK