Chia farming in Ubuntu Server for beginners switching from Windows

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys it's JM I wanted to do an introduction video to how to farm Chia in Ubuntu Server this is going to be for people that are new to Ubuntu are new to Linux have not are not generally familiar with a headless node you tend to like the GUI 10-day Farm in Windows and may have been looking at you know Ubuntu but kind of been too scared I'm going to show how easy it is to get up and running with Chia farming I really like Ubuntu Server just because it's easy uh all the Chia stuff just works and once you get ahead of us know you can just manage it on your desktop through SSH you can stick the desktop or whatever your farmer is in a corner somewhere in your house and not have to worry about it so you're going to pull up a Windows terminal app in Windows 11 it gives you this nice little thing where you can pop open a bunch of tabs here the default is Powershell which which works just fine so you'll find the IP address of your farmer after Ubuntu desktop install um well during the install process if you have DHCP enabled it'll tell you the IP or you can check out your router to find out whatever the IP address is and whatever username you set up during the install and to SSH and type in your password and here we go and so when you log in it shows you some stuff we can do it clear I've named this Farm rgb1 which if you saw post a picture of it later it's just a crappy little uh cheap consumer desktop case that I grabbed for 50 bucks on Amazon I had a bunch of RGB on it so uh first um right we have uh we're going to check our drive to stream so this is kind of one of the first things right if you're Chia farming the most important thing is that the drives are all showing up so you can actually Farm I have three 12 terabyte drives in here for um hard drives SDA sdb SDC I can see they're 10.9 T tib 12 terabytes 10.9 tib okay so all three drives are showing up so the first thing we're going to want to do is Mount the drives so there's a few ways to do this the easiest way if you want to do it without a restart is just to uh you know sudo you're going to make directory slash Mount HDD one put in your password two and three have to do LS that's Mount you'll see the three hard drives and so you could just go we're gonna Mount Splash Dev slash SCA to mount HTTP one slash Dev slash sdb to hdd2 STC to htd3 so this is kind of the easy way to mount but that's not going to be persistent so if you now if we go to my favorite tool is Duff and it doesn't come in installed with Ubuntu by default so you have to go install it just like that now if you dude Duff it'll show us hey we have three hard drives mounted and they all have um you know 99.5 percent full mounting the drives every time you start the system is going to be a pain so you're going to want to edit the fs tab or file system tab to mount the drives automatically so first thing we're going to do is take a look at the fs tab so it's in slash Etsy fstab and cat is going to show us the current output of the fs tab so what we want to do is if you go LS block again we can add in name file system type uuid and mount points and then we can take that and find out what we're going to need for the creation of the surface tab so we're going to copy this for now SDA ext4 and the uuids uuid makes it so it'll Mount by default um you know by the file system identifier not by the device handle which is really what we want and so you basically want to take you can do this I'm sure there's a million different scripts to do this or you can just do it by hand I recommend doing it by hand for a little bit just to make sure you're doing it correctly so you can see here I flashdev slash disk value uuid and then I pasted the uuid I want that to mount to hdd1 oh it's ext4 and then since I already have the drive full of flots I'm going to mount it read-only if you're filling up the drives with plot files you're going to have to mount this with read write read-only is great for slots that are drives that are full of plots because farming is read only you don't ever need to actually write the data and this makes sure that nothing can corrupt your drives and nothing can write any data to your drives and so now we have to just copy that and paste it two more times and then put in the uuids of the other drives and we'll paste that in here and don't forget to edit this we want to mount them not to the same outpoint HTTP one two and three and so now we will copy this and we will go into our SSH and say minutes we got that pseudo Nano slash that's FS tab because it's uh we're gonna need to be a pseudo as to edit the fs tab and all we're going to do is paste in by right-clicking the mouse and our three hard drives and then uh oh yeah I should do that fast if you want to save you hit Ctrl o and it's going to ask you what uh file name save in and then control X we'll exit out and windows okay so now if we do a Duff we will see that no drives are mounted if we do a pseudo Mount Dash a you will see okay it did give us a warning I hadn't seen that before this is a new version of Ubuntu uh and here we are um so the drives are mounted we do an LS slash mouth htd star you'll see all our plots and we can count the plots if we wanted to do uh wc-l would be counting of Watts we have 335 plots so on all our drives okay so now we're now the drives will be automatically mounted every time we start the system or reboot which is great that's exactly what we want and now it's on to installing Chia if you were coming from the windows um you're probably used to downloading Chia from here and just popping and just downloading the binary installing it like that if you're on Ubuntu desktop you can do the exact same thing and just uh basically download the Debian version and install the package on a budget server the installation is a little bit different so if you go to here and click on installation instructions it'll pop open this this window that I have here and if you click on Ubuntu it'll tell you to do these couple steps okay and so it's very important that you follow these exactly or else it's not going to work and so you can just basically here copy here and then go back to your uh window your terminal pseudo AP to get update and then we're going to update the certificates okay so now the next part is you just copy here same thing paste it in enter clear it so we can see up here on the top now we're going to do this next one and so these are just going to make sure we're actually getting the the repo from Chia and trusting it now this is the last step so you want an apt git update so we'll do that one first this is kind of confusing and so now it's going to tell us that we're going to have the Chia package since we're on the uh since as we're on tli only we're on a bunch of server we just need this CLI we don't want to blockchain with all the stuff and the GUI that's not needed this is going to be extra packages slowest down so we're going to go CLI and so we're going to go back here to and here we go so we're installing Chia now that's it now if you hit type in Chia you'll see that Chia is installed that's so it's as easy as that so now that Chia is installed we're going to set up our our node so if you do chia init it's going to create a dash uh Slash home slash jm.chia mainnet folder and so we can see here oh whoops LS we can see we have a config and a DB file and so the first thing we're going to do is basically um uh if we go Chia start farmer it's going to start looking for the chain at uh so Chia start farmer will basically start the farmer the full node the wallet and the Harvester everything you need to start farming uh so uh that's it for now and if you wanted to just step back and let that sink um that would work and I'm going to show you how to import ABB from another system which will help you kind of get up and running much faster if you're coming from Windows if you go into users jm.chia mainnetdb you'll find this fully synced blockchain here because I was farming on windows so you can copy that over and so you you would create a basically a new window and you could do SCP and then did that basically that uh this and you click on here copy the path here and you would copy this slash nope you can Tab out blockchain and you would copy this to JM at 192.168.0.74 slash home you have to give it a place and so if you do like that you'll copy the file over you can do that without having to do any USB sticks or any funny business so I've already done that here and I have the blockchain I have a fully fully sync copy of the blockchain you can see 94 Gib so what we're going to do is copy that into the folder so we can basically skip the syncing process so first thing we're going to do is chia stop all Dash D this stops all the Chia services and the Daemon and everything and so that's going to be really important because we want to stop everything before we copy the new blockchain into into the system so we're going to basically now make sure our folder is there so we're going to LS dot Chia slash mainnetdb and you can see the the one that started syncing is in there and it's uh you know just 44 megabytes because it just started syncing so what we're going to do is we're going to move the blockchain folder file that we have into that folder and now if we do that you're going to see this 94 gigabyte file is in this in this folder and chiadachia that's mainnet now if you do an LS slash home JM slash dot Chia you'll see the same thing so this little squiggly in the home in JM is the the same thing okay so now we're going to start farming again TSR farmer and it's going to start the full node and the Harvester and the wallet and everything else so that actually took about one minute which I guess is not surprising had to read the new blockchain file but now if we do a Chia show dash s it's going to show that we're syncing we're almost all the way to the tip so you can see here uh still stay status syncing and if we do a Chia Piers uh pure full node-c you'll see that we're actually finding some some peers remember Chia is fully peer-to-peer blockchain so would the introducer just basically finds that finds us other full nodes to reach out to and then we find out what their height of the blockchain is and then we can figure out um you know basically what the peak of the blockchain is okay so now that we have our full node syncing we can add the drives so there's a couple ways to do this um actually I'll show you my actual favorite way to do it which is much easier than it used to be so uh if we go to Chia plot add d slash Mount htt1 we could do it like that and if we do a geoplots show it'll show us where our plot directories are and if we could do a Chia plots check I think n zero it'll just uh oh N1 it will actually do a challenge warning plots have public Keys blah blah Okay so uh this is actually smart because it's if I do a Chia uh let's see Chia Keys show it's going to show us uh that where there's no keys in here so we're gonna have to go add my key so if I wanted to go add my mnemonic that has the these uh pool contract address and farmer key attached to it I'm gonna have to go into it Chia Keys add Dash D oops sorry chickies add now enter the mnemonic so I'm obviously going to turn the video off for a sec while I do this so you guys don't see my new mod never ever show your 24 words to anybody under any circumstance okay so now we've added our keys Chia Keys show uh you'll see my keys are in there and if we do a a Chia plots check with that now you'll see um that we're not getting errors or the the keys that we have in here match uh the keys for that we have for the plots so that's that's great um you can just do a control C we just wanted to make sure this is working okay so normally if you never do a TIA plots show it'll show the directories where my plots are at I could add htt2 and three and whatever this is great if you have like four or five drives this is totally the way to do it if you have a lot more drives I'll show you the the easier way to do it so if we go into uh nano.chia mainnet we're going to do config and config.yaml this is where you edit all the stuff for all the configuration of cheetah as you can see there's a data layer session an SSL section if you're setting up a harvester remote Harvester you'll need to know and you'll need to edit the Harvester section so we had a farmer section so we're going to scroll page down all the way so the full node section we're going to scroll down all the way here to the Harvester section so here's here's the Harvester section and you'll see the plot directories we have are slash Mouse htt1 so you could literally just enter them all in here but we're going to do kind of a little hack trick we're going to just do slash Mount and then we're going to change recursive plot scan to true and it's going to Now scan everything in slash Mount and so now if we do a Geo Plot show it'll show us slash Mount and if we do a Chia plots check and one you can see it's going to basically load in all the plots and you'll see an easy way to show us how many plots so now that we've added our drives we want to see if we're farming so an easy way to do this is geotherm summary and it will show us for local hardware stores and for all the remote Harvesters it will show us how many plots we have total plot count and now we're going to find out so you know our the Harvester is finding all the plots that's really important so now we have to find out if we're farming so we can do a Chia Plot nft show and it's going to basically show us if we are actually responding with partials to the our pool because we want to forget what pool I have actually on this so we'll find out here shortly but a Chia Plot nft show will find out um uh okay so something is happening right here so it kind of froze up and I'll tell you what what's happening exactly in the background so to know how to farm your plot nft has to sync the wallet first and so I never synced the wallet and so if I do a Chia wallet show it's going to say syncing so once that wallet sync is done then we'll be able to go into geoplot nft show because the transaction that I made on the blockchain to set my pool is actually included on the blockchain so the the wallet has to go sync find my plot nft and find out you know which pool I'm actually pulling to before it can know where to send the the partials to because it doesn't know where to farm to yet we don't it's not doing that yet so now the good news is this the syncing actually is very fast now so this should just take a few minutes to sync up so good news the wallet sink only took about a minute and if I do a cheer wallet show you can see got my 0.6 xch in here yay okay so we're gonna do is a Chia Plot nft show and it should show us we're synced or farming to a pool I'm farming to spacepool and percent successful points current difficulty three points five on one okay so um yeah it's going to just yeah usually this is 100 you'll see after we get some some more partials sent out uh we'll get this number up so one of the things now so I you know I can tell I'm farming here if I do geoform summary you know it says we're farming we're synced um you know I have 32 tib and here's the netspace and all this good stuff and but if we want to go a little bit in depth we can do a Chia configure and it will say one of the ways we can configure our um let's see set log level and we are going to set log level to info instead of just warning and now we can do a Chia stop all Dash D so we're gonna have to restart the services to take effect here and Chia start farmer and so after we have these now if we do an LS of again we can do Dash Chia mainnet logs debug.log uh sorry cap of that now we can see some info stuff and something that we're going to see here is we're gonna we're gonna grep for ellage a bowl and now we can see basically if uh you should see that this this number one plots were a little performing total 332 plots this means for every signage point so every 9.3 seconds or so you every single plot you have is a 1 and 5 12 chance of passing the filter and uh if that plot passes the filter for the signage Point they'll show up here so basically if this is showing up then oh three plots to pass that filter then you're farming um that's it so now again if we wait if I check back in like uh so if I want to check the status and health of this Farm you know the first thing Chia show dash s and my is my full node synced yes full node synced uh do I have peers Chia peer full no dash C I have a few peers which is good usually you want a lot you know just so you make sure you're not stuck on somebody's old blockchain so we just start we just restarted the services so it'll take a second for us to find new peers and then Chia Farm summary and that will show us you know if how much local Harvester that we actually are are farming 32 tib here uh and then you know Chia wallachio we want to show that our wallet is synced and happy and then Kia Plot nft show will show us um how many points we have over the last 24 hours so if your farm is working correctly this should always be 100 if this is not 100 then you may have something messed up with your farm um so yeah and again this has to run for a while but you can see that points balance 18 you know we've sent a couple partials so uh that's it um now we're fully farming in Linux uh and you know it's like you can see here we're fully farming and it's like basically no CPU no load on the system at all which is kind of what we're what we're aiming for I'm gonna do a future video of this system com uh looking at the power consumption and overall system configuration uh but that was just a quick video on how to get you guys up and running on Ubuntu Server if you've never used it before so thanks bye
Info
Channel: Chia Decentral
Views: 9,622
Rating: undefined out of 5
Keywords:
Id: wGyMhs_H1HY
Channel Id: undefined
Length: 20min 41sec (1241 seconds)
Published: Wed Nov 09 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.