You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've documented what it took for me to get eloipool installed & running at boot- would like to share with the project should they approve of its content:
2a) Use your OS' package manager, install python 3 & screen with this command:
sudo aptitude -y update && sudo aptitude install -y python3-all-dev screen
2b) Clone the 'jgarzik/pythonbitcoinrpc' git repository into a dir in your home dir, using this command:
git clone git@github.com:jgarzik/python-bitcoinrpc.git
2b1) change to the newly created directory with the following command:
cd python-bitcoinrpc
2b2) Install pythonbitcoinrpc using the following command:
python setup.py install
Configure bitcoind:
5a) Open or create the file ~/.bitcoin/bitcoin.conf & put the following in it, substituting the xxxx's with your own values, which don't really matter & can be forgotten:
6l) Change the following line to look like the one below:
LogFile = {
'filename': 'filename.log',
LogFile = {
'filename': 'eloipool.log',
Create startup scripts so everything we need is up after a reboot
7a) In your home directory, create a folder just for your scripts with this command:
mkdir scripts
7b) Create a script to start bitcoind
7b1) Create the file ~/scripts/bitcoindstart.sh, & put the following in it, adjusting for your own directory paths & username (without the <>'s):
#!/bin/sh
sleep 30
screen -dm su <username> -c PYTHONPATH=/home/<username>/<path to bitcoinrpc>:/home/<username>/<path to python-base58> \
nohup ./eloipool.py 2>&1 >/dev/null &
7b2) Make the script belong to the user, & be executable with the following command, adjusting for your own directory paths & username (without the <>'s):
sudo chown : ~/scripts/bitcoindstart.sh
sudo chmod a+x ~/scripts/bitcoindstart.sh
Create a script to start eloipool
8a) Create the file ~//poolstart.sh in the eloipool root directory, which was created during the git checkout, & put the following in it, adjusting for your own directory paths & username (without the <>'s):
Hi,
I've documented what it took for me to get eloipool installed & running at boot- would like to share with the project should they approve of its content:
To Install:
Add your ssh key to github according to these instructions here:
https://help.github.com/articles/generating-ssh-keys/
Install dependencies:
2a) Use your OS' package manager, install python 3 & screen with this command:
sudo aptitude -y update && sudo aptitude install -y python3-all-dev screen
2b) Clone the 'jgarzik/pythonbitcoinrpc' git repository into a dir in your home dir, using this command:
git clone git@github.com:jgarzik/python-bitcoinrpc.git
2b1) change to the newly created directory with the following command:
cd python-bitcoinrpc
2b2) Install pythonbitcoinrpc using the following command:
python setup.py install
2c) Clone the 'python-base58' git repository into a dir in your home dir, using this command:
git clone https://gitlab.com/bitcoin/python-base58.git
2c1) Install python-base58 using the following command:
python base58.py install
Clone the eloipool git repository locally somewhere in your home directory with this command:
git clone git@github.com:luke-jr/eloipool.git
Install bitcoind with these commands:
sudo aptitude install -y python-software-properties
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo aptitude update && sudo aptitude install -y bitcoind
Configure bitcoind:
5a) Open or create the file ~/.bitcoin/bitcoin.conf & put the following in it, substituting the xxxx's with your own values, which don't really matter & can be forgotten:
6a) ServerName to something unique
6b) Change this:
to this:
6c) Comment out CoinbaserCmd so it looks like this:
6d) Change the TemplateSources section to look like the following, adjusting for your own directory paths & username (without the <>'s):
6e) Empty TemplateChecks section so it looks like this:
6f) Delete the whole BlockSubmissions section
6g) Change the following line to look like the one below:
6h) Change the following line to look like the one below:
6i) Change the following line to look like the one below:
6j) Change the following line to look like the one below:
6k) Change the following code to look like the one below:
6l) Change the following line to look like the one below:
7a) In your home directory, create a folder just for your scripts with this command:
mkdir scripts
7b) Create a script to start bitcoind
7b1) Create the file ~/scripts/bitcoindstart.sh, & put the following in it, adjusting for your own directory paths & username (without the <>'s):
7b2) Make the script belong to the user, & be executable with the following command, adjusting for your own directory paths & username (without the <>'s):
sudo chown : ~/scripts/bitcoindstart.sh
sudo chmod a+x ~/scripts/bitcoindstart.sh
8a) Create the file ~//poolstart.sh in the eloipool root directory, which was created during the git checkout, & put the following in it, adjusting for your own directory paths & username (without the <>'s):
Make the script belong to the user, & be executable with the following command, adjusting for your own directory paths & username (without the <>'s):
9a) To make bitcoind start at boot, add the following to /etc/rc.local, adjusting for your own directory paths & username (without the <>'s):
9b) To make eloipool start at boot, edit cron with the following command:
crontab -e
9b1) Enter the following to the bottom of the file, adjusting for your own directory paths & username (without the <>'s):
The text was updated successfully, but these errors were encountered: