XMRig only runs on 64-bit so we’ll be using a 64-bit container called raspbian-nspawn-64. We’re going to be using XMRig to mine Monero with a mining pool. I prefer the latter but this tutorial can be done either way. ![]() Its your choice whether you choose to have a monitor, keyboard and mouse attached to your pi or if you prefer to go headless and utilize SSH. If you haven’t done so already I suggest you follow one of the many tutorials out there. To get started, you should already have Raspian running on your pi. This is more of a learning experience if you have a spare raspberry pi lying around or if you simply want to support the coin. With that said if you’re going to use your raspberry pi to mine Monero don’t expect to get rich doing so. Unlike other cryptocurrencies that rely on specialized hardware, you can mine XMR (RandomX) using your computer or, in this case, a raspberry pi. Sudo -u pi /usr/bin/screen -d -m -S bfgminer /home/bitcoin/bfgminer -o stratum+tcp://:3333 -O Username_worker:password -S all &īy the way, the word password in the samples above, is really just 'password' if you are using bitminter where password isn't used.Monero is one of the most profitable cryptocurrencies that can still be mined using a CPU. To run the command in screen, it'd look like: Remember to set up your worker ahead of time! Once the compilation is complete, you can start your bfgminer with:īfgminer /home/bitcoin/bfgminer -o pool -O user:password -S allįor example, I mine with bitminter - the launch command looks like:īfgminer /home/bitcoin/bfgminer -o stratum+tcp://:3333 -O Username_worker:password -S all Similarly, the -enable-bflsc lends Butterfly support to the build. The little RPi isn't the fastest compiler - but the result is well worth it! You're nearly done! The -enable-icarus directive is what lets your bfgminer support Rockminers. The sum of these commands will take awhile. CFLAGS="-O2 -Wall -march=native" sudo.You'll need to give bfgminer a home, I set mine up in /home/bitcoin. sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev build-essential debhelper autoconf automake libtool libssl-dev yasm pkg-config wget unzip libjansson-dev git quilt uthash-dev screen.Then, install the small libs we'll need with: Bfgminer felt most solid setting it up takes awhile on the RPi, but is well worthwhileįirst, make sure that your RPi is all patched up with: I've tried a few, the Bitminter client, cgminer, and bfgminer. I recommend that you activate SSH so that you can park this near your miners, wire everything up (miners, plug into Ethernet, etc.) and finish from your couch over wifi. Your first boot will take you through raspi-config.When this process is complete, put the SDHC card in your RPi, connect a keyboard and screen to it, and boot it up.You can hit CTRL+T to get a status update while dd runs. Go make a sandwich, this takes awhile.Adjusting the disk and img name to reflect your situation, command to run looks like: sudo dd bs=1M if=-wheezy-raspbian.img of=/dev/rdisk1 As second example disk2s1 would become rdisk2. Still in Terminal, in the folder where you unpacked the raspbian zip, execute the dd command with sudo, modifying the disk name a little bit: prefix it with 'r', and remove the subpart.My command was diskutil unmount /dev/disk1s1 Unmount the SDHC card with diskutil unmount (drive). ![]() Note the SDHC card's IDENTIFIER in the output (mine was disk1s1).Fire up Terminal, and run diskutil list. ![]() Raspbian downloaded, unpack the zip so that the.Launch SD Formatter and execute a quick format on your SDHC card - quick should suffice.Once downloaded, install - and then insert your SDHC card into your Mac.While that's downloading, nab SD Formatter from here.The RPi uses a micro SDHC card as hard drive, and the biggest part of the job is simply that of prepping it before you stick it into the RPi and boot. Don't pay retail! Get them from folks on ebay who are selling them cheap because they couldn't figure it out!įor this first part, you won't even need the Raspberry itself. Some great entry-level ASICs are the Butterfly Jalapeño and the Rockminer R-BOX. The Pi itself can't mine much coin though, its job is only that of muscling requests between your mint of choice and your ASICs (people did used to mine with GPUs, but with the processing that ASICs can now perform, I can't see GPU's being viable anymore).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |