Title: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 13, 2020, 12:33:11 PM bitcoind, c-lightning and RTL on centos 7 (walktrough)
I decided to write down some documentation on how to rebuild some of my services in case i ever faced a system crash, and because i more or less had all documentation on my system, i decided to update everything and publish it on this forum AND my blog... This way everybody could use my documentation to setup their own services of they ever wanted to. some remaks:
Overview Of what we'll be installing Bitcoin Core: a full node implementation and wallet, sometimes called the reference client. This node fetches all blocks and unconfirmed transactions from the peers it's connected to, parses and verifies everything and has a full wallet functionality C-lightning: a Lightning Network implementation in C. Create lightning channels, create or pay lightning invoices. RTL: Ride the lightning: one of the best GUI's that can be used on top of an existing c-lightning daemon. No extra functionality, but a lot easyer to use than using lightning-cli Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 13, 2020, 12:33:29 PM Bitcoin core
prereqs: running (base) system step 1: create service user, install prereqs Code: adduser bitcoin step 2: verify Code: whoami step 3: build :) Code: git clone https://github.com/bitcoin/bitcoin.git step 4: create password hash Code: cd share/rpcauth/ step 5: make dir, create conf Code: mkdir ~/.bitcoin step 6: fill bitcoin.conf Code: daemon=1 step 7: create service file Code: sudo nano /usr/lib/systemd/system/bitcoind.service step 8: file bitcoind.service Code: [Unit] step 9: enable and start bitcoind service Code: sudo systemctl enable bitcoind.service step 10: final step: check if your node is syncing Code: tail -f ~/.bitcoin/debug.log step 11: (optional), re-visit step 6 and remove the banscore variable and decrease dbcache Finished... Now you'll have to wait several hours for your node to sync... You can only proceed to the next step once this process is finished https://www.mocacinno.com/hotlinkimages/bitcoind/1.png Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 13, 2020, 12:33:39 PM c-lightning
prereqs: running and synced bitcoin core step 1: make sure you're user bitcoin, make sure you're in the home folder, install the prereqs Code: whoami step 2: clone and build c-lightning Code: git clone https://github.com/ElementsProject/lightning.git step 3: create the service Code: sudo nano /usr/lib/systemd/system/lightningd.service step 4: fill lightningd.service Code: [Unit] step 5: create conf file Code: nano /home/bitcoin/.lightning/bitcoin/lightningd.conf step 6: fill conf file Code: network=bitcoin step 7: enable and start the service Code: sudo systemctl enable lightningd.service step 8: monitor the startup progress Code: tail -f /home/bitcoin/.lightning/debug.log Finished... https://www.mocacinno.com/hotlinkimages/clightning/1.png Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 13, 2020, 12:33:57 PM RTL
prereqs: running and synced bitcoin core, running lightningd (c-lightning) step 1: make sure you're user bitcoin, make sure you're in the home folder, install the prereqs Code: whoami step 2: clone and build c-lightning-REST (this is a prereq for RTL) Code: git clone https://github.com/saubyk/c-lightning-REST step 3: create a service file for c-lightning-REST Code: sudo nano /etc/systemd/system/c-lightning-REST.service step 4: fill c-lightning-REST.service Code: [Unit] step 5: enable and start the service Code: sudo systemctl enable c-lightning-REST.service step 6: make sure you're back into your home folder Code: cd ~ step 7: clone and build RTL Code: git clone https://github.com/Ride-The-Lightning/RTL.git step 8: edit RTL-Multi-Node-Conf.json Code: { step 9: create service file Code: sudo nano /etc/systemd/system/RTL.service step 10: fill RTL.service Code: [Unit] step 11: enable and start RTL service Code: sudo systemctl enable RTL.service At this point, you have RTL up and running... If you surf to https://127.0.0.1:3000 you'll be able to login and manage your lightning node. HOWEVER, if you've installed RTL on a server without a desktop environment and/or without proper x server forewarding, you'll need to execute the following steps in order to be able to surf to RTL (the RTL daemon only listens on localhost port 3000, so i't not accessible on an external port step 1: register a tld. If you don't want to spend any money, a .tk domain is free. Make sure there's an a-record for this domain that points to your server. If you really don't have a domain, contact me and i'll give you a free [yourname].mocacinno.com subdomain step 2: request a certificate for this domain using certbot Code: sudo yum install nginx certbot step 3: open nginx.conf Code: nano /etc/nginx/nginx.conf step 4: edit nginx.conf Code: user nginx; step 5: restart nginx Code: sudo service nginx restart step 6: you now have RTL up and running: https://yourdomain.tld:3002 https://www.mocacinno.com/hotlinkimages/RTL/1.png https://www.mocacinno.com/hotlinkimages/RTL/2.png https://www.mocacinno.com/hotlinkimages/RTL/3.png https://www.mocacinno.com/hotlinkimages/RTL/4.png https://www.mocacinno.com/hotlinkimages/RTL/5.png Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 13, 2020, 12:34:09 PM I'm thinking about adding a walktrough on how to install btcpayserver on top of the above stack... But i haven't written any documentation about this process (yet)... So i'll either update this post in the future, or i'll remove it (if i decide adding btcpayserver is to much work)
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Wind_FURY on January 14, 2020, 06:29:17 AM How much would your average monthly cost be for electricity, internet connection, maintenance, if you keep your Lightning node running for 24/7 that specializes in providing liquidity?
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 14, 2020, 06:41:47 AM How much would your average monthly cost be for electricity, internet connection, maintenance, if you keep your Lightning node running for 24/7 that specializes in providing liquidity? To be honest, i hire a dedicated server which i've partitioned into smaller VPS's. A dedicated box costs me €40/month, but i would be able to install 5 or 6 full stacks on such a dedicated server, so if you pool your resources with 3 other forum members, you'd have a nice VPS with plenty of resources for €10/month if you'd want to. If you want to do a home setup, much depends on the power draw of your machine... An avarage laptop draws 60 Watts (according to google), beause there's a lot of IO and system load, i'd guess a laptop running such a stack would draw a little bit more. 80 Watt * 24 hours * 31 days =~ 60 Kwh. In my country i pay about 30 cents per Kwh, so the cost of running a node on a home laptop would be ~€18/month, not including the wear and tear of the hardware. As you can see in the screenshot, i'll never break even (my node has been online for about 1 year and 3 months, and i've earned 1.2 satoshi's in routing fees) Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Wind_FURY on January 14, 2020, 10:54:32 AM How much would your average monthly cost be for electricity, internet connection, maintenance, if you keep your Lightning node running for 24/7 that specializes in providing liquidity? To be honest, i hire a dedicated server which i've partitioned into smaller VPS's. A dedicated box costs me €40/month, but i would be able to install 5 or 6 full stacks on such a dedicated server, so if you pool your resources with 3 other forum members, you'd have a nice VPS with plenty of resources for €10/month if you'd want to. If you want to do a home setup, much depends on the power draw of your machine... An avarage laptop draws 60 Watts (according to google), beause there's a lot of IO and system load, i'd guess a laptop running such a stack would draw a little bit more. 80 Watt * 24 hours * 31 days =~ 60 Kwh. In my country i pay about 30 cents per Kwh, so the cost of running a node on a home laptop would be ~€18/month, not including the wear and tear of the hardware. As you can see in the screenshot, i'll never break even (my node has been online for about 1 year and 3 months, and i've earned 1.2 satoshi's in routing fees) That was going to be in my next question. But, that reinforces the belief that the nodes in the Lightning Network will evolve to become more specialized, and routing fees becoming higher than they are now. It also takes a valuable commodity, Bitcoins, staked in channels. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: ABCbits on January 14, 2020, 11:42:16 AM I'm a bit curious,
1. What is average RAM usage after install all of these tools? 2. Does Bitcoin Core use most of the RAM in your case (since you use value 2048 for you dbcahce) ? Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on January 14, 2020, 12:26:48 PM That was going to be in my next question. But, that reinforces the belief that the nodes in the Lightning Network will evolve to become more specialized, and routing fees becoming higher than they are now. It also takes a valuable commodity, Bitcoins, staked in channels. My main idear wasn't to make a profit, but rather learn the "new" (at that time) lightning protocol... I do hope that sooner or later, the fees might increase a little bit, but as for now: nobody knows :) I'm a bit curious, 1. What is average RAM usage after install all of these tools? 2. Does Bitcoin Core use most of the RAM in your case (since you use value 2048 for you dbcahce) ? Yup, dbcache was set to 2048 to speed up the intial sync, afterwards it's perfectly fine to remove this parameter. Here you go (i've snipped all processes that had nothing to do with this particular stack) :) Code: ps -o pid,user,%mem,command ax | sort -b -k3 -r Code: cat /proc/meminfo Code: top - 07:27:07 up 4 days, 4:39, 1 user, load average: 0.00, 0.03, 0.05 Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Carlton Banks on January 14, 2020, 01:40:31 PM But, that reinforces the belief that the nodes in the Lightning Network will evolve to become more specialized, and routing fees becoming higher than they are now. It also takes a valuable commodity, Bitcoins, staked in channels. why? it's a supply and demand equation, but with privacy incentives distorting the supply-side. It seems more likely to me that the market will always tend toward liquidity over-supply (which is obviously better than under-supply), and so fees will frequently or always be at or lower than any "specialized" node could tolerate Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Wind_FURY on January 15, 2020, 05:34:36 AM But, that reinforces the belief that the nodes in the Lightning Network will evolve to become more specialized, and routing fees becoming higher than they are now. It also takes a valuable commodity, Bitcoins, staked in channels. why? it's a supply and demand equation, but with privacy incentives distorting the supply-side. It seems more likely to me that the market will always tend toward liquidity over-supply (which is obviously better than under-supply), and so fees will frequently or always be at or lower than any "specialized" node could tolerate In theory, I could be wrong. Because I don't believe that the people running LN nodes will continue doing so altruistically forever, not especially when it requires staking a valued commodity, and some level of specialization. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Wind_FURY on January 16, 2020, 08:21:25 AM @mocacinno RAM usage is lower than i expected, i'll consider running similar setup if i have good reason to do so. But, that reinforces the belief that the nodes in the Lightning Network will evolve to become more specialized, and routing fees becoming higher than they are now. It also takes a valuable commodity, Bitcoins, staked in channels. why?it's a supply and demand equation, but with privacy incentives distorting the supply-side. It seems more likely to me that the market will always tend toward liquidity over-supply (which is obviously better than under-supply), and so fees will frequently or always be at or lower than any "specialized" node could tolerate At least for merchant and exchange, they could always increase their goods/service fees or burden the fee to user. IMO other specialized nodes will always have negative profit since, 1. LN client would use route with lowest fee or create new channel (if fees for existing routes is too high) 2. Merchant and exchange will keep routing fees low to take the advantage the fact many users (who only make few transaction) would connect to them directl Then, another theory, regular users/hobbyists won't maintain running a Lightning node for nothing forever, and running one would converge towards large merchants, which the costs are subsidized by their businesses, IF they adopt it. I like the other theory. 8) Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: ndalliard on July 07, 2021, 08:02:20 PM how is RTL secured? is there a password prompt when you access the site? if not - everyone who knows your domain (and port) can access your node or did i miss something?
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Rath_ on July 07, 2021, 09:04:46 PM how is RTL secured? is there a password prompt when you access the site? if not - everyone who knows your domain (and port) can access your node or did i miss something? Yes, there is a password prompt. You can also set up two-factor authentication in the settings. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: psycodad on September 23, 2021, 09:04:10 AM Thank you mocacinno for this excellent walk-through!
I used it to setup my own lightning node on Devuan (hating systemd and the Poettering fuckwit so much I went that extra mile) and it's supported by my VPS host. What was impressing with the latest bitcoin core v22.0 is that synching from scratch took less than 24hrs on a pretty low-end VPS with spinning rust. Last time I synched a bitcoin node in 2014 (on much more low-end HW) it took me 2 weeks. Overall a very exciting experience thanks to your HowTo, I greatly appreciate the time you have taken and I am very pleased with the results so far! Now I have to go to find out how I set the fees (working with the defaults so far) and what reasonable fees are. I don't want to go full free (because what's free is not worth anything) but to set very moderate/low fees. If anybody has any reading pointers on how fees work in lightning, what good settings are etc., I would be happy to hear about that. Also, I would be interested what the settings of "urgent", "normal", "slow" etc. mean when setting up a new channel, I guess urgent translates to high fees, but I am not sure yet. Are people setting their fees on a per-channel basis or globally? Again, thank you very much for the great HowTo, it gave me a great and easy start into the topic! Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: Rath_ on September 23, 2021, 09:34:59 AM If anybody has any reading pointers on how fees work in lightning, what good settings are etc. There are no good settings. If you open a channel between two large nodes then you will probably not route any payments unless you set your fees to zero. You have to experiment with your fee settings. I opened a large channel to Bitfinex and a small one to Nicehash. Even though my fees in that channel (Bitfinex) were high (1 sat base fee; 95 ppm), I routed quite a few payments. The largest one was ~950k satoshi and I earned ~91.5 sat in routing fees just for that single transaction. After some time I had to lower my fees since no one wanted to send their payment through that channel. Are you familiar with the way the fees are calculated or do you need an explanation? Also, I would be interested what the settings of "urgent", "normal", "slow" etc. mean when setting up a new channel, I guess urgent translates to high fees, but I am not sure yet. Honestly, I would not use RTL to open and close channels. I overpaid a few times because of it. Also, you can open multiple channels in a single transaction via a command line! This way you can save a ton on money on the transaction fees. Are people setting their fees on a per-channel basis or globally? Most people set their fees on a per-channel basis. If you are running a small node then you will very likely change them often. There is a plugin which automatically adjusts the fees for each channel but I am not sure how well it works. By the way, are you interested in opening a dual-funded channel at some point? It is still an experimental feature but I have successfully opened this type of channel with two other bitcointalk members. Here (https://1ml.com/node/0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5)'s my node for reference. Also, you might find The Lightning Network FAQ (https://bitcointalk.org/index.php?topic=5158920.msg51615708#msg51615708) useful. Most of the LN related discussion is held there. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: psycodad on September 23, 2021, 11:13:03 AM <snip> Also, you might find The Lightning Network FAQ (https://bitcointalk.org/index.php?topic=5158920.msg51615708#msg51615708) useful. Most of the LN related discussion is held there. Thank you for your reply, you are ofcourse right, I replied to your post in your thread (https://bitcointalk.org/index.php?topic=5158920): https://bitcointalk.org/index.php?topic=5158920.msg58004580#msg58004580 Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: NotATether on September 25, 2021, 03:14:35 PM 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?)
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on September 25, 2021, 08:38:47 PM 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.
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: psycodad on September 25, 2021, 08:46:52 PM 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). Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on September 26, 2021, 11:26:56 AM 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 @psycodad: thanks for the feedback, it's great to hear the walktrough still works :), 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 ;D Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on September 26, 2021, 01:33:49 PM 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] Fixed: Code: [img]https://www.mocacinno.com/hotlinkimages/RTL/1.png[/img] My guess: Your webserver had no TLS certificate in 2020 but does now ;D Yup, looks to me like your certificate is new since 9/8/2021! https://i.postimg.cc/bJFxTnpt/image.png Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on September 27, 2021, 05:39:21 AM @n0nce: thanks, that was it... Fixed it now :)
Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on September 27, 2021, 03:09:10 PM @n0nce: thanks, that was it... Fixed it now :) Thank you for the guide! :D Looks way better now ;)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). Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: psycodad on September 27, 2021, 03:55:47 PM 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 (https://almalinux.org/) 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. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on September 27, 2021, 03:57:31 PM 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 (https://almalinux.org/) 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. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on September 27, 2021, 04:06:27 PM 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 :) ).
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 ;) Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on September 27, 2021, 04:33:23 PM 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 :) ). Cool, good to know! Maybe I will choose openSuse just because I haven't used it at all so far :DI 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. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on September 28, 2021, 05:19:34 AM --snip-- Cool, good to know! Maybe I will choose openSuse just because I haven't used it at all so far :D 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. Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: n0nce on October 07, 2021, 04:23:41 PM 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 :)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/harddrive/.bitcoin/bitcoin.conf And I'd change bitcoin.conf like this: datadir=/home/harddrive/.bitcoin Title: Re: bitcoind, c-lightning and RTL on centos 7 (walktrough) Post by: mocacinno on October 07, 2021, 05:41:09 PM @n0nce: that looks correct to me :)
|