Skip to content

Instantly share code, notes, and snippets.

@rupertlssmith
Last active July 7, 2025 20:14
Show Gist options
  • Save rupertlssmith/442c9c062536a9ec4b126a0e743cdcb4 to your computer and use it in GitHub Desktop.
Save rupertlssmith/442c9c062536a9ec4b126a0e743cdcb4 to your computer and use it in GitHub Desktop.
How to install bitcoin knots on Debian
# 🧩 Bitcoin Knots Installation Guide (Debian)
## 1. Install Required Dependencies
```bash
sudo apt update
sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git
sudo apt install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev
sudo apt install libminiupnpc-dev libzmq3-dev libsqlite3-dev
```
## 2. Clone the Bitcoin Knots Repository
```bash
git clone https://github.com/bitcoinknots/bitcoin.git
cd bitcoin
```
## 3. Checkout the Latest Stable Release
```bash
git checkout $(git tag | grep 'v[0-9]' | sort -V | tail -n1)
```
## 4. Build Bitcoin Knots
```bash
./autogen.sh
./configure
make -j$(nproc)
```
## 5. Install the Binaries
```bash
sudo make install
```
## 6. Run Bitcoin Knots
```bash
bitcoind -daemon
```
To check the status:
```bash
bitcoin-cli getblockchaininfo
```
---
## 📁 Optional: Create `bitcoin.conf`
File location: `~/.bitcoin/bitcoin.conf`
Example contents:
```
server=1
daemon=1
txindex=1
rpcuser=yourusername
rpcpassword=yoursecurepassword
```
---
Let me know if you want instructions for GUI (`bitcoin-qt`), pruning, or testnet configurations.
@Henelik
Copy link

Henelik commented Jul 7, 2025

Awesome info, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment