-
-
Notifications
You must be signed in to change notification settings - Fork 29
How to create your own mining pool
Create an account with Amazon AWS.
On the home page, click the services tab and then go to compute and click 'EC2'. Once you are there you will chose your region on the top of the page in the header section. Next click the 'Launch Instance' button at the center of the page and then select an AMI. For this tutorial I am using Ubuntu Server 16.04 LTS.
Next you will need to choose an instance type. I am just going to use the t2.large for the tutorial.
You can then skip to step six and under the source tap select my IP.
Next press Review and Launch and then create a new key pair to be able to connect with your instance. Once the instance is live, you can connect to your instance using an SSH through Terminal, PuTTY or similar program.
-
Download key pair that you created earlier
-
Make sure you are in the same directory as the key and allow permissions
chmod 600 <key-name>.pem
- SSH into instance
ssh -i <key-name>.pem ubuntu@<EC2-IP-Address>
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install –with-recommends build-essential autotools-dev autoconf automake libcurl3 libcurl4-gnutls-dev git make cmake libssl-dev pkg-config libevent-dev libunbound-dev libminiupnpc-dev doxygen supervisor jq libboost-all-dev htop
- Install redis Server
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
- Install Apache2 for hosting the front end.
sudo apt-get update
sudo apt-get install apache2
- Adjust firewall to allow Apache full.
sudo ufw allow 'Apache Full'
git clone --recurse-submodules https://github.com/<coin-name>/<coin-name>
cd ./<coin-name>
mkdir ./build
cd ./build
cmake ..
cmake --build . --config Release
cd build/src
tmux
./<coin-name>d
-
Let the blockchain sync before continuing
-
control b + d to exit tmux
- After you generated a new wallet exit it and run this:
tmux
./simplewallet --wallet-file <wallet_name> --password <wallet_password> --rpc-bind-port 8198
- control b + d to exit tmux
sudo apt-get install libssl-dev libboost-all-dev
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash
sudo apt-get install -y nodejs
- Clone repository
git clone https://github.com/dvandal/cryptonote-nodejs-pool.git pool
cd pool && npm update
- Copy the
config_examples/qwertycoin.json
file toconfig.json
cp config_examples/qwertycoin.json config.json
Change the following variables: Line 2 - Pool host to your pools IP Address Line 4 - Change coin name Line 5 - Change coin symbol Line 6 - Set coin units Line 7 - Set coin decimal places Line 8 - Change coin's difficulty target Line 30 - Your simplewallet address that you generated Line 138 - Set your API password Line 125-127 - (Optional) change pool fees
sudo cp -rf js/ lang/ pages/ themes/ admin.html config.js index.html /var/www/html
- Edit
config.js
to use your pool's specific configuration
cd && cd pool
node init.js
-
Your pool should now be visible at your server's IP address
-
You can visit your admin page by appending
admin.html
to your server IP address in your browsers search bar like so:
http://server-ip-address/admin.html
- Your admin password is your API password you set earlier in
config.json
- A01. | Contributing
- A02. | Getting Started
- A03. | Qwertycoin Community
- A04. | Qwertycoin Voting
- A05. | Qwertycoin API
- B01. | Generating a Wallet
- B02. | Making a Paper Wallet
- B03. | Wallet Backup
- B04. | Wallet Recovery
- B05. | Wallet Update
- B06. | Using CLI Wallet
- B07. | Using RPC Wallet
- B08. | Using GUI Wallet
- B09. | Using Zero Wallet
- B10. | Using Web Wallet
- B11. | Using Mobile Wallet
- B12. | RPC Wallet API
- B13. | Sign and verify messages
- C01. | Start Masternode
- C02. | Fix Sync Issues
- C03. | Load Checkpoints
- C04. | JSON RPC API
- C05. | HTTP RPC API
- D01. | XMR Stak Guide
- D02. | XMR Stak Linux Guide
- D03. | XMRIG Guide
- D04. | Mining with SBC
- D05. | Cloud Mining
- D06. | Mobile Mining
- D07. | Using a Mining Pool
- D08. | Creating a Mining Pool
- E01. | How to trade QWC on Crex24
- E02. | How to trade QWC on Bitexlive
- E03. | How to trade QWC on Bisq
- G01. | Hosting Block Explorer
- G02. | Hosting Faucet
- G03. | Hosting Web Wallet
- G04. | How to use the QWC Faucet