Difference between revisions of "POBH Setup Linux"

From BiblePay Wiki
Jump to: navigation, search
(References)
m
 
(7 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
   tar xvfz filename
 
   tar xvfz filename
  
Build from Source:
+
or
 +
 
 +
- Build from Source:
  
 
https://github.com/biblepay/biblepay-evolution/blob/master/BuildBiblePay.txt
 
https://github.com/biblepay/biblepay-evolution/blob/master/BuildBiblePay.txt
 +
  
 
== 2. Run Wallet ==
 
== 2. Run Wallet ==
Line 25: Line 28:
 
=== GUI ===
 
=== GUI ===
  
Your GUI program will be located in: /biblepay-evolution/src/qt
+
Your GUI program is typically located in: /biblepay-evolution/src/qt
  
 
   ./biblepay-qt
 
   ./biblepay-qt
Line 36: Line 39:
 
=== CLI (Daemon) ===
 
=== CLI (Daemon) ===
  
  cd /biblepay-evolution/src/
+
Your Daemon program is typically located in: /biblepay-evolution/src/
 +
 
 
   ./biblepayd -daemon
 
   ./biblepayd -daemon
  
  
NOTE: Wait for wallet to sync before starting to mine
+
NOTE: Wait for wallet to sync before starting to solo mine
 +
 
  
 
== 3. Choose to Solo or Pool Mining ==
 
== 3. Choose to Solo or Pool Mining ==
  
 
'''Why use a Pool?''' <br />
 
'''Why use a Pool?''' <br />
As the network hash rises (as more miners are mining), it can take longer and longer to solve a block, by using the pool, everyone works together with all of their hash power to solve blocks, and the reward gets split between everyone who contributed based on how much they contributed in hash.
+
As the network hash rises (as more miners are mining), it can take longer and longer to solve a block,   <br />
 +
by using the pool, everyone works together with all of their hash power to solve blocks, <br />
 +
and the reward gets split between everyone who contributed based on how much they contributed in hash. <br />
 +
 
 +
With solo mining (not using the pool) it may take weeks to finally solve a block and get a large full block reward, with a pool you can get small frequent rewards
 +
 
 +
Large Spaced out rewards [[#Solo_Mining]]  <br />
 +
vs  <br />
 +
Small Daily rewards [[#Pool_Mining]]  <br />
 +
 
 +
NOTE: Pool mining requires using the external miner
  
With solo mining (not using the pool) it may take weeks to finally solve a block and get a large full block reward, with a pool you can get small frequent rewards every ~30 minutes
+
NOTE 2: Pool operators typically charge a fee for their use, a small cut of rewards, to pay for operations/maintenance
  
  
Line 55: Line 70:
  
 
1. Inside Wallet >>> click "File" menu in top left >>> Receiving Addresses >>> New >>> Label: NOMP >>> OK >>> Right Click >>> Copy Address (RECEIVING_ADDRESS)  
 
1. Inside Wallet >>> click "File" menu in top left >>> Receiving Addresses >>> New >>> Label: NOMP >>> OK >>> Right Click >>> Copy Address (RECEIVING_ADDRESS)  
 +
  
 
==== Install and Run External Miner ====
 
==== Install and Run External Miner ====
Line 70: Line 86:
 
4. Choose the pool you want to use: https://miningpoolstats.stream/biblepay
 
4. Choose the pool you want to use: https://miningpoolstats.stream/biblepay
  
Rob's Pool:
+
 
 +
Rob's Pool: http://nomp.biblepay.org/
  
 
   bbpminer_linux -o stratum+tcp://nomp.biblepay.org:3032 -u RECEIVING_ADDRESS -p x -t 2
 
   bbpminer_linux -o stratum+tcp://nomp.biblepay.org:3032 -u RECEIVING_ADDRESS -p x -t 2
  
Sun's Pool:
+
Sun's Pool: http://sunpool.whitewalr.us/
  
 
   bbpminer_linux -o stratum+tcp://sunpool.whitewalr.us:3032 -u RECEIVING_ADDRESS -p x -t 2
 
   bbpminer_linux -o stratum+tcp://sunpool.whitewalr.us:3032 -u RECEIVING_ADDRESS -p x -t 2
  
TheRouge's Pool:
 
 
  bbpminer_linux -o stratum+tcp://leopool.biblepay.org:3032 -u RECEIVING_ADDRESS -p x -t 2
 
  
 
7. See all External Miner Options (Help)
 
7. See all External Miner Options (Help)
Line 95: Line 109:
 
   gen=1
 
   gen=1
 
   genproclimit=2
 
   genproclimit=2
 +
  minersleep=0
  
 
3. Restart BiblePay Wallet to apply the config settings
 
3. Restart BiblePay Wallet to apply the config settings
Line 101: Line 116:
 
   gen - turns mining on by default
 
   gen - turns mining on by default
 
   genproclimit - sets number of threads to use for mining
 
   genproclimit - sets number of threads to use for mining
 +
  minersleep - by default the miner sleeps for 325ms every 1000ms
  
 
Change the number of threads to fit your computer
 
Change the number of threads to fit your computer
Line 107: Line 123:
  
 
Check that your hashps is above 0 to confirm that mining is running
 
Check that your hashps is above 0 to confirm that mining is running
 +
 +
  getmininginfo
  
 
5. Increase or Decrease threads temporarily
 
5. Increase or Decrease threads temporarily
  
Use command "setgenerate X" to change number of threads <br />
+
Use command "setgenerate true X" to turn on mining and change number of threads <br />
 
(doesn't change config file, threads reset to value of "genproclimit" after wallet restarts)
 
(doesn't change config file, threads reset to value of "genproclimit" after wallet restarts)
 +
 +
  setgenerate true X
 +
 +
6. Help
  
 
Use command "help" to see all BiblePay commands
 
Use command "help" to see all BiblePay commands
 +
 +
  help
  
 
== References ==
 
== References ==

Latest revision as of 05:53, 7 March 2020

1. Install Wallet

- Download Binary:

Linux GUI 32 bit: https://biblepay.org/biblepay-qt-evo-i686-pc-linux-gnu.tar.gz (Hash)
Linux GUI 64 bit: https://biblepay.org/biblepay-qt-evo-x86_64-pc-linux-gnu.tar.gz (Hash)

Linux CLI 32 bit: https://biblepay.org/biblepayd-evo-i686-pc-linux-gnu.tar.gz (Hash)
Linux CLI 64 bit: https://biblepay.org/biblepayd-evo-x86_64-pc-linux-gnu.tar.gz (Hash)

Linux ARM 64 bit: https://biblepay.org/biblepayd-evo-arm-linux-gnueabihf.tar.gz (Hash)
Linux Arch 64 bit: https://biblepay.org/biblepayd-evo-aarch64-linux-gnu.tar.gz (Hash)

- Download and unzip

 wget filename
 tar xvfz filename

or

- Build from Source:

https://github.com/biblepay/biblepay-evolution/blob/master/BuildBiblePay.txt


2. Run Wallet

GUI

Your GUI program is typically located in: /biblepay-evolution/src/qt

 ./biblepay-qt

You can also run it in the background (to free up your terminal) if you call it with:

 ./biblepay-qt &


CLI (Daemon)

Your Daemon program is typically located in: /biblepay-evolution/src/

 ./biblepayd -daemon


NOTE: Wait for wallet to sync before starting to solo mine


3. Choose to Solo or Pool Mining

Why use a Pool?
As the network hash rises (as more miners are mining), it can take longer and longer to solve a block,
by using the pool, everyone works together with all of their hash power to solve blocks,
and the reward gets split between everyone who contributed based on how much they contributed in hash.

With solo mining (not using the pool) it may take weeks to finally solve a block and get a large full block reward, with a pool you can get small frequent rewards

Large Spaced out rewards #Solo_Mining
vs
Small Daily rewards #Pool_Mining

NOTE: Pool mining requires using the external miner

NOTE 2: Pool operators typically charge a fee for their use, a small cut of rewards, to pay for operations/maintenance


Pool Mining

Create BiblePay Receiving Address

1. Inside Wallet >>> click "File" menu in top left >>> Receiving Addresses >>> New >>> Label: NOMP >>> OK >>> Right Click >>> Copy Address (RECEIVING_ADDRESS)


Install and Run External Miner

1. Download miner: https://github.com/biblepay/cpuminer/blob/master/binaries/bbpminer_linux

2. Enter the below command with your wallet address from above:

 bbpminer_linux -o stratum+tcp://nomp.biblepay.org:3032 -u RECEIVING_ADDRESS -p x -t 2

You are now mining!

3. Change the number of threads to fit your computer, -t 2 only uses 2 threads

4. Choose the pool you want to use: https://miningpoolstats.stream/biblepay


Rob's Pool: http://nomp.biblepay.org/

 bbpminer_linux -o stratum+tcp://nomp.biblepay.org:3032 -u RECEIVING_ADDRESS -p x -t 2

Sun's Pool: http://sunpool.whitewalr.us/

 bbpminer_linux -o stratum+tcp://sunpool.whitewalr.us:3032 -u RECEIVING_ADDRESS -p x -t 2


7. See all External Miner Options (Help)

 bbpminer_linux --help


Solo Mining

1. In BiblePay Wallet >>> click "Tools" menu >>> "Open Wallet Configuration File"

2. Add text lines and Save file

 gen=1
 genproclimit=2
 minersleep=0

3. Restart BiblePay Wallet to apply the config settings

 Notes:
 gen - turns mining on by default
 genproclimit - sets number of threads to use for mining
 minersleep - by default the miner sleeps for 325ms every 1000ms

Change the number of threads to fit your computer

4. In BiblePay Wallet >> "Tools" >> "Debug Console" >> Type "getmininginfo" >> Enter

Check that your hashps is above 0 to confirm that mining is running

 getmininginfo

5. Increase or Decrease threads temporarily

Use command "setgenerate true X" to turn on mining and change number of threads
(doesn't change config file, threads reset to value of "genproclimit" after wallet restarts)

 setgenerate true X

6. Help

Use command "help" to see all BiblePay commands

 help

References

https://www.reddit.com/r/BiblePay/comments/6ummuj/how_to_mine_biblepay_on_linux/

https://whitewalr.us/2019/biblepay-nomp-pool-mining.html

https://whitewalr.us/2019/update-biblepay-daemon-ubuntu-script.html