Skip to content

Instantly share code, notes, and snippets.

View drdavidchung's full-sized avatar

drdavidchung

  • SOHO
  • Taipei
View GitHub Profile
@drdavidchung
drdavidchung / install_btc.sh
Created May 19, 2023 13:54 — forked from nschmeller/install_btc.sh
Script to install Bitcoin Core v0.21.1 on Ubuntu 20.04
#!/bin/zsh
# sourced from https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea
# updated for 3 July 2021 versions (specifically 4.8 Berkeley DB that failed to compile)
# there are a few tradeoffs for this approach: Bitcoin Core seems to require Berkeley DB 4.8 for portable wallets (makes sense)
# this script is intended for a node to support the network and not to act as a wallet, so portability isn't an issue
# so, we compile with --with-incompatible-bdb
# we could avoid this problem by installing earlier versions of apt-get packages instead of the latest versions, but
# that would take a lot of time to track down specific versions