Distributed Computing 2
Proof of Distributed Computing (PODC)
How to Get Started with Distributed-Computing:
BOINC Team BiblePay (you will need to be part of Team Biblepay to be able to receive awards):
[email protected]: https://boinc.bakerlab.org/rosetta/team_display.php?teamid=15044
PART A. Install BOINC
1. Install BOINC (if running headless, only install the client)
sudo apt-get install boinc-client boinc-manager
2. Create Account
2a. Click Activites >>> Search >>> Boinc >>> Run Boinc >>> Add Rosetta - Use existing User
2a. Create Rosetta account with email, password, username
boinccmd --create_account https://boinc.bakerlab.org/rosetta/ EMAIL PWD USRNAME
3. Get Account Key
boinccmd --lookup_account https://boinc.bakerlab.org/rosetta/ EMAIL PWD
It will return your ACCOUNT KEY that you need to copy
However the preferred method to get your ACCOUNT KEY is:
Use the weak key in most circumstances, especially on shared computers like VPS.
4. Attach machine to Rosetta account to begin working on solving computations
boinccmd --project_attach https://boinc.bakerlab.org/rosetta/ ACCOUNT_KEY
5. Join Team BiblePay: https://boinc.bakerlab.org/rosetta/home.php >>> "Find a team" >>> Search for "BiblePay"
1. Click on Recommended Version - Install the 9.56 Meg version without VirtualBox (VirtualBox is not necessary)
NOTE: If you do not trust the software, you may install the Virtual Box Version - this runs the miner in a sandbox, but it runs slower and is a 98 meg download
After installation, BOINC Manager will open
2. "Choose a project" >>> Select "[email protected]"
3. "Identify your account" >>> Create an account
4. Set your Nickname
5. "Find a team" >>> Search for "BiblePay" and join our team
PART B. Setup BiblePay
1. Install BiblePay
2. (OPTIONAL) Clean out old chain data
Bottom of post - "CLEAN UP AFTER INSTALL"
PART C. Link BOINC Account to BiblePay
NOTE: Requires about 1.001 BBP to be used to Associate BOINC Account
Go to Distributed Computing page, and type in the rosetta user & password and click associate.
=== Command Line
exec associate rosetta_email_address rosetta_password
Then wait for 6 blocks for confirm to occur.
If everything worked, your CPID will match the one in notepad.
NOTE: "Please wait 24 hours to see yesterdays boinc RAC and magnitude in Biblepay"
How to re-associate my CPID to a new wallet?
This is Only if you lose your wallet or want to move your CPID to a brand new wallet.
Most of the time if you keep your wallet.dat you will never want to do this.
But if lets say you throw away your old PC and move, and buy a new PC,
yet your existing CPID has say 100,000 credits,
and you just want to associate that old CPID with a brand new wallet, Biblepay would say "Already_In_Chain".
To perform this action type:
exec associate rosetta_email rosetta_pass force
This will forcefully kill the old burn transaction and reassociate you.
PART D. Controller Mining and Staking
In order to receive research rewards you will now need to:
1. Have your Biblepay wallet that was linked to your rosetta account in Step C mine on one thread
The Biblepay wallet will automatically start mining with one thread. With a 250ms sleep in the new miner by default. You can still increase the number of threads or set the 'minersleep=0' parameter if you wish. (You can also increase the number (to 500 for example) if your CPU is still utilized too much by the Biblepay wallet for Boinc to function well.
2. Have BiblePay coins in your wallet for staking
|Biblepay UTXO Reward Chart|
|UTXO Level||UTXO CoinStake Amount||Percentage of Reward|
|Level 1||1 - 1000||25%|
|Level 2||1000 - 5000||50%|
|Level 3||5001 - 10000||60%|
|Level 4||10000 - 50000||75%|
You can configurate biblepay.conf to set staking amount, example:
For 50% of your coins to be staked once every ~12 hours. The default in the wallet is 10% of the coins.
PART E. Setup More BOINCers
1. Log In To Web Rosetta from here:
Use your Rosetta boinc credentials.
Search the page for "Cross-project ID:" Write the value down in notepad.
That is your CPID and it will never change.
2. You associated (using exec associate) already. You only do this once per lifetime of researcher.
So that wallet was already associated. If you did it again you are now re-associated, dont change it.
(Biblepay will only Honor the Last Burn Tx in the chain for you)
3. For machines 2,3,4,5,6,7,8,9 etc, you only install boinc, and use the credentials in step #1.
This will cause Multiple Machines to crunch for rosetta on ONE cpid.
All rewards will go to the associated address.
You do Not want to run the 'exec associate' command again on any of those machines, and do not need to install BiblePay on them.
PART F. (OPTIONAL) Setup Sanctuary (Masternode) in Testnet
500,000 tBBP Collateral/Escrow Required
1. Setup Hot Sanctuary
NOTE: "the Hot sanctuary is all you need in testnet.
We dont need to deal with starting and stopping those from the controller wallet or protecting the funds."
NOTE: "On the hot sanc, all you really have to do is
send the collateral to yourself (the 500,000 even), then add:
In the biblepay.conf, and leave the masternode.conf alone.
(On the testnet sanctuary itself)."
NOTE: If anyone is mining in prod and wants to run testnet side by side your prod masternode, just do this:
./biblepay-qt -testnet -masternode=0 -rpcport=45000
That will allow it to boot side by side without taking your prod node down.
2. (OPTIONAL) Run in QT (GUI) Mode
QT (GUI) is needed for PODC SanctuaryQuorum, sanctuaries must execute QT functions to process the Rosetta credits files.
NOTE: QT mode is not needed anymore to run a Sanctuary, can skip this step
TMIKE: I'm running the sanctuary on a shared vCPU with 0.6GB of ram and using xfce.
Try this (I used vncserver in place of tightvnc): https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04
ROB: Im still using vultr for my sancs, so what I did is installed graphics on the machine (using Mike-Ts similar info post),
then I just VNC in using the inbuilt vnc viewer (they have a link to VNC viewer on each server in the web list).
1. Install Lubuntu GUI and Reboot
apt-get update apt-get install -y lubuntu-core apt-get install -y firefox reboot
2. Open server from Vultr Interface and Login:
I used Vultr interface, clicked on the server and clicked "View Console" button
I logged in with root credentials
3. Open Terminal:
To open terminal I clicked keys:
CTRL + ALT + T
4. Run BiblePay QT (GUI)
cd home/biblepay/src/qt ./biblepay-qt
1) How do I find out how much RAC (recent average credit) my CPID has for Rosetta?
Go to the BOINC manager (on your PC), click on Projects, and on the row with Rosetta, take a look at the RAC field.
That is the number Biblepay uses to calculate your Magnitude in the wallet once per day.
2) How do I view my CPID and magnitude in the wallet?
A. The first way is to click the Distributed Computing tab in the GUI and view the bottom left "CPID" and"Magnitude" values.(This requires 18.104.22.168i+).
B. The second way is to click on the RPC, and type 'exec getboincinfo'