Title: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 04, 2024, 11:09:36 AM Links to other tutorials from the series:
[BitcoinTalk Node Tutorial #1] Running Bitcoin Core on Raspbian Lite (GUI-less) https://bitcointalk.org/index.php?topic=5476754.0 [BitcoinTalk Node Tutorial #2] Installing Electrs from source https://bitcointalk.org/index.php?topic=5477339.0 [BitcoinTalk Node Tutorial #3] Sparrow terminal / infinite Whirlpool mixes https://bitcointalk.org/index.php?topic=5470024.0 [BitcoinTalk Node Tutorial #4] Connecting BISQ to our node https://bitcointalk.org/index.php?topic=5478756.0 Size required on disk: Code: $ sudo du -sh /media/apogio/BTC/monero Hosting a Monero node on the same machine As I have mentioned in various places in this forum, I am a huge fun of Monero. So, without further delay, let's run a monero node on our Raspberry Pi. Configuring Firewall to allow incoming connections on ports 18080 & 18089 I am using ufw for this tutorial. So the command should be: Code: sudo ufw allow 18080 Downloading & Installing Monero binaries We will download the binaries in our Downloads folder and we will install them. Code: mkdir ~/Downloads/monero Now, all the binaries are install in our /usr/local/bin directory. Let's check if they work using the command Code: monerod --help It should print an output that displays the available options for monerod binary. Configuring Monero node We are almost ready to roll, but we need to create the configuration file for our node. We will create it in our external SSD, in the path /media/apogio/BTC/monero. Code: nano /media/apogio/BTC/monero/monerod.conf Now let's paste the following data inside the file: Code: # Data directory (blockchain db and indices) The last 2 lines will be removed after the initial blockchain synchronization. Let's start our node by running the following: Code: monerod --config-file=/media/apogio/BTC/monero/monerod.conf --detach Now monero runs on the background, downloading the blockchain. We can easily check the status by running: Code: monerod status It will return something like the following example: Code: Height: 319704/3054494 (10.5%) on mainnet, not mining, net hash 14.05 MH/s, v1, 33(out)+0(in) connections, uptime 0d 0h 26m 3s That's it, we are now running a monero node. Connecting Monero GUI wallet to our node The final step is to connect a wallet to our node. Of course we could use the monero-wallet-cli binary, but for our tutorial we will connect the Monero GUI wallet (https://www.getmonero.org/downloads/#gui) to our node. After downloading the appropriate version for our OS, we will need to choose the "Advanced mode". https://www.talkimg.com/images/2024/01/04/sQTxa.png Create a new wallet: https://www.talkimg.com/images/2024/01/04/sQRoN.png Then head over to the node settings and simply add the IP where the node is hosted and the port. https://www.talkimg.com/images/2024/01/04/sQPF9.png Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: seoincorporation on January 04, 2024, 04:56:29 PM Great job with this tutorial apogio.
Is important to mention that you can run bitcoin and monero on the same raspberry pi because the nodes run on a different port, some altcoins uses the same port than bitcoin and that can give use some problems but we can modify those ports in the config file and that should fix the problem. And for those who want to test this tutorial but don't have a R.Pi then feel free to try in your PC. you can download the source for any os here: https://www.getmonero.org/downloads/#cli Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 04, 2024, 05:39:08 PM Is important to mention that you can run bitcoin and monero on the same raspberry pi because the nodes run on a different port, some altcoins uses the same port than bitcoin and that can give use some problems but we can modify those ports in the config file and that should fix the problem. I just remembered that I forgot to write about allowing incoming connections on 18080 and 18089 on my node's firewall. I will add it at the beginning of my tutorial. Take into consideration that I have used 18089 but the default for the RPC commands is 18080. Anyway, thanks for the comment and the reminder. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 06, 2024, 12:39:43 PM It would be interesting to add a few details in terms of requirements (computing and storage) to the top of the guide.
I remember fondly the days when people downloaded Bitcoin Core, back when it was the default wallet to run on your daily driver laptop, coming back a few days later to 'full hard drive' notifications from their operating system.. ;) Especially, when someone is already running Bitcoin Core on the same machine and maybe even chose their SSD to fit a certain number of years worth of Bitcoin blockchain on it. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 06, 2024, 12:45:34 PM It would be interesting to add a few details in terms of requirements (computing and storage) to the top of the guide. I remember fondly the days when people downloaded Bitcoin Core, back when it was the default wallet to run on your daily driver laptop, coming back a few days later to 'full hard drive' notifications from their operating system.. ;) Especially, when someone is already running Bitcoin Core on the same machine and maybe even chose their SSD to fit a certain number of years worth of Bitcoin blockchain on it. Hello. If you are interested in the hardware that I use, you can head back to the 1st tutorial of the series (https://bitcointalk.org/index.php?topic=5476754.0), in which I install bitcoin core on the same machine. If you want to know how much RAM and CPU the node uses, then I will definitely make sure to update the original post. In fact it is interesting to see how much RAM all of the apps I have installed in the series use (Bitcoin Core, Electrs, Sparrow, Monero) Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 06, 2024, 03:06:03 PM If you are interested in the hardware that I use, you can head back to the 1st tutorial of the series (https://bitcointalk.org/index.php?topic=5476754.0), in which I install bitcoin core on the same machine. I just realized that it's a series; maybe would be a good idea to add backlinks to all or at least the first tutorial to the top.If you want to know how much RAM and CPU the node uses, then I will definitely make sure to update the original post. Yeah, I think as a user I'd like to see how much RAM & CPU, but maybe most importantly how much disk space, every additional piece of software uses. From my own experience, it should be just Bitcoin Core and Monero taking up most of the disk space.In fact it is interesting to see how much RAM all of the apps I have installed in the series use (Bitcoin Core, Electrs, Sparrow, Monero) Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 06, 2024, 04:41:24 PM I just realized that it's a series; maybe would be a good idea to add backlinks to all or at least the first tutorial to the top. There are. Just check on top of each post. And there is also a link to the next one on the bottom of each post. So every post is linked with the previous and the next one. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 07, 2024, 01:02:17 PM Yeah, I think as a user I'd like to see how much RAM & CPU, but maybe most importantly how much disk space, every additional piece of software uses. From my own experience, it should be just Bitcoin Core and Monero taking up most of the disk space. Hey n0nce. So: Code: Bitcoin 626G Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 08, 2024, 12:38:41 PM I just realized that it's a series; maybe would be a good idea to add backlinks to all or at least the first tutorial to the top. There are. Just check on top of each post. And there is also a link to the next one on the bottom of each post.Quote [BitcoinTalk Node Tutorial #1] Running Bitcoin Core on Raspbian Lite (GUI-less) https://bitcointalk.org/index.php?topic=5476754.0 [BitcoinTalk Node Tutorial #2] Installing Electrs from source https://bitcointalk.org/index.php?topic=5477339.0 [BitcoinTalk Node Tutorial #3] Sparrow terminal / infinite Whirlpool mixes https://bitcointalk.org/index.php?topic=5470024.0 [BitcoinTalk Node Tutorial #4] Connecting BISQ to our node https://bitcointalk.org/index.php?topic=5478756.0 [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine https://bitcointalk.org/index.php?topic=5480371.0 That way you could hop between tutorials without having to go one-by-one. Yeah, I think as a user I'd like to see how much RAM & CPU, but maybe most importantly how much disk space, every additional piece of software uses. From my own experience, it should be just Bitcoin Core and Monero taking up most of the disk space. Hey n0nce. So: Code: Bitcoin 626G Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 08, 2024, 12:45:44 PM <~snip> I will definetely do both, in fact the first suggestion is very useful. That way it is more apparent that the posts are part of a series, otherwise, one could miss it. Thanks Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 09, 2024, 01:37:15 PM <~snip> I will definetely do both, in fact the first suggestion is very useful. That way it is more apparent that the posts are part of a series, otherwise, one could miss it. ThanksI think with Core and Monero people will find the information online easily; just Electrs was surprising to me when I first installed it. Maybe I shall add information about that in my own guide (https://bitcointalk.org/index.php?topic=5366854.msg58233714#msg58233714).. :P Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 09, 2024, 01:42:47 PM Looks great now, super comfortable to navigate. :) So you decided against something like a little 'disclaimer' or information regarding disk utilization at the top of the Bitcoin Core, Electrs and Monero guides? No, absolutely not. I have just forgotten about it. :P I am adding it now! I will run sudo du -sh on each directory and I will update the posts. I think with Core and Monero people will find the information online easily; just Electrs was surprising to me when I first installed it. Maybe I shall add information about that in my own guide (https://bitcointalk.org/index.php?topic=5366854.msg58233714#msg58233714).. :P Very nice guide. Congrats to you too. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 09, 2024, 01:45:37 PM I think with Core and Monero people will find the information online easily; just Electrs was surprising to me when I first installed it. Maybe I shall add information about that in my own guide (https://bitcointalk.org/index.php?topic=5366854.msg58233714#msg58233714).. :P Very nice guide. Congrats to you too.I'll update it again this week; it's been 6 months.. ::) My guide is more focused on setting up a dedicated machine that runs all (and only) the Bitcoin 'essentials'. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 09, 2024, 01:54:52 PM Thanks, I try to keep it updated, as seen in the changelog (https://bitcointalk.org/index.php?topic=5366854.msg58233726#msg58233726). I'll update it again this week; it's been 6 months.. ::) My guide is more focused on setting up a dedicated machine that runs all (and only) the Bitcoin 'essentials'. Yeah mine too. I thought of running all the essentials on a rapberry pi. The only thing I haven't yet figured out is whether I will make it a Lightning node as well. If I do, I will probably do it using CLN and not LND. But I need to find the necessary time, otherwise I will never make it. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: n0nce on January 09, 2024, 02:07:27 PM Yeah mine too. I thought of running all the essentials on a rapberry pi. Which model? My experience with Pi nodes was... mediocre, to say the least, in the (now somewhat distant) past. Especially due to initial block download time. ;) In my guide, I showed that you basically really want 8GB of RAM.The only thing I haven't yet figured out is whether I will make it a Lightning node as well. If I do, I will probably do it using CLN and not LND. But I need to find the necessary time, otherwise I will never make it. I highly recommend Core Lightning (as used in my guide). You can take my guide as a starting point. :)Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on January 09, 2024, 02:11:55 PM Which model? My experience with Pi nodes was... mediocre, to say the least, in the (now somewhat distant) past. Especially due to initial block download time. ;) In my guide, I showed that you basically really want 8GB of RAM. It's the Raspberry Pi 4b 8GB RAM (https://bitcointalk.org/index.php?topic=5476754.msg63277857#msg63277857) as I mention in the first tutorial. To be honest, I chose the RPi because it was very cheap, but if I had plenty of money I would probably choose an NUC. The 8GB RAM sound sufficient of course. The IBD took 72hrs for me. I highly recommend Core Lightning (as used in my guide). You can take my guide as a starting point. :) Yes I will go with CLN and I will definetely take a look at it. Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: BlackHatCoiner on March 13, 2024, 02:48:30 PM I just tried installing a Monero full node on my Raspberry Pi 4 today. It didn't go well. Installation is spot on, and I'm glad that I could use the Monero GUI (which is officially supported by Monero dev team), but it's just too resource-requiring for a Pi that already runs a Bitcoin node.
The ugly part wasn't synchronization. That took a week on my HDD, and it's a reasonable amount of time given that Monero has an exponentially larger spend index size. The ugly part is that it's faster to run a pruned node on my main computer (with no running in the background) and open it up whenever I want to make a transaction, than connecting to my Raspberry Pi via remote node. It was trying to calculate the automatic fee, and had stuck... Does it go slow to you too? Title: Re: [BitcoinTalk Node Tutorial #5] Hosting a Monero node on the same machine Post by: apogio on March 13, 2024, 03:35:34 PM Does it go slow to you too? Yes, it was actually slowing down my whole internet connection at home. I was trying to use watch some videos on YouTube and it was very slow. What saved me was: 1. I changed in-peers and out-peers to much lower values. 2. I used the limit-rate to limit the up and down rate. I think specifically I have set them to: in peers = 8 out peers = 20 limit rate = 2048 I am not sure about the specific issue that you mention though... |