Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash script to install Biblepay CLI on Linux and start mining in the official pool
#! /bin/bash
# BiblePay (
# Script compiled using this guide (
# Before running this script, create an account and a worker name here (
## Usage
# 1) Download this script and go to the downloaded directory
# 2) sudo chmod +x
# 3) ./ {number of mining threads} {pool worker name}
# Eg: ./ 8 workername
echo "Installing BiblePay"
echo Y | sudo apt-get install software-properties-common
echo | sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update &&
echo Y | sudo apt-get install -y libdb4.8-dev libdb4.8++-dev automake bsdmainutils
echo Y | sudo apt-get update && sudo apt-get install g++ git make build-essential autoconf libtool pkg-config libboost-all-dev libssl-dev libevent-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler htop
cd ~
git clone
mkdir -p $BDB_PREFIX
wget ''
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install
cd biblepay
sudo chmod 777 share/
sudo chmod 777
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/"
sudo make -j4
cd src
./biblepayd -daemon
echo -e "\\ngen=1\ngenproclimit=$1\npoolport=80\npool=\nworkerid=$2" > ~/.biblepaycore/biblepay.conf
sleep 5m
./biblepay-cli getinfo
sleep 10
./biblepay-cli stop
sleep 30
./biblepayd -daemon
sleep 60
./biblepay-cli getmininginfo
echo "Installation done! Started mining on pool"
## If you find this script useful, consider donating to the official orphan foundation
# Biblepay: BB2BwSbDCqCqNsfc7FgWFJn4sRgnUt4tsM (

This comment has been minimized.

Copy link

canopussy commented Oct 24, 2017

no working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.