Author Topic: [Tutorial] Primecoin Getting Started and Basic Commands (updated)  (Read 7710 times)

Offline majik

  • Jr. Member
  • **
  • Posts: 7
  • Karma: +2/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Updates:
* Added link to high performance (hp) client
* Added balance command
* Added how to backup and move your wallet

This is a quick guide on how to download, install and operate Primecoin.

It has been updated to acknowledge the fact that there is a QT GUI version.

Note that all the steps used for the Windows version of the GUI also apply to the Linux version of the GUI since they are identical. Steps for setting up the Linux version of the GUI are not included (perhaps someone could contribute?).

[Links]

You can download the client for Windows or Linux here:

http://sourceforge.net/projects/primecoin/?source=dlp

There is an (objectively) "higher performance" client available here:

http://sourceforge.net/projects/primecoin-hp/

The HP client's discussion thread is here:

https://bitcointalk.org/index.php?topic=255782.0

A GPU miner is being worked on here:

https://bitcointalk.org/index.php?topic=273637

Weekly updates on Primecoin development are here:

https://bitcointalk.org/index.php?topic=114994.40

You can exchange Primecoin for prepaid debit cards here:

http://www.visa4crypto.com/

[End links]

To download for Windows, click the green Download button.

To download for Linux, go to the Files tab and click the version that matches the version you want (usually the highest version).

The Linux version contains the binaries for both 64 bit and 32 bit systems and the source so you do not need to compile from source unless you have special environmental conditions.

To get started on Windows:

1. Download the installer.
2. Run the installer.
3. Open the installer.
4. Wait for the chain to syncronize.

The client will provide updates as the chain is synchronizing. 6 weeks, 5 weeks, etc.

For some reason the Windows client will not start generating (the Primecoin equivalent to Bitcoin's "hashing") until you run a command in the debug window.

To do so:

1. Go to Help.
2. Click Debug Window.

This is the console where you will execute all commands to the Primecoin daemon.

3. Type this command to use all CPU cores:

Code: [Select]
setgenerate true -1
If you want to use a specific number of cores, instead of -1, type the number of cores.

You can then type getmininginfo to see the status of generation.



"primespersec" is your generation rate.

If you want to turn generation off you can use:

Code: [Select]
setgenerate false
This allows you to keep the wallet running without generating to receive/send transactions, messages, etc.

You are now generating. Transactions will appear in the Overview window. When you get paid for generating it will appear as an incoming transaction.



To get started on Linux:

1. Download the client.

Code: [Select]
wget http://sourceforge.net/projects/primecoin/files/0.1.2/primecoin-0.1.2-linux.tar.gz
Replace the URL with the actual URL for the latest client from Sourceforge.

2. Unarchive the client.

Code: [Select]
tar -xzvf primecoin-0.1.2-linux.tar.gz/download
3. Install the client.

Code: [Select]
mv primecoin-[version]-linux/bin/primecoind/[architecture]/primecoind /usr/local/bin/primecoind
Replace [version] with the version of primecoin you downloaded.

Replace [architecture] with 32 or 64 depending on whether your system is 32 or 64 bit.

4. Make the daemon a service.

Code: [Select]
service=primecoind
5. Start generating.

Code: [Select]
primecoind --daemon
Primecoin will start as a daemon (background service) and will continue to run if you exit the shell.

Basic Commands

To get a list of commands type:

Code: [Select]
primecoind help
To get help with a command type:

Code: [Select]
primecoind help [command]
To stop the daemon type:

Code: [Select]
primecoind stop
To get your mining status type:

Code: [Select]
primecoind getmininginfo
To see your transactions (including rewards for generating) type:

Code: [Select]
primecoind gettransactions
To get your balance type:

Code: [Select]
primecoind getbalance
This tells you how much primecoin currency you have in your wallet.

To send primecoins to another address type:

Code: [Select]
primecoind sendtoaddress [address] [amount] "[comment]"
For example:

Code: [Select]
primecoind sendtoaddress AGx4qUkpKGLtBAib7AwzMyvRRFWChfnSdC 1 "Thanks for your help with setting up Primecoin"
    Moving and Backing Up Primecoin

    • If you want to move Primecoin, install the Primecoin wallet software on the target computer and drop wallet.dat into the install folder.
    • To backup your wallet, make a copy of the file wallet.dat.

    End of Tutorial
    • If you find this tutorial useful, you can use the above command to send me 1 primecoin, currently worth about 50 cents.
    • If you have any questions please let me know.
    • If you see any errors in my tutorial please let me know.
    [/list]

    If you find this tutorial useful please send a donation to:

    Bitcoin: 1LJU4GnHSM4ovdLNfaz4CmsacuznJewDh3
    Primecoin: AGx4qUkpKGLtBAib7AwzMyvRRFWChfnSdC
    « Last Edit: August 23, 2013, 11:47:49 pm by majik »

    Online FuzzyBear

    • Forum Operator
    • Administrator
    • No life but Peercoin!!
    • *****
    • Posts: 1357
    • Karma: +78/-0
    • Referrals: 14
      • View Profile
      • Peercoin Open Source Services
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #1 on: August 23, 2013, 06:33:42 pm »
    Nice post :)
    BTC: 1FuzzySGvFZwnycoknVqL5YTPMSqf4es8X |
    PPC: PDonateqDhgBW4tbYpVXErQrBGVoqBroFi
    Peercoin Open Source Services

    Offline morphKET

    • Jr. Member
    • **
    • Posts: 5
    • Karma: +1/-0
    • Hello I'm new here
    • Referrals: 0
      • View Profile
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #2 on: November 01, 2013, 08:59:26 pm »
    Thank you for this write up  ;D

    Offline Marfox

    • Newbie
    • *
    • Posts: 1
    • Karma: +0/-0
    • Hello I'm new here
    • Referrals: 0
      • View Profile
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #3 on: November 04, 2013, 05:57:14 pm »
    thnx, helps a lot :D

    Offline Sentinelrv

    • Peercoin Guardian
    • No life but Peercoin!!
    • ********************
    • Posts: 2202
    • Karma: +96/-0
    • Referrals: 1
      • View Profile
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #4 on: November 06, 2013, 05:57:50 am »
    This should probably be moved to the Primecoin getting started board.
    PPC Donations Appreciated: PNH9rirzGKi6xAYKrrhAvnRE1pnJEQRPs8

    Offline mdl001

    • Jr. Member
    • **
    • Posts: 2
    • Karma: +0/-0
    • Hello I'm new here
    • Referrals: 0
      • View Profile
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #5 on: February 13, 2014, 08:10:33 pm »
    Under getting started in Linux, using  line 2:

    tar -xzvf primecoin-0.1.2-linux.tar.gz/download

    Gives me the error msg (in Ubuntu):

    tar: primecoin-0.1.2-linux.tar.gz/download: Cannot open: Not a directory
    tar: Error is not recoverable: exiting now
    gzip: stdin: unexpected end of file
    tar: Child returned status 2
    tar: Exiting with failure status due to previous errors

    The command runs OK if I delete "/download" at the end, but I have not yet gotten through the whole installation.

    Offline mdl001

    • Jr. Member
    • **
    • Posts: 2
    • Karma: +0/-0
    • Hello I'm new here
    • Referrals: 0
      • View Profile
    Re: [Tutorial] Primecoin Getting Started and Basic Commands (updated)
    « Reply #6 on: February 13, 2014, 08:20:41 pm »
    Proceeding further on my attempted installation,  I get through the following, with my entries italicized:
    ------------------
    boss@Slave:~$ service=primecoind
    boss@Slave:~$ primecoind --daemon
    bash: /usr/local/bin/primecoind: cannot execute binary file
    boss@Slave:~$ sudo primecoind --daemon
    /usr/local/bin/primecoind: 1: Syntax error: "(" unexpected
    ------------------------------

    (Ubuntu requires me to use sudo since I am not Root)

    I'm a Linux newbie, though I have been mining Primecoin with Windows a couple of months now, on a different system.
    Help please?



     
    Share this topic...
    In a forum
    (BBCode)
    In a site/blog
    (HTML)


    Peercoin.net Official Peercoin Website