Crypto Mining with a Raspberry Pi - a simple tutorial to mine Monero
Vložit
- čas přidán 13. 02. 2023
- Recommended tutorial for reference:
• Cryptocurrency Mining ...
Commands for crypto mining once Raspberry Pi is running:
sudo apt -y update
sudo apt -y upgrade
sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev -y
git clone github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make
./xmrig -o gulf.moneroocean.stream:10128 -u {wallet address} -p piner
Hit h: hash rate
Hit s: check result
Hit c: check connection
Monero Mining Progress:
2-14-2023 @ 10pm: 0.00001 XMR
Not sponsored but I thought would be helpful:
Canon EOS M200 & 15-45mm EM F Lense www.amazon.com/dp/B07XYPVFCH?...
Favorite Portable Light
www.amazon.com/dp/B08MDQ3CJY?...
Studio Light
www.amazon.com/dp/B005FHZ2SI?...
#raspberrypi
#crypto
#cryptocurrency
#monero
#iot
#linux
#diy
Incredible, this was the best explanation I could get without a direct connection to the router!
great video and love the step by step as its very helpful for us beginners and veterans. happy mining
good video, well explained and the written commands in description are very helpful.
It works thanks for the tutorial man.
good job dude, thank you for this tutorial
You explained it really well. Enjoy your new sub
Greetings from Sweden!
You, young Sir, just got yourself a new subscriber 🎉
Much appreciated!
Thank you for the excellent video gentleman
Thanks for sharing.
Great tutorial! I'm excited to give this a shot today. Looking forward to more of your videos, bro! 🚀💰👍
Appreciate it! Lemme know how it goes
@@thomasthemaker randomx not enough memory for RandomX dataset - RaspberryPi 3A+/512MB RAM 😉but anyway, great instructions 🥰 I have a question: if we use the same commands, for example in a terminal on a computer with Kali Linux, will we achieve the same results? I mean to mine Monero.
Yoooo! Great vid ! Nice camera !
Thanks dude! I love this new camera
great vid bro
Great video. How can i go back to check miner after closing the session ?
This Video is gerat it helpt ma alot
Dude you rock, this is going to take a old pi 2 and put it back to life. Subbed! for more in the future
Glad to help! Thanks for the sub
an old pi 2 will be very slow but if you set it and forget it maybe it will mine some crypto ... good luck and happy mining
Hi, thanks for your video. I wanted to ask you a question:
If the power goes out or the computer turns off, to view the results and how many maneros have been mined, do I have to redo the whole procedure and insert all that data from your video or is the road shorter?
Thank you for the video. Can this work with Kaspa?
@thomasthemaker - excellent video! I got everything running great but it randomly stops running/disconnects with message "client_loop: send disconnect: Broken pipe". Any ideas what's causing this?
Hello Thomas, how are you? Congratulations on the video. Could you help me with a question? When I ran ./xmrig the message appeared: DNS error: “ unknown node or service “ Would you know how to fix this error? Thanks
After powering back on, logging in, what commands to you type in on PUTTY to restart the miner and see the hash rates?
Has intentando minar con Jetson nano o Jetson Orín ? Sería un video genial
will Monero then be transferred directly to the wallet?
hey great video! i am getting stuck at the 'make' step after the cmake .. - its saying something about i mist enable neon instructions??? any idea what this could be. i tried to search but came up with nothing
me too some help would be great
I have a stack of 3 of these Pi 4s, have no tech knowledge but would love to get them to work for this. Anyway you would eail me and tell me how?
Great Vid. After the pi runs, when does any results show up in the wallet?
I think there's a minimum amount you need to start transferring to your waller
@@thomasthemaker No values appear in the Monero generated wallet. I'd transfer if some actually appeared
For some reason its saying I typed the address in wrong but its just directly copied over. Any clue how to fix this?
nice video, i have 3 of these set up, is there any way to make the hash rate higher
Good cooling will definitely help as these are running at max CPU & RAM all the time. Also more ram is better (something to do with 32-bit and 64-bit)
@@thomasthemaker yea, I have mine set on a probably ace unit so they are always cold, but I am trying to figure out the more ram thing
no active pools, stop mining) i get this Message every 6 or 7 line. It mines but get this some times is it normal or what?
But then when I close the program it stops collecting? And to get it started again I have to redo all the codes?
Yes, that's correct. You can use tmux to go around this.
It basically creates a "session" so that whenever you open a new terminal or ssh, you can type tmux+session id and access it (the code still running on the background).
Hope this helps
How many connection is make to the WAN.
As i might want to use it inside an organization, would that affect or create issues..?
I guess only 1 Outbound?
I don't believe it's gonna have any issue. There could be some optimization you want to make out of the algorithms or make your computing devices a cluster. It would work maybe not as optimized
Great Vid and instructions- Are you running your PI on Ethernet or WIFI?
I'm doing it over wifi. Signal speed isn't super important.
Do I switch from Ethernet to wifi and replug the Pi with power.? Does it restart and run the miner?
@@thomasthemaker
I want to run two pi's with different names on WIFI. What is the run procedure?
@@williamhoover1515 you can do it the same on both, no difference
I ran it overnight, 100% job acceptance with 1370 jobs. I’m not seeing any xmr being transferred to the account. How long before you got your first transfer to your wallet and what was the amount of xmr was the first transfer?
Just did the calculation and if I’m right, with an approximate average hash rate of 12 I’ll be mining 0.00000219 XMR per day. I believe 0.01 XMR is required to transfer so it’s looking like roughly 13.5 years before I get my first transfer haha. Does that sound about right? Fun learning experience anyway, great video!
Going to cost me roughly $6000 in power to produce $2.30 in XMR lmao
@@ShortPrints best comment xD
I was excited and now I'm not lol fuck this video@@ShortPrints
hey, I keep getting an '-maes' error, do you know how to fix this?
Thanks for the video~ do you mine Saseul?
I do not yet, but it's defo something I wanna try out
@@thomasthemaker yeah~ you should try it. I mined 2,000 saseul coin per day. don't know if it's worth to mine though... I think you are an expert, so please analyze saseul blockchain if possible.
Cant you do de samething with kaspa please
my rasrpberry pi ist restarting after i run the last command and its not working, i already tried to flash the operating system new, nut its not worklich
Is it possible to cluster multiple Pis to increase the hash rate?
It certainly is. A simple way is to use multiple pis to mine in the same pool
what happens if i turn the pi off? do i need to connect to putty and do all of those commands again, to start mining?!?!
Or does it just automatically load up and start mining, when you power the Pi up?
You do need to run all that again
Can anyone help me i minded succesfully but nothing is shown in the wallet
There's a limit (about 3cents) you have to reach before you can cash out
it is off but how do i turn this on again?
Hey thanks for this great tutorial.
I have 4 Raspberry Pi 4 and want to connect all 4 to mine Monero. Do i have to flash every Pi with a different Hostname or can all be under the same Hostname?
How can I controll every Pi in Putty? Do I have to create 4 sessions each or is there a method to run them all in one session?
When I opened a new Putty session it halved my hash rate from 92 h/s to around 50 h/s even though I gave it e different name. Further I tried another session and it divided the hash rate by 3.
Any suggestions to this problem?
Different hostname is what you want or else only 1 pi will be connected to the network
You can control 4 pis in 4 putty screens independently.
With halving the hash rate, did you try to run twice on a same pi or hostname? That makes sense. My guess is you're running on the same pi, so that makes sense. Just make sure you're running on different pi's
Thank you for your quick response. It worked, all Pi's are working at a hash rate of 92h/s @@thomasthemaker
I love your video but is there a way to keep the Raspberry Pi mining wen your computer is off.
There is, try looking up tmux. It allows you to disconnect SSH and still have the pi running
can you go into moor detail about tmux.
When I downloaded the wallet installer, Norton blocked it, saying it was unsafe. Any thoughts?
Norton is kinda obsolete these days. Just install it
Are you still mining monero? How long do you think it will take to get 1 monero with this system?
I stopped after a while. I was mining pretty slowly. I think it would have taken 1 year lol (that's if no sudden luck)
@@thomasthemaker In my case, it's been running for about 24hr and I mined 0.000005... it's just for experiment. Thanks anyway. I learned a lot.
@@gaebal2 glad I could help!
my putty and rpi4 cant connect error: network error: connection refused. does anyone know how t ofix this and connect to my rpi4 suing putty
When the config is done, can I close Putty? Will raspberry still mine coins?
I believe no. You can install screen on your pi to monitor and have terminal sessions running tho, that will allow mining even when putty is closed
You can also start a terminal session through vnc, and simply leave it running. When you terminate the vnc session the terminal will remain open on the pi, mining you coins.
@@GoDDamnHosTile How do I do with vnc?
@GoDDamnHosTile Now I have running the program on putty and on vnc viewer the raspberry is granted but only ‘ cannot currently show the desk’ comes out. Now the program on putty if I close it continues to go?
@@user-qi7yl6gc9i It won't. In order to make this work, you need to set up the mining in the pi's terminal while monitoring your raspberry pi using vnc. Putty is not necessary to use at all after the tutorial.
So basically these are the steps:
1. Set up headless raspbian with vnc on your pi (use link above)
2. monitor your system from another host using vncviewer
3. Start a terminal session from your pi and follow the setup in this video
4. close vncviewer
Now you are mining crypto on your pi without the necessity of having another host running just for the putty session
Which O.S did you load in the USB drive?
I used Raspberry Pi OS (bullseye & 64 bit)
Thank you @@thomasthemaker
How many days needed to mine 1 monero on raspberry pi 4?
It might take a few months from my rate of mining now. But you never know when luck hits. With that said, it's more fun and educational than profitable
do i just plug it in to my pc or a adapter
You can use the normal power supply for it & leave it running. You can check it once in a while to make sure the script is still running.
Thomas I followed all your instructions but the Putty terminal just comes up blank. No login or password. Any help?
Did you see blank at the end when you run the compiled code or when compiling?
@@thomasthemaker Sorry? What do you mean blank?
@@robustelement You were mentioning putty coming up blank. Was it when you tried connecting to your raspberry pi or when it's already connected?
@@thomasthemaker When I tried to connect putty, to the terminal,
@@robustelement I see, it might be that you have the connection information wrong (hostname, username, password) I would recommend reflashing your OS and write down that information. Also sometimes it takes up to 5 mins for the Pi to boot, so the connection might not be available until a few min after Pi booting. Let me know if that works!
when will I be credited monero from mining?
Yes you will, otherwise theres no point lol
Do you need a cpu and if so, how du I add one to the raspberry pi ?
The raspberry pi has a arm cpu built in
@@Retroplanegeek also the 5 ?
@@user-rv8bj1wz7m yeah the 5 will be the best
How much are you making a day mining monero?
It's been 3 days and I made 0.00005 so far. But the amount/pay has been going up.
@@thomasthemaker it,s bitcoin mining
@@thomasthemaker You will make $0.1866 in 365 days on this hash-rate @ 24H/s ... Don't do this with your PI ,, it will be burnt anyways
its more about the fun of the process since the pi is such a small machine.... anything more out of it and it might internally combust lol
is putty safe to use?
There's no tracking or anything so I would say it is
when how will the crypto money come in to the account after a sucessfull mine because my miner has accepted a job but i have not recived any money in my wallet
and aslo do i have to keep the wallet open or not
It will take some times for money to come from pool -> wallet. Also there is a threshold of how much you need to make to transfer over (0.01 MNR).
@@thomasthemaker so how long do i have to wait for it roughly
@@MuhammadBajwa-ql2hs I would say 6-12 months
Once it is loaded, How do I find it (the miner) again once I log in my PI?
I would recommend using tmux
Tanks I check out
@@thomasthemaker
Can I access this PI miner from a phone or other computer? It is hooked to WIFI now.
@@thomasthemaker tmux is loaded -how do I use it?
My system is been running 48 hrs. The wallet has zero balance.I can't tell if it working. What cmds do you type in on the PI to see if it running?
cmake is not working bruhh
Does this still work, have a pi4 that does not make a connection?
Can you explain more your issue?
And which OS are you using, is it Bookworm?
@@thomasthemaker Yes it is bookwork version 12
@@thomasthemaker so looks like the miner part is working but not making a connection
@@terranceduncan1106 I'm afraid bookworm just doesn't work well, try out bullseye!
Thanks, I will give that a try, happen to have a card already flashed with that also. Much appreciate the help.@@thomasthemaker
bro i entered website for monero you show doublecheked it and get trojan on my computer
Do you mean the Monero pool? If that's the case I'll fix it.
@@thomasthemaker I fixed the problem it was with monero wallet
@@rudyishortsy7020 Cool! Just curious, is it with your wallet or the wallet GUI?
@@thomasthemaker with wallet gui bc of installer
@@rudyishortsy7020 thanks for sharing the info!
Bruno mars can code 😮
Lol it's the first time someone compared me to Bruno Mars thanks man
@@thomasthemaker first person that popped into my head. I’m surprised no one did that before haha
we can mine the bit coin
Technically yes, but Bitcoin's puzzle is done in a way that you're way overpowered by miners with data centers made of very powerful machine, making your chance of getting anything almost 0.
Monero is set up to basically prevent such unfair competition tho.
@@thomasthemaker true, mining Bitcoin with low end stuff is more like a lottery, you have the chance of solving a block...
@@cerealtech4138 yep, it's like a balancing act. With Bitcoin, you have a low chance of winning but each winning is worth a lot. With Monero, you increase your winning chance drastically but also equally significantly decrease the reward. If time is limited, I think Monero is the better thing to experiment with
@@cerealtech4138 ❤
Bro literally copied network chuck word for word😂😂😂
Hey, he does make the best iot tutorials out there!
just replaced the coffee with tea
Mine and then please buy a microphone holder 😎😎
Haha, a holder would be great to have for sure
better off using a mobile phone
Well, a good enough smartphone to mine can be pricey and using your existing phone means no resources to do anything else with it. But I do agree with the fact that it's not profitable with a pi
for some reason I am getting an error after a hit make: "you must enable NEON instructions (e.g -mfpu=neon-fp-armv8) to use SSE2NEON."
Are you using 32 or 64-bit Raspberry Pi OS? This would happen when you run a 32 bit version (ss2neon is a translator for arm64)
@@thomasthemakerI have the same issue from running 32 bit, any ways to fix it?