>> (p.1)
    Author Topic: [Guide] FULL NODE OpenSUSE 15.3: bitcoind + electrs + c-lightning + RTL  (Read 2243 times)
    n0nce (OP)
    Hero Member
    *****
    Offline Offline

    Activity: 938
    Merit: 6012


    not your keys, not your coins!


    View Profile WWW
    October 21, 2021, 01:12:09 PM
    Last edit: January 15, 2024, 11:45:44 AM by n0nce
    Merited by LoyceV (42), Welsh (12), vapourminer (10), hugeblack (10), NotATether (10), suchmoon (9), DaveF (8), ABCbits (6), d5000 (5), dkbit98 (5), BlackHatCoiner (5), PawGo (5), Rath_ (3), JayJuanGee (2), NeuroticFish (2), Pmalek (2), bitmover (2), Husna QA (2), Daltonik (2), darkv0rt3x (2), mocacinno (1), DdmrDdmr (1), franckuestein (1), vv181 (1)
     #1

    Since I wanted to rebuild one of my full nodes anyway, and like to experiment with different distro's, this time I went for OpenSUSE. It's enterprise-ready software with long-term support and should be very stable. Perfect for a Bitcoin node!

    Changelog:
    [...]
    15.01.2024: Update guide -- all latest versions! Bitcoin Core v26.0, electrs v0.10.2, Core Lightning v23.11.2 and RTL v0.15.0

    Disclaimers: I used @mocacinno's great centos 7 guide in parts and he generously helped me with some SUSE issues as well, so I want to give credit for that. His walkthrough is very good, but CentOS 7 is now outdated and I also wanted to add Electrum as well as configuring Electrum & C-Lightning to use Tor.

    I opted to configure Electrum and C-Lightning to just use Tor. I find this the best way for privacy, circumventing NAT issues (home networks) and it has built-in encryption thus requiring no TLS certificates.
    Finally, your eyes might be bleeding looking at all the nano commands. I myself obviously prefer vim, but someone who isn't familiar with it might prefer nano instead, that's why I wrote it down like this.

    The hardware is quite low-end stuff, which goes to show that even a cheap node can run the 'full stack' Smiley
    • Intel® Core™ i3-2328M -- 2 cores, 4 threads, 2.2GHz
    • 8GB RAMI started with 4GB, the additional 4 sped up the IBD a ton
    • 2x 500GB HDDsSwitched to 1TB SSD
    • Regular broadband internet connection & LAN, nothing fancy

    Note: By now, I switched to a 1TB SSD. Since then, the electrum server (still through Tor) is super snappy. My clients seem to connect and refresh much quicker. It still takes a bit longer than through clearnet, but Tor is hassle-free and secure.

    mocacinno's remarks apply here as well:
    some remaks:
    • i didn't document the firewall rules, because there are several possible firewall-implementations, and basically, if i'd have to go into the details of setting up firewallrules, i'd need a completely seperate firewall tutorial alltogether. If you have a clean (unused) VPS or you're installing a server in your HOME network (behind your own firewall), you *might* want to disable the firewall for testing puposes (re-enable it afterwards tough!!!)
    • i didn't document the backup procedures. Always make sure you backup wallets, seeds,...
    • no guarantee... If you follow these steps and lose money: don't blame me
    • no help... Sure, i might try to help you out if you run into problems, but i'm under no obligation to do so. Best effort only, and only when i have time to help you
    • no docker. Sure, docker is great, but if you run docker containers, you'll never know what's under the hood Smiley. It's easy to download and spin up a docker container, but you'll learn little (or nothing). Don't get me wrong, if you're building your own containers or if you don't want to learn how to setup your service, docker is great... Just not if you want to get your hands dirty Smiley
    • bitcoin core, c-lightning and RTL are built from source in this walktrough... It's up to you to periodically perform updates (not only for these binaries, but for all packages on your system)
    • this tutorial is a work in progress... There are many other steps (hardening, cleanup,...) that could happen. I'll probably edit these steps when i get input, or when i think about something myself. This is also why i split up this thread, this way every step has the chance/space to grow in the future...

    Software list
    Bitcoin Core: Reference implementation of Bitcoin, fully verified, keeps whole blockchain, requires no trust.
    ElectRS: Lightweight Electrum implementation - get privacy for your SPV wallets!
    C-Lightning: Lightweight Lightning Network implementation - instant and cheap BTC payments.
    Ride The Lightning: Lightning management GUI, accessible via LAN from other devices in the network.



    My C-Lightning backup guide can now be found here:
    https://bt.irlbtc.com/view/5384133.0



    How to update your node:
    https://bt.irlbtc.com/view/5366854.msg61920456#msg61920456

    n0nce.eu
Page 1
Viewing Page: 1