| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Run a secure Bitcoin Core node with ease.
Copy-paste the following command into Terminal:
sh -c "$(curl -fsSL https://github.com/bitcoin-tools/nodebuilder/raw/v2.2.0/nodebuilder)"As mentioned above, start the script from the command line. Open Terminal and run:
sh -c "$(curl -fsSL https://github.com/bitcoin-tools/nodebuilder/raw/v2.2.0/nodebuilder)"Or download the script to your local system, set permissions, and run it:
wget https://github.com/bitcoin-tools/nodebuilder/raw/v2.2.0/nodebuilder
chmod u+x nodebuilder
./nodebuildernodebuilder supports optional arguments to override the default semi-automated settings:
| Short | Long Version | Description | Arguments |
|---|---|---|---|
| -b | --bitcoin-version | Specify the Bitcoin version. | One argument E.g.: -b 30.0 |
| -c | --compile | Build Bitcoin from source. | No arguments |
| -h | --help | Display the help message. | No arguments Supersedes other arguments. |
| -j | --jobs | Set the number of compile jobs. | One argument E.g.: -j 1 |
| -p | --prune | Set a prune value in MiB. | One argument E.g.: -p 50000 |
| -q | --quiet | Suppress output unless unexpected behavior is detected. | No arguments |
| -r | --skip-reboot | Skip reboot after installing system update. | No arguments |
| -s | --skip-update | Skip installation of system updates. | No arguments |
| -t | --test | Run unit tests on functions. | No arguments |
| -u | --unattended | Run in non-interactive mode. | No arguments |
You can set multiple options. Here are two ways to compile Bitcoin 30.0 unattended with a 50000 MiB prune:
./nodebuilder -b 30.0 -c -p 50000 -u
./nodebuilder --bitcoin-version 30.0 --compile --prune 50000 --unattendedA nodebuilder Docker container can either run on Ubuntu (default) or on an alternative Linux distribution: Alpine, Amazon, Arch, Clear, Debian, Fedora, Gentoo, Manjaro, openSUSE Leap, openSUSE Tumbleweed, Oracle, Red Hat Enterprise, Rocky, and SUSE Enterprise.
To run the Ubuntu base image, clone the repository and build the default container.
git clone https://github.com/bitcoin-tools/nodebuilder cd nodebuilder/docker/ docker build .
To use an alternative base image, clone the repository and build a different container. For example, to run nodebuilder on Alpine Linux, run:
docker build -f Dockerfile_alpine .
This POSIX-compliant script installs a minimal number of runtime dependencies that aren't defined in POSIX.
The script performs the following actions:
This script modifies the following in your file system:
An automated solution is in the backlog. For now, here are a series of manual steps to follow:
Uninstalling runtime dependencies can be be tricky. This script installs a minimal number of dependencies like curl, gzip, sudo, and tar as a defensive security posture. For advanced users, if you compiled Bitcoin from source by either using the -c/--compile optional argument or by running on Alpine Linux, please also review the build dependencies that were installed.
To remove the downloaded Bitcoin Core installation and verification files, open the Files or Finder application, go to Downloads, and remove any files starting with bitcoin-. Also remove the directory named guix.sigs.
To remove the installed executable binaries, headers, libraries, and manual pages, open the Files or Finder application, go to /usr/local/bin, and remove bitcoind, bitcoin-cli, bitcoin-qt, bitcoin-util, bitcoin-wallet, and test_bitcoin. Then go to /usr/local/include and remove bitcoinconsensus.h. Then go to /usr/local/lib and remove libbitcoinconsensus.so, libbitcoinconsensus.so.0, libbitcoinconsensus.so.0.0.0 on Linux or libbitcoinconsensus.0.dylib on macOS. Then go to /usr/local/man/man1 and remove bitcoind.1, bitcoin-qt.1, bitcoin-cli.1, bitcoin-tx.1, bitcoin-util.1, and bitcoin-wallet.1.
To remove the shortcut files on Linux, go to the Desktop and remove the bitcoin_core.desktop file. Then go to ~/.local/share/applications and remove bitcoin_core.desktop.
If you want to keep your synced blocks and chainstate data, open the Files or Finder application, go to the data directory at ~/.bitcoin on FreeBSD and Linux or ~/Library/Application Support/Bitcoin on macOS, and either backup the blocks and chainstate directories to an external drive or move those directories somewhere else on your computer. (The next step will remove everything else from the Bitcoin Core data directory.)
To remove the data directory, open the Files or Finder application, go to the ~ on FreeBSD and Linux or ~/Library/Application Support on macOS, and delete the data directory named .bitcoin on FreeBSD and Linux or Bitcoin on macOS. You need to enable the "Show Hidden Files" option in the Files or Finder settings.
If you have any questions or ideas on how this section can be improved, please open an issue.
Inspiration for this project came from these Open Source projects:
Please open an issue for any bug reports or feature requests. You can see the list of open issues here.
If you plan to submit a pull request, please first look over our automated and manual test procedures.
This project is licensed under the terms of the MIT No Attribution / MIT-0 license.
| Back | FazBrowse Home | New Git URL |