avatarNuno Bispo

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

11375

Abstract

class="hljs-type">Scanning</span> dependencies of target ethash [ <span class="hljs-number">1</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">C</span> object src<span class="hljs-regexp">/3rdparty/</span>libethash<span class="hljs-regexp">/CMakeFiles/</span>ethash.dir<span class="hljs-operator">/</span>ethash_internal.c.o [ <span class="hljs-number">1</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">C</span> object src<span class="hljs-regexp">/3rdparty/</span>libethash<span class="hljs-regexp">/CMakeFiles/</span>ethash.dir<span class="hljs-operator">/</span>keccakf800.c.o [ <span class="hljs-number">1</span><span class="hljs-operator">%</span>] <span class="hljs-type">Linking</span> <span class="hljs-type">C</span> <span class="hljs-keyword">static</span> library libethash.a [ <span class="hljs-number">1</span><span class="hljs-operator">%</span>] <span class="hljs-type">Built</span> target ethash <span class="hljs-type">Scanning</span> dependencies of target ghostrider [ <span class="hljs-number">2</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">C</span> object src<span class="hljs-regexp">/crypto/</span>ghostrider<span class="hljs-regexp">/CMakeFiles/</span>ghostrider.dir<span class="hljs-operator">/</span>sph_blake.c.o <span class="hljs-operator">..............</span> [ <span class="hljs-number">98</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">CXX</span> object <span class="hljs-type">CMakeFiles</span><span class="hljs-regexp">/xmrig.dir/</span>src<span class="hljs-regexp">/base/</span>net<span class="hljs-regexp">/tls/</span><span class="hljs-type">TlsContext</span>.cpp.o [ <span class="hljs-number">98</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">CXX</span> object <span class="hljs-type">CMakeFiles</span><span class="hljs-regexp">/xmrig.dir/</span>src<span class="hljs-regexp">/base/</span>net<span class="hljs-regexp">/tls/</span><span class="hljs-type">TlsGen</span>.cpp.o [ <span class="hljs-number">98</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">CXX</span> object <span class="hljs-type">CMakeFiles</span><span class="hljs-regexp">/xmrig.dir/</span>src<span class="hljs-regexp">/base/</span>net<span class="hljs-regexp">/https/</span><span class="hljs-type">HttpsClient</span>.cpp.o [ <span class="hljs-number">99</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">CXX</span> object <span class="hljs-type">CMakeFiles</span><span class="hljs-regexp">/xmrig.dir/</span>src<span class="hljs-regexp">/base/</span>net<span class="hljs-regexp">/https/</span><span class="hljs-type">HttpsContext</span>.cpp.o [ <span class="hljs-number">99</span><span class="hljs-operator">%</span>] <span class="hljs-type">Building</span> <span class="hljs-type">CXX</span> object <span class="hljs-type">CMakeFiles</span><span class="hljs-regexp">/xmrig.dir/</span>src<span class="hljs-regexp">/base/</span>net<span class="hljs-regexp">/https/</span><span class="hljs-type">HttpsServer</span>.cpp.o [<span class="hljs-number">100</span><span class="hljs-operator">%</span>] <span class="hljs-type">Linking</span> <span class="hljs-type">CXX</span> executable xmrig [<span class="hljs-number">100</span><span class="hljs-operator">%</span>] <span class="hljs-type">Built</span> target xmrig</pre></div><p id="d7bf">We have now built our mining software, so we can start mining to our Monero Ocean pool.</p><h1 id="0dff">Mining Monero</h1><p id="5376">To start mining, we just need to run the following command:</p><div id="2c28"><pre>### Running xmrig (be sure to run the command on the build dir) ###</pre></div><div id="383b"><pre>$ ./xmrig -o gulf<span class="hljs-selector-class">.moneroocean</span><span class="hljs-selector-class">.stream</span>:<span class="hljs-number">10128</span> -u <span class="hljs-number">44</span>Re4jXRmGMEcoJKQBBYdaRRVSYLurjZA5M6GBojh1r8TkMnoYVACX8fJ7yYUB7kMigTiAwodaP8T3m8NHrjiRSANtgxY6v -<span class="hljs-selector-tag">p</span> PI3 -t <span class="hljs-number">4</span></pre></div><div id="1392"><pre><span class="hljs-comment"> * ABOUT XMRig/6.16.2-mo2 gcc/9.3.0</span> <span class="hljs-comment"> * LIBS libuv/1.34.2 OpenSSL/1.1.1f hwloc/2.1.0</span> <span class="hljs-comment"> * HUGE PAGES supported</span> <span class="hljs-comment"> * 1GB PAGES unavailable</span> <span class="hljs-comment"> * CPU ARM Cortex-A53 (1) 64-bit -AES</span> L2:0.0 MB L3:0.0 MB 4C/4T NUMA:1 <span class="hljs-comment"> * MEMORY 0.8/0.9 GB (94%)</span> <span class="hljs-comment"> * DONATE 0%</span> <span class="hljs-comment"> * POOL #1 gulf.moneroocean.stream:10128 algo auto</span> <span class="hljs-comment"> * COMMANDS hashrate, pause, resume, results, connection</span> <span class="hljs-comment"> * OPENCL disabled</span> <span class="hljs-comment"> * CUDA disabled</span></pre></div><div id="5e43"><pre>[<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:39.869</span>] benchmk STARTING ALGO PERFORMANCE CALIBRATION (with <span class="hljs-number">10</span> seconds round) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:39.870</span>] benchmk Algo ghostrider Preparation [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:39.877</span>] cpu use profile * (<span class="hljs-number">4</span> threads) scratchpad <span class="hljs-number">2048</span> KB [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:48.039</span>] cpu GhostRider algo <span class="hljs-number">1</span>: cn/dark (<span class="hljs-number">512</span> KB) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:48.039</span>] cpu GhostRider algo <span class="hljs-number">2</span>: cn/fast (<span class="hljs-number">2</span> MB) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:48.039</span>] cpu GhostRider algo <span class="hljs-number">3</span>: cn/turtle (<span class="hljs-number">256</span> KB) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">20:48.273</span>] cpu READY threads <span class="hljs-number">4</span>/<span class="hljs-number">4</span> (<span class="hljs-number">32</span>) huge pages <span class="hljs-number">0</span>% <span class="hljs-number">0</span>/<span class="hljs-number">32</span> memory <span class="hljs-number">65536</span> KB (<span class="hljs-number">8397</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">21:15.457</span>] benchmk Algo ghostrider Starting test [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">21:39.796</span>] miner speed <span class="hljs-number">10</span>s/<span class="hljs-number">60</span>s/<span class="hljs-number">15m</span> <span class="hljs-number">6</span>.<span class="hljs-number">73</span> n/a n/a H/s max <span class="hljs-number">10</span>.<span class="hljs-number">10</span> H/s avg <span class="hljs-number">5</span>.<span class="hljs-number">91</span> H/s [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">22:39.851</span>] miner speed <span class="hljs-number">10</span>s/<span class="hljs-number">60</span>s/<span class="hljs-number">15m</span> <span class="hljs-number">6.73 6.99</span> n/a H/s max <span class="hljs-number">10</span>.<span class="hljs-number">10</span> H/s avg <span class="hljs-number">6</span>.<span class="hljs-number">42</span> H/s [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">23:39.909</span>] miner speed <span class="hljs-number">10</span>s/<span class="hljs-number">60</span>s/<span class="hljs-number">15m</span> <span class="hljs-number">6.73 6.98</span> n/a H/s max <span class="hljs-number">10</span>.<span class="hljs-number">10</span> H/s avg <span class="hljs-number">6</span>.<span class="hljs-number">59</span> H/s [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:05.007</span>] benchmk Algo ghostrider hashrate: <span class="hljs-number">6.985726</span> [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:05.007</span>] benchmk Algo cn/r Preparation [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:09.385</span>] cpu stopped (<span class="hljs-number">4377</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:09.385</span>] cpu use profile * (<span class="hljs-number">4</span> threads) scratchpad <span class="hljs-number">2048</span> KB [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13:24:34.231</span>] cpu READY threads <span class="hljs-number">8</span>/<span class="hljs-number">8</span> (<span class="hljs-number">4</span>) huge pages <span class="hljs-number">0</span>% <span class="hljs-number">0</span>/<span class="hljs-number">4</span> memory <span class="hljs-number">8192</span> KB (<span class="hljs-number">24847</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:36.901</span>] benchmk Algo cn/r Starting test [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:43.913</span>] miner speed <span class="hljs-number">10</span>s/<span class="hljs-number">60</span>s/<span class="hljs-number">15m</span> <span class="hljs-number">3</span>.<span class="hljs-number">00</span> n/a n/a H/s max <span class="hljs-number">3</span>.<span class="hljs-number">00</span> H/s [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">13</span>:<span class="hljs-number">24:49.062</span>] benchmk Algo cn/r hashrate: <span class="hljs-number">2.945198</span> ...... [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:07.663</span>] cpu accepted (<span class="hljs-number">8</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">391</span> (<span class="hljs-number">302</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14:54:10.213</span>] cpu accepted (<span class="hljs-number">9</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">391</span> (<span class="hljs-number">476</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:11.338</span>] net

Options

 new job from gulf.moneroocean.stream:<span class="hljs-number">10128</span> diff <span class="hljs-number">391</span> algo astrobwt height <span class="hljs-number">6458770</span>

[<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:27.297</span>] net new job from gulf.moneroocean.stream:<span class="hljs-number">10128</span> diff <span class="hljs-number">391</span> algo astrobwt height <span class="hljs-number">6458771</span> [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:29.455</span>] cpu accepted (<span class="hljs-number">10</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">391</span> (<span class="hljs-number">305</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:39.636</span>] miner speed <span class="hljs-number">10</span>s/<span class="hljs-number">60</span>s/<span class="hljs-number">15m</span> <span class="hljs-number">17.03 17.17</span> n/a H/s max <span class="hljs-number">18</span>.<span class="hljs-number">93</span> H/s [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:40.540</span>] cpu accepted (<span class="hljs-number">11</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">391</span> (<span class="hljs-number">304</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:53.420</span>] net new job from gulf.moneroocean.stream:<span class="hljs-number">10128</span> diff <span class="hljs-number">461</span> algo astrobwt height <span class="hljs-number">6458772</span> [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">54:53.770</span>] cpu accepted (<span class="hljs-number">12</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">391</span> (<span class="hljs-number">478</span> ms) [<span class="hljs-number">2021-12-27</span> <span class="hljs-number">14</span>:<span class="hljs-number">55:12.598</span>] cpu accepted (<span class="hljs-number">13</span>/<span class="hljs-number">0</span>) diff <span class="hljs-number">461</span> (<span class="hljs-number">288</span> ms)</pre></div><p id="1578">The miner will start benchmarking several algorithms and after a while, it will start mining.</p><p id="f516">The options used are:</p><ul><li>-o, Mining poll URL;</li><li>-u, Monero wallet address, make sure to use yours from the previous step;</li><li>-p, Miner name to see on the stats page of Monero Ocean;</li><li>-t, Number of threads, my Pi has 4 cores, so I choose 4 threads (you might need to adjust for your Pi);</li></ul><p id="f272">When the miner is running we can press ‘h’ to view hash rates:</p><div id="2fe7"><pre>|<span class="hljs-string"> CPU # </span>|<span class="hljs-string"> AFFINITY </span>|<span class="hljs-string"> 10s H/s </span>|<span class="hljs-string"> 60s H/s </span>|<span class="hljs-string"> 15m H/s </span>| |<span class="hljs-string"> 0 </span>|<span class="hljs-string"> -1 </span>|<span class="hljs-string"> 4.52 </span>|<span class="hljs-string"> 4.20 </span>|<span class="hljs-string"> n/a </span>| |<span class="hljs-string"> 1 </span>|<span class="hljs-string"> -1 </span>|<span class="hljs-string"> 4.63 </span>|<span class="hljs-string"> 4.31 </span>|<span class="hljs-string"> n/a </span>| |<span class="hljs-string"> 2 </span>|<span class="hljs-string"> -1 </span>|<span class="hljs-string"> 4.42 </span>|<span class="hljs-string"> 4.42 </span>|<span class="hljs-string"> n/a </span>| |<span class="hljs-string"> 3 </span>|<span class="hljs-string"> -1 </span>|<span class="hljs-string"> 4.52 </span>|<span class="hljs-string"> 4.33 </span>|<span class="hljs-string"> n/a </span>| |<span class="hljs-string"> - </span>|<span class="hljs-string"> - </span>|<span class="hljs-string"> 18.08 </span>|<span class="hljs-string"> 17.26 </span>|<span class="hljs-string"> n/a </span>| [2021-12-27 14:55:32.045] miner speed 10s/60s/15m 18.08 17.26 n/a H/s max 18.93 H/s</pre></div><p id="338a">Or press ‘s’ to see stats:</p><div id="a933"><pre>- RESULTS

  • accepted <span class="hljs-number">15</span> (<span class="hljs-number">100.0</span>%)
  • pool-side hashes <span class="hljs-number">9751</span> avg <span class="hljs-number">650</span>
  • difficulty <span class="hljs-number">554</span>
  • avg result <span class="hljs-built_in">time</span> <span class="hljs-number">37.5</span>s
  • TOP <span class="hljs-number">10</span>

| <span class="hljs-type">DIFFICULTY</span> | <span class="hljs-type">EFFORT</span> % |

<span class="hljs-type">1</span> | <span class="hljs-type">20729</span> | <span class="hljs-type">47</span><span class="hljs-number">.04</span> | <span class="hljs-type">2</span> | <span class="hljs-type">7956</span> | <span class="hljs-type">122</span><span class="hljs-number">.56</span> | <span class="hljs-type">3</span> | <span class="hljs-type">3960</span> | <span class="hljs-type">246</span><span class="hljs-number">.24</span> | <span class="hljs-type">4</span> | <span class="hljs-type">2462</span> | <span class="hljs-type">396</span><span class="hljs-number">.06</span> | <span class="hljs-type">5</span> | <span class="hljs-type">1195</span> | <span class="hljs-type">815</span><span class="hljs-number">.98</span> | <span class="hljs-type">6</span> | <span class="hljs-type">1110</span> | <span class="hljs-type">878</span><span class="hljs-number">.47</span> | <span class="hljs-type">7</span> | <span class="hljs-type">970</span> | <span class="hljs-type">1005</span><span class="hljs-number">.26</span> | <span class="hljs-type">8</span> | <span class="hljs-type">961</span> | <span class="hljs-type">1014</span><span class="hljs-number">.67</span> | <span class="hljs-type">9</span> | <span class="hljs-type">613</span> | <span class="hljs-type">1590</span><span class="hljs-number">.70</span> | <span class="hljs-type">10</span> | <span class="hljs-type">534</span> | <span class="hljs-type">1826</span><span class="hljs-number">.03</span> |<span class="hljs-type"></span></pre></div><p id="db1e">Our miner is up and running, but how is it performing?</p><h1 id="2c2e">Results</h1><p id="9573">The hash rate that my Raspberry Pi 3 produces is about 19H/s and we can see also our performance in the Monero Ocean Dashboard:</p><figure id="db02"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*kqrhwOxDm0uag4zJ7W2GHg.png"><figcaption>Monero Ocean Dashboard — by author</figcaption></figure><p id="da6f">Checking Monero profitability:</p><figure id="1098"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*a1LQfxHiSp_QwywGUu9UHg.png"><figcaption>Monero Profitability — by author</figcaption></figure><p id="edfb">In an ideal world and not counting any power costs, I could be making 0.02 per month with my old Raspberry Pi 3.</p><p id="ad2a">But keep in mind that this is an old Raspberry Pi 3, new models like the 4b can produce up to 10x more than this.</p><p id="0e13">I might not get rich but considering that it took me less than 5 minutes to set up the Raspberry Pi and started mining with an extra unused Pi then it is a nice, but very slow-growing side income with zero effort.</p><h1 id="545b">Conclusion</h1><p id="7ad5">The world of cryptocurrency is quickly becoming the new gold rush, and with good reason.</p><p id="d396">With Bitcoin at an all-time high (and quite possibly here to stay), there are more opportunities than ever for making money off this market!</p><p id="206f">One way you can get started? Try your hand at crypto mining with one simple gadget: The Raspberry Pi.</p><p id="b1c9">This credit card-sized computer offers a low-cost alternative that doesn’t require any technical expertise whatsoever — allowing even beginners who don’t know how code or programmable logic might be able to contribute something valuable towards improving their investment potentials.</p><p id="a3b1">While it’s not as powerful or efficient compared to other solutions out there, you can still make money by running your own miner on this device.</p><p id="0dfb">Follow me on Twitter: <a href="https://twitter.com/DevAsService">https://twitter.com/DevAsService</a></p><p id="e183">Check out my website at: <a href="https://developer-service.io/">https://developer-service.io/</a></p><p id="db5f">Check out other articles that might interest you:</p><div id="1770" class="link-block"> <a href="https://readmedium.com/blockchain-technology-explained-686962b3ad58"> <div> <div> <h2>Blockchain Technology Explained</h2> <div><h3>Blockchain is more than Bitcoin, it is a distributed database that allows for secure, transparent, and tamper-proof…</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*X8sS1PhPMUVxnKdx)"></div> </div> </div> </a> </div><div id="ef84" class="link-block"> <a href="https://readmedium.com/how-to-make-money-from-unused-disk-space-with-storj-300595c0afb4"> <div> <div> <h2>How to make money from unused disk space with Storj</h2> <div><h3>Do you have extra storage that you are not using? Now you can monetize it with Storj.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*NneIkjl95UMfSLP1)"></div> </div> </div> </a> </div><div id="824d" class="link-block"> <a href="https://readmedium.com/what-are-nfts-and-why-should-you-know-about-them-55ab9f1ad04e"> <div> <div> <h2>What are NFTs and why should you know about them?</h2> <div><h3>NFTs are an exciting development in blockchain technology because they allow for never-before-seen types of digital…</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*0t2yf_bZI0MC4v-J)"></div> </div> </div> </a> </div><p id="709c">If you enjoyed reading this article and found it useful, you can support me by <a href="https://blog.developer-service.io/membership">signing up for a Medium membership</a> (if you are not a member). It will only cost you 5 a month — this will give you access to all stories on Medium! (and I will receive a small commission)</p><p id="c136">Besides that, if you want to stay updated when I post a new article, you can <a href="https://blog.developer-service.io/subscribe">signup for my free newsletter</a>!</p></article></body>

How to mine Monero on the Raspberry Pi

The Raspberry Pi can be used to mine cryptocurrencies. But how profitable can it be?

Photo by Stanislaw Zarychta on Unsplash

The Raspberry Pi can be used to mine cryptocurrencies, but how profitable can mining on the Pi be?

In the last article, I tried mining Duino-Coin and the result is that in about a year I can buy a coffee (but not at Starbucks):

This time we will try to mine Monero and see how good can our profitability be with my old Raspberry Pi 3:

I used Ubuntu Server 20.04.3 LTS (which supports RPI 3,4,400 on the 64-bit version) and an old Raspberry Pi 3 Model B Rev 1.2 that I had lying around.

Installation

Installing Ubuntu on the Raspberry Pi is a very straightforward process, you can find detailed documentation on the Ubuntu website:

After the installation and boot of the Raspberry Pi, we can log in with SSH and should be presented with the beautiful and familiar Ubuntu server start screen:

Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-1042-raspi aarch64)* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantageSystem information as of Mon Dec  6 13:23:09 UTC 2021System load:  1.2                Temperature:           45.1 C
Usage of /:   13.8% of 13.93GB   Processes:             137
Memory usage: 28%                Users logged in:       0
Swap usage:   0%                 IPv4 address for eth0: xxxxxxxxx

A small detail, we can even see the temperature of the Raspberry Pi, mine seems to be at 45 degrees Celcius just after boot.

Setup Monero

To mine Monero on the Raspberry Pi, we are going to need to:

  • Create a Monero wallet address (if you don’t have one already)
  • Mining software, we are going to use xmrig
  • Join a pool, we are going to join MoneroOcean

To create a wallet address we can download and install the Monero GUI Wallet, which makes our life easier:

Be aware that some antiviruses and firewalls may flag the Monero executables and archives as malware, as long as you have downloaded them from the official website, they are safe.

After installing the GUI Wallet and running the setup, we can choose the Simple Mode (be sure to backup your wallet seed), we can have access to our wallet:

Monero GUI Wallet — by author

We can copy our wallet address with the clipboard icon, we will need the address later.

We can now setup the Monero miner from Monero Ocean:

To do that we need to run a series of simple commands, first we start by getting the necessary dependencies:

### Update package repositories and install dependencies ###
$ sudo apt update
$ sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev -y

Now we can clone the repository and build xmrig from the source:

### Clone xmrig repository ###
$ git clone https://github.com/MoneroOcean/xmrig
Cloning into 'xmrig'...remote: Enumerating objects: 30399, done.
remote: Counting objects: 100% (2225/2225), done.
remote: Compressing objects: 100% (890/890), done.
remote: Total 30399 (delta 1487), reused 1920 (delta 1329), pack-reused 28174
Receiving objects: 100% (30399/30399), 13.99 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (22450/22450), done.
Updating files: 100% (1052/1052), done.
### Build xmrig ###
$ cd xmrig/
$ mkdir build
$ cd build/
$ cmake ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test VAES_SUPPORTED
-- Performing Test VAES_SUPPORTED - Failed
-- Use ARM_TARGET=8 (aarch64)
-- Performing Test XMRIG_ARM_CRYPTO
-- Performing Test XMRIG_ARM_CRYPTO - Success
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Found HWLOC: /usr/lib/aarch64-linux-gnu/libhwloc.so  
-- Found UV: /usr/lib/aarch64-linux-gnu/libuv.a  
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- WITH_MSR=OFF
-- Found OpenSSL: /usr/lib/aarch64-linux-gnu/libcrypto.so (found version "1.1.1f")  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/xmrig/build
$ make
Scanning dependencies of target ethash
[  1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/ethash_internal.c.o
[  1%] Building C object src/3rdparty/libethash/CMakeFiles/ethash.dir/keccakf800.c.o
[  1%] Linking C static library libethash.a
[  1%] Built target ethash
Scanning dependencies of target ghostrider
[  2%] Building C object src/crypto/ghostrider/CMakeFiles/ghostrider.dir/sph_blake.c.o
..............
[ 98%] Building CXX object CMakeFiles/xmrig.dir/src/base/net/tls/TlsContext.cpp.o
[ 98%] Building CXX object CMakeFiles/xmrig.dir/src/base/net/tls/TlsGen.cpp.o
[ 98%] Building CXX object CMakeFiles/xmrig.dir/src/base/net/https/HttpsClient.cpp.o
[ 99%] Building CXX object CMakeFiles/xmrig.dir/src/base/net/https/HttpsContext.cpp.o
[ 99%] Building CXX object CMakeFiles/xmrig.dir/src/base/net/https/HttpsServer.cpp.o
[100%] Linking CXX executable xmrig
[100%] Built target xmrig

We have now built our mining software, so we can start mining to our Monero Ocean pool.

Mining Monero

To start mining, we just need to run the following command:

### Running xmrig (be sure to run the command on the build dir) ###
$ ./xmrig -o gulf.moneroocean.stream:10128 -u 44Re4jXRmGMEcoJKQBBYdaRRVSYLurjZA5M6GBojh1r8TkMnoYVACX8fJ7yYUB7kMigTiAwodaP8T3m8NHrjiRSANtgxY6v -p PI3 -t 4
 * ABOUT        XMRig/6.16.2-mo2 gcc/9.3.0
 * LIBS         libuv/1.34.2 OpenSSL/1.1.1f hwloc/2.1.0
 * HUGE PAGES   supported
 * 1GB PAGES    unavailable
 * CPU          ARM Cortex-A53 (1) 64-bit -AES
                L2:0.0 MB L3:0.0 MB 4C/4T NUMA:1
 * MEMORY       0.8/0.9 GB (94%)
 * DONATE       0%
 * POOL #1      gulf.moneroocean.stream:10128 algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2021-12-27 13:20:39.869]  benchmk   STARTING ALGO PERFORMANCE CALIBRATION (with 10 seconds round) 
[2021-12-27 13:20:39.870]  benchmk   Algo ghostrider Preparation 
[2021-12-27 13:20:39.877]  cpu      use profile  *  (4 threads) scratchpad 2048 KB
[2021-12-27 13:20:48.039]  cpu      GhostRider algo 1: cn/dark (512 KB)
[2021-12-27 13:20:48.039]  cpu      GhostRider algo 2: cn/fast (2 MB)
[2021-12-27 13:20:48.039]  cpu      GhostRider algo 3: cn/turtle (256 KB)
[2021-12-27 13:20:48.273]  cpu      READY threads 4/4 (32) huge pages 0% 0/32 memory 65536 KB (8397 ms)
[2021-12-27 13:21:15.457]  benchmk   Algo ghostrider Starting test 
[2021-12-27 13:21:39.796]  miner    speed 10s/60s/15m 6.73 n/a n/a H/s max 10.10 H/s avg 5.91 H/s
[2021-12-27 13:22:39.851]  miner    speed 10s/60s/15m 6.73 6.99 n/a H/s max 10.10 H/s avg 6.42 H/s
[2021-12-27 13:23:39.909]  miner    speed 10s/60s/15m 6.73 6.98 n/a H/s max 10.10 H/s avg 6.59 H/s
[2021-12-27 13:24:05.007]  benchmk   Algo ghostrider hashrate: 6.985726 
[2021-12-27 13:24:05.007]  benchmk   Algo cn/r Preparation 
[2021-12-27 13:24:09.385]  cpu      stopped (4377 ms)
[2021-12-27 13:24:09.385]  cpu      use profile  *  (4 threads) scratchpad 2048 KB
[2021-12-27 13:24:34.231]  cpu      READY threads 8/8 (4) huge pages 0% 0/4 memory 8192 KB (24847 ms)
[2021-12-27 13:24:36.901]  benchmk   Algo cn/r Starting test 
[2021-12-27 13:24:43.913]  miner    speed 10s/60s/15m 3.00 n/a n/a H/s max 3.00 H/s
[2021-12-27 13:24:49.062]  benchmk   Algo cn/r hashrate: 2.945198
......
[2021-12-27 14:54:07.663]  cpu      accepted (8/0) diff 391 (302 ms)
[2021-12-27 14:54:10.213]  cpu      accepted (9/0) diff 391 (476 ms)
[2021-12-27 14:54:11.338]  net      new job from gulf.moneroocean.stream:10128 diff 391 algo astrobwt height 6458770
[2021-12-27 14:54:27.297]  net      new job from gulf.moneroocean.stream:10128 diff 391 algo astrobwt height 6458771
[2021-12-27 14:54:29.455]  cpu      accepted (10/0) diff 391 (305 ms)
[2021-12-27 14:54:39.636]  miner    speed 10s/60s/15m 17.03 17.17 n/a H/s max 18.93 H/s
[2021-12-27 14:54:40.540]  cpu      accepted (11/0) diff 391 (304 ms)
[2021-12-27 14:54:53.420]  net      new job from gulf.moneroocean.stream:10128 diff 461 algo astrobwt height 6458772
[2021-12-27 14:54:53.770]  cpu      accepted (12/0) diff 391 (478 ms)
[2021-12-27 14:55:12.598]  cpu      accepted (13/0) diff 461 (288 ms)

The miner will start benchmarking several algorithms and after a while, it will start mining.

The options used are:

  • -o, Mining poll URL;
  • -u, Monero wallet address, make sure to use yours from the previous step;
  • -p, Miner name to see on the stats page of Monero Ocean;
  • -t, Number of threads, my Pi has 4 cores, so I choose 4 threads (you might need to adjust for your Pi);

When the miner is running we can press ‘h’ to view hash rates:

|    CPU # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
|        0 |       -1 |    4.52 |    4.20 |     n/a |
|        1 |       -1 |    4.63 |    4.31 |     n/a |
|        2 |       -1 |    4.42 |    4.42 |     n/a |
|        3 |       -1 |    4.52 |    4.33 |     n/a |
|        - |        - |   18.08 |   17.26 |     n/a |
[2021-12-27 14:55:32.045]  miner    speed 10s/60s/15m 18.08 17.26 n/a H/s max 18.93 H/s

Or press ‘s’ to see stats:

- RESULTS
 * accepted         15 (100.0%)
 * pool-side hashes 9751 avg 650
 * difficulty       554
 * avg result time  37.5s
 - TOP 10
  # | DIFFICULTY | EFFORT % |
  1 |      20729 |    47.04 |
  2 |       7956 |   122.56 |
  3 |       3960 |   246.24 |
  4 |       2462 |   396.06 |
  5 |       1195 |   815.98 |
  6 |       1110 |   878.47 |
  7 |        970 |  1005.26 |
  8 |        961 |  1014.67 |
  9 |        613 |  1590.70 |
 10 |        534 |  1826.03 |

Our miner is up and running, but how is it performing?

Results

The hash rate that my Raspberry Pi 3 produces is about 19H/s and we can see also our performance in the Monero Ocean Dashboard:

Monero Ocean Dashboard — by author

Checking Monero profitability:

Monero Profitability — by author

In an ideal world and not counting any power costs, I could be making $0.02 per month with my old Raspberry Pi 3.

But keep in mind that this is an old Raspberry Pi 3, new models like the 4b can produce up to 10x more than this.

I might not get rich but considering that it took me less than 5 minutes to set up the Raspberry Pi and started mining with an extra unused Pi then it is a nice, but very slow-growing side income with zero effort.

Conclusion

The world of cryptocurrency is quickly becoming the new gold rush, and with good reason.

With Bitcoin at an all-time high (and quite possibly here to stay), there are more opportunities than ever for making money off this market!

One way you can get started? Try your hand at crypto mining with one simple gadget: The Raspberry Pi.

This credit card-sized computer offers a low-cost alternative that doesn’t require any technical expertise whatsoever — allowing even beginners who don’t know how code or programmable logic might be able to contribute something valuable towards improving their investment potentials.

While it’s not as powerful or efficient compared to other solutions out there, you can still make money by running your own miner on this device.

Follow me on Twitter: https://twitter.com/DevAsService

Check out my website at: https://developer-service.io/

Check out other articles that might interest you:

If you enjoyed reading this article and found it useful, you can support me by signing up for a Medium membership (if you are not a member). It will only cost you $5 a month — this will give you access to all stories on Medium! (and I will receive a small commission)

Besides that, if you want to stay updated when I post a new article, you can signup for my free newsletter!

Cryptocurrency
Crypto
Raspberry Pi
Mining
Passive Income
Recommended from ReadMedium