Closed GYKgamer closed 2 years ago
any reply?
I think this is a cool app, I followed the tutorial and it worked just fine (NOTE: only for 64-bit), but the one problem I ran into is this: I could not find a Monero Wallet that could run on RPi Linux (exept for Feather, and I couldn't build it), but after some searching, I did find an online Wallet called wallet.mymonero.com, and if this app gets added, I think a note should be added that a Wallet is required, and if you need one you can access form a Raspberry Pi, try that one.
I'll make some scripts for this app, even if it doesn't get put on, cause I think I'll use it.
Here it is:
I haven't tested it, because I can't use apt right now, but I think it should work just fine.
Thanks very much for the help and for better instructions for xmrig also here's it in action
Just in case you didn't know, you can use the Import App
button in Pi-Apps Settings to import this app with the link, and then you can just click install in Pi-Apps.
Oh yea I forgot about it
Ill try an add it later
How do I import it?
nvm
Crilum, After using your code I did find many errors which I'm trying to fix
This worked a few times for me but I will need you to double-check XMRig.zip
@GYKgamer What errors did you find?
Your zip doesn't work, can you upload a new one?
Oh, yeah.. You need to import the app to Pi-Apps. All of those errors are because the install script uses Pi-Apps functions, which are sourced when running the install via Pi-Apps.
To import XMRig to Pi-Apps:
Import App
.https://github.com/Botspot/pi-apps/files/7583102/XMRig.zip
into the text box and click Next
.I tried it but it never showed up
Wait I might think why
I think i dont have 64 bit installed
Yeah, you have to be on a 64-bit OS, or at least have the arm_64bit=1
flag in your config.txt.
anyways I got it working but on the last bit I get an error
You should just be able to run it like this anyway:
~/xmrig/build/xmrig [args and stuff]
yep got it working
@Botspot What do you think about adding this app?
looks like this might not get added
Yeah, I don't think it would be super useful to most GUI users...
Let's give this some priority. I just saw a thread on the raspberry pi forums and was surprised by how many people were interested in getting xmrig up and running on their raspberry pi computers. https://forums.raspberrypi.com/viewtopic.php?t=305983 This could probably be accomplished with a chroot. Does anyone want to take ownership of the project?
Why do we need a chroot? It runs just fine on native RPiOS. Also, I'd be willing to take ownership, if @GYKgamer is ok with it.
Why do we need a chroot? It runs just fine on native RPiOS. Also, I'd be willing to take ownership, if @GYKgamer is ok with it.
It does? I thought that xmrig could only run (well) on arm64. Even the tutorial I linked to uses raspbian-nspwan-64.
oh, yeah.. That's right, it does only run on arm64. :man_facepalming:
How do I give ownership? @Crilum
@GYKgamer You don't have to do anything, I'll just be the person developing the scripts.. I'll credit you as coming up with the idea to add XMRig to Pi-Apps.
@Botspot what do you think about using qemu to emulate arm64 for armhf? Well, it might be slower than using a chroot..
@Botspot what do you think about using qemu to emulate arm64 for armhf?
I don't think QEMU could do that. (emulate 64-bit stuff on a "32-bit" CPU) As I see it, this app should:
XMRig's official website https://xmrig.com isn't working right now, should I put the website or the github repo as the website?
Well, I've got XMRig running on my 32 bit RPiOS, with the help of a chroot:
The script is almost finished, but there are a couple bugs I'm working out. I'll make a PR when I think it's (close to) done.
Here is the current app:
XMRig.zip
Great work! Below, I've outlined a few ways in which the script can be improved.
In the if
statement to check for the 64-bit kernel:
if
statements. You can combine them with the &&
logic operator:
if [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "arm64" ]; then
exit 1
. To avoid displaying the "Pi-Apps encountered an unknown error" dialog, include "User error:" in your exit message.
error "User error: 64-bit kernel is required but user chose to not enable it." ;;
else
clause in that if
statement will be triggered if the kernel is already arm64. Not desirable.Other observations:
schroot
, and other times you are using chroot
. Not sure what's going on there.@GYKgamer You don't have to do anything, I'll just be the person developing the scripts.. I'll credit you as coming up with the idea to add XMRig to Pi-Apps.
Then allowed 👍
@Botspot @GYKgamer Check out #1379.
Closing this issue because PR #1379 is open.
I found this tutorial on youtube on day and thought it'd be useful. Now there are some steps he kind of exaggerates (I think) like installing a raspberry pi lite os (i guess its for better performance) tut is here: https://www.youtube.com/watch?v=hHtGN_JzoP8&t=0s
This isn't a gui app and only uses terminal
This app is not installable using sudo apt install
I'm guessing this won't be added as you won't mine much but it'd be a fun hobby and prices may go up.