Last week I enjoyed going back to my blog writing roots with an article about how to mine ETC. As well as a keen hobby interest in GPC/CPU mining I've also enjoyed making a series of articles about crypto related Raspberry Pi projects. This article, which stemmed from a brief conversation I had with someone on the Banano discord server, will marry those two things together. So if you have a Raspberry Pi 3/4 gathering dusts and you are thinking about putting it to work then we can go ahead clear off those cobwebs and also do a little good in the world. We're not able to run 'Folding@Home' on our low energy mini super computer!
Before I begin there are a couple of things to remember; Firstly unless you have an extensive mining setup you're unlikely to get rich (or break even) and Secondly I take no responsibility for any issues you run into if you try this at home (be smart, download any software at your own risk).
As we dive into the guide I recommend if you've not already set up your Raspberry Pi then follow this installation precursor setup guide first then come back.
Important Note: Is is also required to set up a 64-bit OS this time so use the second link in place of step 3 for the set-up guide, when it comes to installing the OS (this is absolutely critical, I spent most of the weekend installing on another card, because just updating the 32-bit kernel wasn't enough as this doesn't fixt the C++ version):
- Raspberry Pi - Project 01 (Beginners' Set-up Guide)
If you are interested in mining BAN on your regular computer I also did a guide on that here:
I was actually updating my GPU software the other day and it seems that even AMD are getting behind this.
Step 1: The Wallet
As with all of my mining guides I like to start with the wallet, this will be the place we want our funds to be delivered to. For Banano, there are two main wallets:
- 1.) Kalium:
- An app wallet with a very clean and easy to use interface
- 2.) BananoVault:
- A web browser wallet for when you want to work from a desktop
For the purposes of this article I'm going to use BananoVault, so here are the steps for setting it up:
- 1.) - Click on create a new wallet (if you don't have one already of course, if you do then skip down to the next section)
- 2.) - If you get a pop-up for windows security and you're not using ledger just hit cancel
- 3.) - Now click on create wallet
- 4.) - On the next page you'll see a few bits of security information, make sure you back this up to a secure location.
- a) Your Seed key
- b) Your Mnemonic Phrase
- c) Once backed up click on "I've saved my seed/mnemonic" to move on to the last step
- 5.) - Finally enter and re-enter a strong password that will be used for interacting with the wallet in future (don't forget it!).
- 6.) - With that complete just click on "view accounts" to move to your main wallet page where you will be able to find your address.
Step 2: The Mining Software
With the wallet at the ready next up we need to get the mining software setup. Now this process is all done from the terminal but for this I am connecting remotely using PuTTY. Head back over to the original set-up guide if you're not sure how to connect to your Pi this way.
Preparing the Pi
There are a few stages to this so I'll add them in bit by bit, note that this process assume you're using a 64 bit version of the OS on the Pi, go back if you've not done this. Otherwise, plough on!
- 1.) Before doing anything else it is good practice to update the Pi by executing the following commands
sudo apt-get update sudo apt-get upgrade
- 2.) If you are using UFW (Uncomplicated firewall) it is worth setting up the exceptions for this, the first line adds this and the second will show you the list of exceptions you have.
sudo ufw allow 36330 comment 'Folding@Home' sudo ufw status verbose
- 3.) While we're here let's set up traffic setting for this port and then reboot for good measure
sudo iptables -A INPUT -p tcp --dport 36330 -j ACCEPT sudo iptables -A INPUT -p udp --dport 36330 -j ACCEPT sudo reboot
Starting the Folding Software
Now that the Pi is updated and ready it is time to get and start the software for 'Folding@Home'.
- 1.) First thing we need to do is go get the software. You can do this be executing the 'wget' command with with the location to the files. Note that this will take a min or two to download the software. Once it is done downloading go to the next step.
- 2.) Next we use the Debian package manager to run the software however to run this I had to execute the first line below and then the package manager
sudo dpkg --add-architecture arm64 sudo dpkg -i --force-depends latest.deb
If all went well you should see the following package configuration process. Minimize (don't close) the terminal window for now we'll come back and finish that setup in a few mins, first we need to go get some relevant information.
Step 3: The Pool
For 'Folding@Home', rather than using pools, we have teams. So the cool MonKeys over at the Banano team set up a way for us to associate our address with the team so we can track our contributions to the work and get the potassium filled BAN payouts.
- 1.) Head over to your wallet of choice and copy your Banano Address
- 2.) Then go to https://bananominer.com/ and enter that address as below and click 'Start Now'
Make a note of the "UserID" and the "TeamID", if you don't use these you wont get any BAN paid out to your wallet. That is all for this step, let's go back to the setup and start Mining......er.....Folding........Collecting BAN!!
Step 4: Mining
Let's maximize that terminal window and get on with the setup.
- 1.) Delete the placeholder text 'Anonymous' and replace with your User ID copied exactly from the previous step, then hit 'Enter'
- 2.) Then enter the Team ID, copied exactly from the previous step and hit 'Enter'
- 3.) Now you'll be offered the option to add a PassKey. This is basically a way to associate your username with with only your mining and to prevent others from using your username etc. This is an optional step.
- You can read more info here: https://foldingathome.org/support/faq/points/passkey/
- You can request a passkey here: https://apps.foldingathome.org/getpasskey
- I did set this up previously so have added it and hit 'Enter'. If you don't want to then just hit Enter to move to the next step
- 4.) Next up is to set the level of processing power we want to add to the mining. Remember that you don't want to go too intensive on your Pi and it if you can make sure you get a case with a fan or two to keep the temperature down. It may not like being put under processing strain 24/7.
- 5.) Then choose if you want to run the software automatically on bootup. I'm going for 'No' here since I use my Pi for a few other projects as well.
- 6.) Then one final reboot and once it is up and running again we can just execute the second comment "FAHClient" and it should start up.
sudo reboot now FAHClient
Congratulations you're Folding Proteins and earning BAN!!
Note that when I first rant this I got a warning about CPU work units not being available. For the post part GPU mining is better and likely there are more jobs geared towards this. Personally, I'm going to try the plug, play and forget about it approach to see if anything happens.
Hope you enjoyed the guide, good luck y'all!
Donations Welcome (BAN):