Bitcoin Forum
June 14, 2024, 09:23:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: bitcoind, c-lightning and RTL on centos 7 (walktrough)  (Read 513 times)
psycodad
Legendary
*
Offline Offline

Activity: 1614
Merit: 1628


精神分析的爸


View Profile
September 25, 2021, 08:46:52 PM
Merited by mocacinno (1), ABCbits (1), n0nce (1)
 #21

The whole nginx install and config is to be able to use a HTTPS certificate? I have not installed a node on a VPS, always in local networks that's why I ask, I just use the local IP.

Yes, that and you get the advantage of being able to restrict access further by ip-addresses (and more webserver config kung-fu if you like).
It's certainly not advisable but RTL can be exposed to the network in many easier ways (like a port redirector).

mocacinno (OP)
Legendary
*
Offline Offline

Activity: 3430
Merit: 5032


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 26, 2021, 11:26:56 AM
 #22

Just a minor issue, all the images in your guide are broken (maybe you removed them from your hosting server or changed their names/paths?)


Thanks for notifying me... It's quite odd tbh... The images themselves are still online, but for some strange reason bitcointalk's image proxy shows an error..

For example, the very first image is
Code:
https://mocacinno.com/hotlinkimages/bitcoind/1.png
Which works perfectly fine, unless you watch my post, then it shows an error Sad

@psycodad: thanks for the feedback, it's great to hear the walktrough still works Smiley, i wrote it over 1,5 years ago, so it's always a big guess as to how long an extensive walktrough will continue to function.

I wanted to chip in into the discussion a couple of times over the last couple of days, but everytime i saw somebody else stepped in and gave a good answer to the questions that had been asked, so thanks for keeping the discussion alive guys  Grin

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 26, 2021, 01:33:49 PM
Last edit: September 26, 2021, 01:56:52 PM by n0nce
Merited by JayJuanGee (2), ABCbits (2), mocacinno (1), Pmalek (1), psycodad (1)
 #23

Hey @mocacinno, I was trying some stuff with your pictures; very weird that the image proxy has issues with them. However, I noticed we can index your webserver & see the contents, not sure if intended or not, but I personally prefer to disable this in most cases:
https://mocacinno.com/hotlinkimages/

EDIT: The issue is that your URLs lack https!

Example:
Code:
[img width=200]http://www.mocacinno.com/hotlinkimages/RTL/1.png[/img]


Code:
[img width=200]https://www.mocacinno.com/hotlinkimages/RTL/1.png[/img]




Broken:
Code:
[img]http://www.mocacinno.com/hotlinkimages/RTL/1.png[/img]
[img]http://www.mocacinno.com/hotlinkimages/RTL/2.png[/img]
[img]http://www.mocacinno.com/hotlinkimages/RTL/3.png[/img]
[img]http://www.mocacinno.com/hotlinkimages/RTL/4.png[/img]
[img]http://www.mocacinno.com/hotlinkimages/RTL/5.png[/img]

Fixed:
Code:
[img]https://www.mocacinno.com/hotlinkimages/RTL/1.png[/img]
[img]https://www.mocacinno.com/hotlinkimages/RTL/2.png[/img]
[img]https://www.mocacinno.com/hotlinkimages/RTL/3.png[/img]
[img]https://www.mocacinno.com/hotlinkimages/RTL/4.png[/img]
[img]https://www.mocacinno.com/hotlinkimages/RTL/5.png[/img]



My guess: Your webserver had no TLS certificate in 2020 but does now Grin

Yup, looks to me like your certificate is new since 9/8/2021!

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mocacinno (OP)
Legendary
*
Offline Offline

Activity: 3430
Merit: 5032


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 27, 2021, 05:39:21 AM
 #24

@n0nce: thanks, that was it... Fixed it now Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 27, 2021, 03:09:10 PM
 #25

@n0nce: thanks, that was it... Fixed it now Smiley
Thank you for the guide! Cheesy Looks way better now Wink
I think my next setup will be based on something with systemd as well, so I will use this guide - already saw some things that seem like very good practices which I'm missing in my current setup.
Right now, I use AntiX (Debian) and while I find SysV init scripts cooler, it seems many more people use systemd and it has more abilities.

Just wondering: Why CentOS 7? I just checked Wikipedia and it says it will be discontinued end of year? Actually, there's CentOS 8 as latest version, so even 7 would be an old version now (while still maintained).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
psycodad
Legendary
*
Offline Offline

Activity: 1614
Merit: 1628


精神分析的爸


View Profile
September 27, 2021, 03:55:47 PM
Merited by JayJuanGee (2), ABCbits (2), mocacinno (1)
 #26

Just wondering: Why CentOS 7? I just checked Wikipedia and it says it will be discontinued end of year? Actually, there's CentOS 8 as latest version, so even 7 would be an old version now (while still maintained).

That's not mocacinno's fault, when he wrote that walkthrough Centos 7 was still a thing with an EOL far in the future but Redhat (IBM) totally fucked this one up.
They saw Centos eating into their RHEL sales a lot and decided to move EOL for 7 and 8 forward quickly (8 EOLs end of this year). It will be replaced by Centos Stream which is unsuitable as a free replacement for RHEL in the enterprise landscape like Centos was as it seems to be a rolling version.

However the Centos community forked AlmaLinux which aims to replace Centos as free point release of the RHEL sources and so far it does a great job. Projects that build on Centos now mostly use AlmaLinux.
I would say most if not all of this walkthrough should work with AlmaLinux perfectly fine.

n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 27, 2021, 03:57:31 PM
 #27

Just wondering: Why CentOS 7? I just checked Wikipedia and it says it will be discontinued end of year? Actually, there's CentOS 8 as latest version, so even 7 would be an old version now (while still maintained).

That's not mocacinno's fault, when he wrote that walkthrough Centos 7 was still a thing with an EOL far in the future but Redhat (IBM) totally fucked this one up.
They saw Centos eating into their RHEL sales a lot and decided to move EOL for 7 and 8 forward quickly (8 EOLs end of this year). It will be replaced by Centos Stream which is unsuitable as a free replacement for RHEL in the enterprise landscape like Centos was as it seems to be a rolling version.

However the Centos community forked AlmaLinux which aims to replace Centos as free point release of the RHEL sources and so far it does a great job. Projects that build on Centos now mostly use AlmaLinux.
I would say most if not all of this walkthrough should work with AlmaLinux perfectly fine.
Oh right, I didn't check the topic creation's date! I'll see which distro to use, not sure yet Grin Maybe plain Debian with systemd.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mocacinno (OP)
Legendary
*
Offline Offline

Activity: 3430
Merit: 5032


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 27, 2021, 04:06:27 PM
Last edit: September 27, 2021, 04:19:27 PM by mocacinno
Merited by JayJuanGee (2)
 #28

Currently, i'm usually going for either debian or openSuse. My daytime job centers around SLES, so i have a very reasonable amount of experience... If you pick either distro and run into problems: don't hesitate to post them. I cannot guarantee i'll be able to fix everything, but i'll certainly try to answer any question (unless somebody else beats me to the punch Smiley ).

The next time i have some spare resources to do a complete setup, i might consider doing a complete writeup using one of those two distro's.
The diff between a walktrough for centos and debian (or opensuse) should be minimal... Basically, just the way the prereqs are installed would differ since you wouldn't use yum, but apt (debian) or zypper (suse) or rpm (suse) instead. Maybe some extra prereqs, but all in all, the way you use git, add users, compile, setup systemd services,... isn't all that different between those 3 distro's (albeit, you probably won't be able to blindly copy/paste commands if you switch distro's).

If anybody wants a walktrough for debian or opensuse and has a VPS he/she isn't using for a while that can be scratched: if you have the resources, i can writeup a walktrough... I can't personally spare the resources right now (my dedicated boxes are basically overloaded as it is), but if you have them, i'm allways willing to help out Wink

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
September 27, 2021, 04:33:23 PM
 #29

Currently, i'm usually going for either debian or openSuse. My daytime job centers around SLES, so i have a very reasonable amount of experience... If you pick either distro and run into problems: don't hesitate to post them. I cannot guarantee i'll be able to fix everything, but i'll certainly try to answer any question (unless somebody else beats me to the punch Smiley ).
Cool, good to know! Maybe I will choose openSuse just because I haven't used it at all so far Cheesy
I could write down all the steps as well and post it here; as you say it'll be mostly copy-paste anyway, just small differences.

In my experience, the only differences when following writeups for other distros were always package manager and how services are created to run and restart Bitcoin / Lightning / RTL.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mocacinno (OP)
Legendary
*
Offline Offline

Activity: 3430
Merit: 5032


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 28, 2021, 05:19:34 AM
Merited by n0nce (2)
 #30

--snip--
Cool, good to know! Maybe I will choose openSuse just because I haven't used it at all so far Cheesy
I could write down all the steps as well and post it here; as you say it'll be mostly copy-paste anyway, just small differences.

In my experience, the only differences when following writeups for other distros were always package manager and how services are created to run and restart Bitcoin / Lightning / RTL.

Just a quick sidenode in case you want to try opensuse: they have 2 versions (leap and tumbleweed). I'd recommand Leap, since it's more stable with regular releases... Tumbleweed is also using rolling releases, i personally don't like to use it for systems that should be stable.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
October 07, 2021, 04:23:41 PM
 #31

Just a quick sidenode in case you want to try opensuse: they have 2 versions (leap and tumbleweed). I'd recommand Leap, since it's more stable with regular releases... Tumbleweed is also using rolling releases, i personally don't like to use it for systems that should be stable.
Thanks, I'm installing Leap right now Smiley

Not really OS related, but to be safe: I put my .bitcoin directory on the second hard drive of the machine.
I would then configure the service like this. It should recognise everything, correct?
Let's assume the HDD is mounted on /home/harddrive.

ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf
ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/harddrive/.bitcoin/bitcoin.conf

And I'd change bitcoin.conf like this:

datadir=/home/bitcoin/.bitcoin/
datadir=/home/harddrive/.bitcoin

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mocacinno (OP)
Legendary
*
Offline Offline

Activity: 3430
Merit: 5032


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
October 07, 2021, 05:41:09 PM
 #32

@n0nce: that looks correct to me Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!