I want to install a command line-only full node bitcoind
on a mini PC with 4GB RAM and Ubuntu. What are the steps to do it and how can I check if it works?
4 Answers
Dependencies
To get add-apt-repository, which we will use later to add the bitcoin PPA:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
Configuration
Before starting bitcointd you'll want to create directory and the bitcoin.conf configuration file:
cd ~/
mkdir .bitcoin
cd .bitcoin
vim bitcoin.conf
or nano bitcoin.conf
In bitcoin.conf these content are important:
server=1
testnet=1
rpcuser=UNIQUE_RPC_USERNAME
rpcpassword=UNIQUE_RPC_PASSWORD
If you wish to use this installation on the regular bitcoin network, remove testnet=1
-
-
When adding ppa:bitcoin/bitcoin it says: NOT MAINTAINED. The OS-library linking packages here had a series of issues. PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files). Jan 22, 2021 at 9:40
useradd bitcoin
andpasswd bitcoin
- link
/home/bitcoin/.bitcoin
to external HDD withchown -R bitcoin:bitcoin
git clone bitcoin core
in/home/USER/GitStuff
- add bitcoin ppa repository
sudo apt install libdb4.8-dev && sudo apt install libdb4.8++-dev
/autogen.sh
in/home/USER/GitStuff/bitcoin
/configure --withoug gui
make
make install
10su bitcoin
- start
bitcoind
(as userbitcoin
) curl -sL https://bitnodes.earn.com/api/v1/nodes/me-8333 | jq
The custom apt repository now states it is unmaintained, and to use the snap found here: https://github.com/bitcoin-core/packaging/tree/main/snap
sudo snap install bitcoin-core
Config file wants to live at: /home/yourusername/snap/bitcoin-core/common/.bitcoin/bitcoin.conf
There is a guide in the docs of the bitcoin source code that goes over how to build bitcoin as well as the dependencies needed. Within that same directory of the source (doc/) there are various other guides and explanations that you may find useful as well.
-
Thanks, I actually would have added this and others once I refine my answer. I just wanted to put it out there for a start yesterday.– bombenNov 26, 2019 at 6:52