I orbit around Bitcoin. The mission: separation of money and state.
Running your own node with Bitcoin Core
Becoming your own bank
Bitcoin Core Installation Guide for Debian/Ubuntu
- Minimum 6GB of data storage (pruned node) — 1TB of data storage (full node)
- Expect the Initial Block Download (IBD) to take at least 24 hours. This operation is mandatory even for a pruned node.
- Allow ~600GB of bandwidth for the IBD, even for a pruned node.
Downloading and Verifying Files
-
Download
bitcoin-24.1-x86_64-linux-gnu.tar.gz, as well as theSHA256SUMSandSHA256SUMS.ascfiles (you obviously need to download the latest version of the software). -
Open a terminal in the directory where the downloaded files are located. Example:
cd ~/Downloads/. -
Verify that the checksum of the version file is listed in the checksum file using the command
sha256sum --ignore-missing --check SHA256SUMS. -
The output of this command should include the name of the downloaded version file followed by
OK. Example:bitcoin-24.0.1-x86_64-linux-gnu.tar.gz: OK. -
Install git using the command
sudo apt install git. Then, clone the repository containing the PGP keys of Bitcoin Core signers using the commandgit clone https://github.com/bitcoin-core/guix.sigs. -
Import the PGP keys of all signers using the command
gpg --import guix.sigs/builder-keys/* -
Verify that the checksum file is signed with the PGP keys of the signers using the command
gpg --verify SHA256SUMS.asc.
gpg: Good signature and another line ending with: Primary key fingerprint: 133E AC17 9436 F14A 5CF1 B794 860F EB80 4E66 9320 (example of Pieter Wuille's PGP key fingerprint).-
This key is not certified with a trusted signature! -
There is no indication that the signature belongs to the owner.
Installation of the Bitcoin Core graphical interface
-
In the terminal, still in the directory where the Bitcoin Core version file is located, use the command
tar xzf bitcoin-24.1-x86_64-linux-gnu.tar.gzto extract the files contained in the archive. -
Install the previously extracted files using the command
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-24.1/bin/* -
Install the necessary dependencies using the command
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -
Start bitcoin-qt (Bitcoin Core graphical interface) using the command
bitcoin-qt. -
To choose a pruned node, check Limit blockchain storage and configure the data limit to be stored:
Conclusion of Part 1: Installation Guide
Configuring Tor for a Bitcoin Core Node
Installing and configuring Tor for Bitcoin Core
sudo apt -y install tor. Once the installation is complete, the service will normally be automatically launched in the background. Check that it is running correctly with the command sudo systemctl status tor. The response should show Active: active (exited). Press Ctrl+C to exit this function.sudo systemctl start tor sudo systemctl stop tor sudo systemctl restart tor
bitcoin-qt. Then, enable the software's automated feature to route our connections through a Tor proxy: Settings > Network, and from there check Connect through SOCKS5 proxy (default proxy) as well as Use a separate SOCKS5 proxy to reach peers via Tor onion services.Advanced Tor Configuration (optional)
bitcoin.conf text file, simply add a line onlynet=onion and save the file. You need to restart Bitcoin Core for this command to take effect.sudo nano /etc/tor/torrc to access the Tor service configuration file. In this file, look for the line #ControlPort 9051 and remove the # to enable it. Now add two new lines to the file:HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServicePort 8333 127.0.0.1:8334
Ctrl+X > Y > Enter. Back in the terminal, restart Tor by entering the command sudo systemctl restart tor.Additional Resources
onlynet=onion) could make you vulnerable to a Sybil attack. That's why some recommend maintaining a multi-network configuration to mitigate this type of risk. Furthermore, all IPv4/IPv6 connections will be routed through the Tor proxy once it is configured, as previously indicated.bitcoin.conf file by adding the line addnode=trusted_address.onion. You can add this line multiple times if you want to connect to multiple trusted nodes.debug=tor to your bitcoin.conf file. You will now have relevant Tor information in your debug log, which you can view in the Information window with the Debug File button. It is also possible to view these logs directly in the terminal with the command bitcoind -debug=tor.- Wiki page explaining Tor and its relationship with Bitcoin
- Bitcoin Core configuration file generator by Jameson Lopp
- Tor configuration guide by Jon Atack
Author
This tutorial has been written by WINTER ☩ HODLER
You can say thanks by tipping the professor.
Credits
This tutorial has been proofread by Asi0Flammeus & LoicPandul
Even if this content is in its original language, human review is necessary to ensure its accuracy.
Asi0FlammeusLoicPandul0 satsEvery content on the platform is the result of a collaborative effort: each lesson, translation, and revision is made possible by the work of contributors. For this reason, we are always looking for proofreaders who can review our content in many languages. If you want to participate in the proofreading process, please reach out in our Telegram group and read our tutorial. We remind you that this content is open-source - licensed under CC BY-SA - so it can be freely shared and used, as long as the original source is credited.
