Difference between revisions of "P2pool"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "sumber: http://computriks.com/en/bitcoin-mining-p2pool-bfgminer-ubuntu Doing bitcoin mining with p2pool lets you get incomes as stable as other pools, while avoiding some p...")
 
 
(17 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
  
Doing bitcoin mining with p2pool lets you get incomes as stable as other pools, while avoiding some problems of centralized pools like deepbit and bitminter.
+
Melakukan bitcoin mining dengan p2pool memungkinkan anda memperoleh pendapatan seperti pool lainnya, sambil menghindari beberapa masalah pada pool terpusat seperti deepbit dan bitminter.
  
p2pool advantages : You do not have to trust the owner of a pool for you to pay your Bitcoins honestly. You are protected from DDoS attacks against the pool. You participate to prevent any pool to get 50% of the computing power of the network. And your payments are immediate to each block detected.
+
p2pool advantages :Anda tidak perlu mempercayai pemilik kolam agar membayar Bitcoin dengan jujur. Anda terlindungi dari serangan DDoS terhadap pool. Anda berpartisipasi untuk mencegah pool untuk mendapatkan 50% daya komputasi jaringan. Dan pembayaran anda langsung ke setiap blok yang terdeteksi.
  
p2pool disadvantages : To operate, p2pool needs to be started on a computer with Bitcoin server software permanently open. This requires more memory. p2pool is also a bit more complicated to implement for a novice.
+
p2pool disadvantages : Untuk beroperasi, p2pool perlu dimulai di komputer dengan perangkat lunak server Bitcoin yang secara permanen terbuka. Ini membutuhkan lebih banyak memori. p2pool juga sedikit lebih rumit untuk diimplementasikan untuk pemula.
  
Password for the Bitcoin software : For the next steps, replace user by any user name of your choice, and password with any password of your choice. This password must be very difficult to guess, particularly if the computer on which the Bitcoin server is installed is accessible via the Internet without a firewall to protect its port 8332.
+
Password for the Bitcoin software : Untuk langkah selanjutnya, ganti pengguna dengan nama pengguna pilihan anda, dan kata sandi dengan kata kunci pilihan anda. Pastikan kata sandi ini agar sulit ditebak, terutama jika komputer yang dipasang server Bitcoin yang dapat diakses melalui Internet tanpa firewall untuk melindungi port 8332.
  
Install Bitcoin
+
==Install Bitcoin==
  
    Install Bitcoin software.
+
sudo su
    Edit ~/.bitcoin/bitcoin.conf file on which you will add the following text :
+
add-apt-repository ppa:bitcoin/bitcoin -y
    rpcuser=user
+
apt update
    rpcpassword=password
+
apt install bitcoind bitcoin-qt
    server=1
 
    rpcport=8332
 
  
 +
Edit ~/.bitcoin/bitcoin.conf file on which you will add the following text :
  
Install bfgminer
+
rpcuser=user
 +
rpcpassword=password
 +
daemon=1
 +
server=1
 +
rpcport=8332
  
    Open a terminal.
+
server=1
    Install required packages with the following command
+
gFWE
    sudo apt-get install build-essential debhelper autoconf automake libtool libssl-dev yasm pkg-config libudev-dev libcurl4-openssl-dev wget unzip libjansson-dev libncurses5-dev libudev-dev libusb-1.0-0-dev git quilt uthash-dev
 
    Download last bfgminer version with the following command
 
    git clone git://github.com/luke-jr/bfgminer.git ~/bfgminer
 
    Go into the downloaded folder with the following command
 
    cd ~/bfgminer
 
    Prepare the compilation of bfgminer with the following command
 
    ./autogen.sh && ./configure
 
    Compile bfgminer with the following command
 
    make
 
  
  
Install p2pool
+
Pastikan menggunakan username & password yang rumit
  
    Open a terminal.
+
==Install bfgminer==
    Install required packages by using the following command
 
    sudo apt-get install git python-zope.interface python-twisted python-twisted-web
 
    Download p2pool by using the following command
 
    git clone git://github.com/forrestv/p2pool.git ~/p2pool
 
  
 +
sudo su
 +
add-apt-repository ppa:eugenesan/ppa -y
 +
apt update
 +
apt-get install bfgminer -y
  
Start bitcoin mining
 
  
    Open your Bitcoin software and wait until it is open and synced.
+
==Install p2pool==
    Open a terminal, use the following command to start p2pool and wait until it is started.
 
    python ~/p2pool/run_p2pool.py
 
    Open a terminal, use the following command to start bfgminer
 
    ~/bfgminer/bfgminer -o http://127.0.0.1:9332 -u user -p password
 
  
 +
sudo su
 +
apt install git python-zope.interface python-twisted python-twisted-web
 +
cd /usr/local/src
 +
git clone git://github.com/forrestv/p2pool.git ~/p2pool
 +
cd /usr/local/src/p2pool
 +
make
  
 +
==Start bitcoin mining==
  
Now you can let Bitcoin, p2pool and bfgminer work.  Bitcoin window and two terminal windows must remain open. First terminal displays p2pool statistics continuously and the other continuously displays bfgminer statistics. At its first start, p2pool created a new Bitcoin address in your Bitcoin wallet. Once a block is found by p2pool, your part of the reward is immediately paid to you on this address. So you receive payments regularly and promptly.
+
Open your Bitcoin software and wait until it is open and synced.
  
 +
Open a terminal, use the following command to start p2pool and wait until it is started.
  
 +
python ~/p2pool/run_p2pool.py --help
 +
 +
python ~/p2pool/run_p2pool.py
 +
 +
python ~/p2pool/run_p2pool.py -a 1N5p51QmaYBckKQzp8S5N7uVHVAtAfYqPi
 +
 +
 +
Open a terminal, use the following command to start bfgminer
 +
 +
/usr/bin/bfgminer -o http://localhost:port -u rpcuser -p rpcpassword --coinbase-addr my_coin_address
 +
/usr/bin/bfgminer -o http://127.0.0.1:9332 -u user -p password
 +
 +
/usr/bin/bfgminer -o http://localhost:8332 -u user -p password --coinbase-addr 1N5p51QmaYBckKQzp8S5N7uVHVAtAfYqPi
 +
 +
Sekarang anda bisa membiarkan Bitcoin, p2pool dan bfgminer bekerja. Jendela Bitcoin dan dua jendela terminal harus tetap terbuka. Terminal pertama menampilkan statistik p2pool terus menerus dan yang lainnya terus menampilkan statistik bfgminer. Pada awalnya, p2pool membuat alamat Bitcoin baru di dompet Bitcoin anda. Sekali satu blok ditemukan oleh p2pool, bagian dari reward anda akan segera dibayarkan kepada anda di alamat ini. Jadi anda menerima pembayaran secara teratur dan segera.
 +
 +
 +
==Port Forward Router==
 +
 +
* Di sisi router ke Interent kita perlu melakukan forward port 9333 ke IP Host Yang Menjalankan p2pool
 +
 +
==Monitoring==
 +
 +
Melalui Web ke
 +
 +
http://localhost:9332
 +
http://localhost:9332/static/
 +
http://localhost:9332/static/graphs.html?Day
 +
http://localhost:9332/static/graphs.html?Week
  
 
==Referensi==
 
==Referensi==
  
 
* http://computriks.com/en/bitcoin-mining-p2pool-bfgminer-ubuntu
 
* http://computriks.com/en/bitcoin-mining-p2pool-bfgminer-ubuntu

Latest revision as of 15:21, 22 November 2017

sumber: http://computriks.com/en/bitcoin-mining-p2pool-bfgminer-ubuntu


Melakukan bitcoin mining dengan p2pool memungkinkan anda memperoleh pendapatan seperti pool lainnya, sambil menghindari beberapa masalah pada pool terpusat seperti deepbit dan bitminter.

p2pool advantages :Anda tidak perlu mempercayai pemilik kolam agar membayar Bitcoin dengan jujur. Anda terlindungi dari serangan DDoS terhadap pool. Anda berpartisipasi untuk mencegah pool untuk mendapatkan 50% daya komputasi jaringan. Dan pembayaran anda langsung ke setiap blok yang terdeteksi.

p2pool disadvantages : Untuk beroperasi, p2pool perlu dimulai di komputer dengan perangkat lunak server Bitcoin yang secara permanen terbuka. Ini membutuhkan lebih banyak memori. p2pool juga sedikit lebih rumit untuk diimplementasikan untuk pemula.

Password for the Bitcoin software : Untuk langkah selanjutnya, ganti pengguna dengan nama pengguna pilihan anda, dan kata sandi dengan kata kunci pilihan anda. Pastikan kata sandi ini agar sulit ditebak, terutama jika komputer yang dipasang server Bitcoin yang dapat diakses melalui Internet tanpa firewall untuk melindungi port 8332.

Install Bitcoin

sudo su
add-apt-repository ppa:bitcoin/bitcoin -y
apt update
apt install bitcoind bitcoin-qt

Edit ~/.bitcoin/bitcoin.conf file on which you will add the following text :

rpcuser=user
rpcpassword=password
daemon=1
server=1
rpcport=8332
server=1
gFWE


Pastikan menggunakan username & password yang rumit

Install bfgminer

sudo su
add-apt-repository ppa:eugenesan/ppa -y
apt update
apt-get install bfgminer -y


Install p2pool

sudo su
apt install git python-zope.interface python-twisted python-twisted-web
cd /usr/local/src
git clone git://github.com/forrestv/p2pool.git ~/p2pool
cd /usr/local/src/p2pool
make

Start bitcoin mining

Open your Bitcoin software and wait until it is open and synced.

Open a terminal, use the following command to start p2pool and wait until it is started.

python ~/p2pool/run_p2pool.py --help
python ~/p2pool/run_p2pool.py
python ~/p2pool/run_p2pool.py -a 1N5p51QmaYBckKQzp8S5N7uVHVAtAfYqPi


Open a terminal, use the following command to start bfgminer

/usr/bin/bfgminer -o http://localhost:port -u rpcuser -p rpcpassword --coinbase-addr my_coin_address
/usr/bin/bfgminer -o http://127.0.0.1:9332 -u user -p password
/usr/bin/bfgminer -o http://localhost:8332 -u user -p password --coinbase-addr 1N5p51QmaYBckKQzp8S5N7uVHVAtAfYqPi

Sekarang anda bisa membiarkan Bitcoin, p2pool dan bfgminer bekerja. Jendela Bitcoin dan dua jendela terminal harus tetap terbuka. Terminal pertama menampilkan statistik p2pool terus menerus dan yang lainnya terus menampilkan statistik bfgminer. Pada awalnya, p2pool membuat alamat Bitcoin baru di dompet Bitcoin anda. Sekali satu blok ditemukan oleh p2pool, bagian dari reward anda akan segera dibayarkan kepada anda di alamat ini. Jadi anda menerima pembayaran secara teratur dan segera.


Port Forward Router

  • Di sisi router ke Interent kita perlu melakukan forward port 9333 ke IP Host Yang Menjalankan p2pool

Monitoring

Melalui Web ke

http://localhost:9332
http://localhost:9332/static/
http://localhost:9332/static/graphs.html?Day
http://localhost:9332/static/graphs.html?Week

Referensi