I need help for making a BTC & LN Raspy Node

I am planning on making a Bitcoin Node with a Raspberry pi. I wish to make it a full node.
And after having success on that, I want to repeat the process, with another Raspberry pi and make an additional node, but this time dedicated for Lightening Network.

If anybody here has already done this, and know where to point me out for tutorials either inside Moralis or on the web, I would be really thankful for the suggestions.

I am learning to code, with resources from Moralis of course, but also from Nicosia, Freecodecamp & Udemy courses. My level of understanding is not from an expert, but I will be fine, I think I can handle the technicalities.

Thank you so much in advance,
JPL
https://code.jplaclau.com/
https://github.com/JPLACLAU

2 Likes

That’s amazing to hear :slight_smile:
So there is probably plenty of tutorials out there, but I particularly enjoyed this tutorial on how to build one - https://www.youtube.com/watch?v=qeBpYPcx1wg

But in short here are the steps:

  1. Purchase a Raspberry Pi, a power supply, and a microSD card.
  2. Download and install the Raspberry Pi OS (previously called Raspbian) on the microSD card.
  3. Connect the Raspberry Pi to a monitor, keyboard, and mouse.
  4. Connect the Raspberry Pi to the internet, either via Ethernet or Wi-Fi.
  5. Open a terminal on the Raspberry Pi and enter the following command to update the package list:
sudo apt-get update
  1. Install the necessary packages for building Bitcoin Core by running the following command:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
  1. Download the Bitcoin Core source code by running the following command:
git clone https://github.com/bitcoin/bitcoin.git
  1. Build and install Bitcoin Core by running the following commands:
cd bitcoin
./autogen.sh
./configure
make
sudo make install
  1. Create a configuration file for Bitcoin Core by running the following command
touch ~/.bitcoin/bitcoin.conf
  1. Edit the configuration file and add the following lines:
daemon=1
txindex=1
  1. Start the Bitcoin daemon by running the following command:
bitcoind

It will take some time for the node to catch up to the current state of the blockchain, but once it does, it will be fully functional and ready to use as a full node.

Note that this process is memory and storage intensive, so it is recommended to use a Raspberry Pi with at least 2GB of RAM and an SD card with at least 32GB of storage.

1 Like

Thank you for your answer. Something troubles my mind, isn’t the current state of the blockchain more than 32GB? Will I be able to store all blockchain data?

plus. After doing this. For having a LN node. Do I have to buy another Raspy, or can it be the same one?

The questions are open for anybody to answer, thank you all in advance.

Yes, the current size of the Bitcoin blockchain is about half a Terabyte, so if you want a full node with a full copy of the blockchain you need more storage.

You can run your LN node on the same hardware

1 Like