Well here I am, fashionably late to the cryptocurrency mining party. I have memories of trying to set up Bitcoin mining on my computer around 4 years ago but getting bored pretty quickly, giving up, and forgetting about it. Ah well, hindsight is a glorious thing.
Nevertheless, I’ve recently purchased a FutureBit Moonlander 2 just out of interest. A FutureBit Moonlander 2 is a USB Scrypt miner that doesn’t really need much in the way of power or hardware resources to get to work. Fortunately I have a spare Raspberry Pi 2 knocking about that I’m going to utilise for this. Though I’m fully aware that I’m unlikely to make much (or any) money with this, I’m going to document my first venture on the world of mining.
First up: Configuring the Raspberry Pi
Start with all the good stuff in raspi-config such as memory split and filesystem expansion and then run the other usual commands;
sudo apt-get update sudo apt-get upgrade -y
Install all the nescessary bits for the Moonlander 2:
sudo apt-get install -y libcurl4-gnutls-dev libjansson-dev libncurses5
Make directory moonlander2 and cd into it:
mkdir -p moonlander2; cd moonlander2 wget https://github.com/jstefanop/bfgminer/releases/download/bfgminer-5.4.2-futurebit2/bfgminer_5.4.2-futurebit2_linux_armv6.tar.gz
Decompress file and cd into:
tar -xzf bfgminer_5.4.2-futurebit2_linux_armv6.tar.gz cd bfgminer_5.4.2-futurebit2_linux_armv6
Sign up with Prohashing
You’ll need a pool that your miner can communicate with to find blocks to work on. I’ve been using Prohashing and it’s proven to be very reliable. By default, Prohashing will automatically switch which coin you’re mining, depending on what will get you the most profit.
I’ve also been using CoinBase to manage my wallets.
Now it’s time to connect your Moonlander 2
The Raspberry Pi 2 won’t provide enough power over the USB ports to power this stick so you’re going to have to use an external powered hub. It’s recommended to have at least 1A per device but I picked up a hub pretty cheaply on Amazon.
Apply your mining settings
Edit the mining script with nano.
sudo nano start_moonlander2.sh
Here are the contents of my start_moonlander2.sh file to get you started:
./bfgminer --scrypt -o stratum+tcp://prohashing.com:3333#skipcbcheck -u jonners321 -p "n=PiMoonlander i=moon2" -S MLD:all
Don’t forget to set your own Prohashing username.
If you have more than one Moonlander connected to your hub then it should automatically detect all of them.
Once you’ve set up the script with your own settings it’s finally time to …
Run the script to start. You might want to run this inside a screen so that mining continues when you disconnect from the Pi’s terminal.
After a few seconds you will see LEDs come to life on the Moonlander stick and communication going on between your Pi and the pool.
… and that’s it. We’re mining!
How is mining on the Moonlander 2 working out for you? Drop a comment below to let me know!
If you found this guide useful, please consider buying me a coffee.