Skip to content

Instantly share code, notes, and snippets.

@airtonzanon
Last active April 5, 2025 13:47
Show Gist options
  • Save airtonzanon/b1e064e9e152d0c50c893d3293bc264d to your computer and use it in GitHub Desktop.
Save airtonzanon/b1e064e9e152d0c50c893d3293bc264d to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "\n #####################"
echo "Installing bigcoin source node"
echo "This is just a script putting everything together from the blog post below"
echo "https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea \n"
apt update
apt install git -y
mkdir -p bitcoin-source && cd bitcoin-source
git clone https://github.com/bitcoin/bitcoin.git
ls bitcoin
ls -a
apt install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev -y
apt install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 -y
apt install libboost-all-dev -y
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar -xvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
mkdir -p build
BDB_PREFIX=$(pwd)/build
apt install libminiupnpc-dev -y
apt install libzmq3-dev -y
apt install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler -y
apt install libqrencode-dev -y
cd ../../
cd bitcoin
git checkout tags/v28.0
./autogen.sh
./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --with-gui
make
sudo make install
mkdir ~/.bitcoin
cd ~/.bitcoin
touch ~/.bitcoin/debug.log
## Helpful
## tail -f ~/.bitcoin/debug.log
## QT_QPA_PLATFORM=offscreen bitcoin-qt
## To Run
## bitcoind
## bitcoin-cli getblockchaininfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment