Buying preloaded Bitcoin nodes on a Raspberry Pi or downloading software from other people to run a node on a Raspberry Pi you just bought, might not be as straight forward as it seems. There are malicious actors out there who would exploit the convenience those shortcuts afford to scam you or preload malware into your device. Raspberry Pi 4 Bitcoin Full Node tutorial. A noob-friendly step-by-step guide for selecting the hardware, configuring and running a Raspberry Pi, and configuring and running a Bitcoin full node with a focus on setting it up with enhanced privacy. This is meant for people who have limited or no experience with a Linux/UNIX-style operating system. Build Your Own Raspberry Pi Bitcoin Full Node [Bitcoin Core] Click Here for building Bitcoin XT. LAST UPDATED OCTOBER 8, Disclaimer: I cannot guarantee these steps will work % of the time. Like all DIY tutorials they make assumptions about things and are subject to external libraries and software being updated or changed.
Orange pi bitcoin nodeGitHub - kdmukai/raspi4_bitcoin_node_tutorial: Raspberry Pi 4 Bitcoin Full Node tutorial
All of them include a Raspberry Pi and other elements necessary to run it just like you would run a desktop computer. The relatively low cost makes this computer accessible even for people who are on a budget.
That makes it convenient for anyone looking to install a full Bitcoin node at home without using their personal computer. You could just go ahead and set it up all by yourself, following the instructions on Bitcoin. But other people who have already gone through the process, offer their own solutions on GitHub and other websites, allowing you to skip a few steps. Some people even offer to ship a fully functional Bitcoin node on a Raspberry Pi to you, saving you the whole installation process.
These fully loaded Raspberry Pi nodes often come with most of the blockchain preloaded, which can save you the initial data consumption that syncing a node from scratch requires. Right click, and copy the link URL. At this point, if you're using the Raspberry Pi OS Desktop and would prefer to use a GUI, you can skip this step and follow the instructions found here.
With the external hard drive configured and bitcoind installed, you can now run the bitcoind daemon. Using the following command will start the bitcoind daemon specifying our external hard drive as the data directory. Since we're starting the daemon with a non-standard data directory, we'll need to specify the datadir every time we use the bitcoin-cli command, like this:.
However, if you want to avoid this, you can simply add an alias in your bashrc file. The daemon will take some time to start up, but once it does your node will begin to download the entire Bitcoin blockchain. The entire blockchain is just under GB at the moment, so you can imagine that this will take some time.
If you need to pause for whatever reason, you can simply run:. This will pause everything. When you start up the daemon again, it will pick up where it left off. In the previous step, you manually started the daemon. But if you're using the Raspberry Pi as a dedicated Bitcoin full node, you'll likely want the daemon to start whenever the machine boots.
Assuming you're using your full node to support the Bitcoin network, you'll need to make sure your node accepts inbound connections. Enter your IP address and the port, if you happened to modify it the default port is Chances are you're running your full node on your home network, which means you likely saw an error in the previous step.
To resolve this, you'll need to forward port from your WiFi router to your Raspberry Pi. Every router is different, so you may have to do some digging around. Fortunately, we've written a guide on how to open a port on your router that should give you some direction. Enlarging the swap file by a little bit protects against this possibility. If you are using an Ethernet cable and plugging directly into your router and DHCP is turned on, you can plug that in and you should have access to the Internet.
You can check by pinging out:. If you start to see pings you are good. If you are using a wifi adapter and have a password set for your router, there are a few more steps to take. Setting up and troubleshooting wifi on the Raspberry Pi is beyond the scope of this tutorial, so if the basic setup shown here doesn't work, you can reference the Raspberry Pi documentation for help:.
In order to install Bitcoin Core we need to install a few tools and software packages. First let's make sure everything is up to date and update it if it isn't:. That should take just a couple minutes.
If you plan on using bitcoin-qt the GUI and wallet then you'll have to install additional dependencies:. Bitcoin Core 0. If you wish to run your Bitcoin node without a wallet, you can skip to Installing Bitcoin. The "make -j4" command should take around 5 minutes to complete. If you get errors, then remove the "-j4" and just execute "make". This will take around 20 minutes. Download the Bitcoin Core 0. This command should download and install the latest 0.
So if you wish to upgrade from 0. Leaving the -b argument out will grab the latest development version which may or may not be stable and will not have been officially released yet. If you don't need the bitcoin-Qt GUI and will run your raspnode 'headless', then use this command instead:. The '-O2' arguments above are a capital letter O, not the number zero. If you don't want to use UPnP, which automatically tries to open a port on your router for incoming Bitcoin connections on , then remove '--enable-upnp-default'.
The "make -j2" command should take about 2. Don't use "-j4" for this build. If you get errors using "-j2", then just run "make" but it will take around twice as long to build.
Move into your mounted USB directory. Create the file bitcoin. If you try running bitcoind before doing this, it will suggest a user and password, it is recommended you use those. If you want to run bitcoin-Qt the GUI with wallet then you'll have to first launch the desktop:. Downloading and verifying the full Bitcoin blockchain on the raspberry pi will take well over a month at this point and due to some optimizations made, doing so will cause the bitcoin software to crash many times during this period.
You need to download the blockchain to another computer and transfer it to the external drive first. If you configured your build with '--enable-upnp-default' then your raspnode with try to open up the ports on your router automatically. Not all routers support UPnP and it may not be enabled on yours even if it does.
If this is the case, you will need to configure your home router to forward port to your raspnode. To do this you'll need your raspnode's IP address which you can get by running ifconfig:.