Bendr0id / xmrigCC

RandomX, CryptoNight, Argon2 and GhostRider CPU/GPU miner with Command&Control (CC) Server and Monitoring
GNU General Public License v3.0
312 stars 112 forks source link

[work-around] Linux usb-live with xmrigCC #330

Closed MrCook1es closed 3 years ago

MrCook1es commented 3 years ago

I would like to create a bootable USB stick, with xmrigCC installed in auto boot. So as not to install anything on the PC and not to compromise its data. With wintousb and an external USB SSD, I had a fully functional windows 10 live. But I would like to do the same thing using the lightest of compatible usb-linux distribution with xmrigCC . Which linux distribution do you recommend?

djfinch commented 3 years ago

Try Alpine. Do not forget to make it static to avoid installing libraries there...

EDIT: Static version will not work. I forgot that Alpine using musl / libc so you have to install dependencies and compile miner from scratch... But I was able to make it work in testing docker container...

Screenshot 2020-12-18 at 14 17 37

MrCook1es commented 3 years ago

Try Alpine. Do not forget to make it static to avoid installing libraries there...

EDIT: Static version will not work. I forgot that Alpine using musl / libc so you have to install dependencies and compile miner from scratch... But I was able to make it work in testing docker container...

Screenshot 2020-12-18 at 14 17 37

thaks for your reply! so if I understand correctly, I can install docker container and then start it from there? without having to compile the miner?

djfinch commented 3 years ago

Hello,

Nope, I mean you can make it work on Alpine linux, too. Alpine Linux is minimalistic distribution useful for simple task. However, it using musl/libc instead of glibc so pre-compiled xmrigCC does not work. So you have to install Alpine Linux on USB, enable 'edge' (for ssl and libuv) and 'testing' (for hwloc) repositories, install requirements for compilation and compile xmrigCC there. Then you should get working bootable linux with xmrigCC inside. I've used docker container to test if compilation works & skip installing and booting from USB.

Please do not forget that build dependencies / libraries have different names in Alpine: build-essential --> build-base libuv1-dev --> libuv-dev libssl-dev --> libressl-dev libhwloc-dev --> hwloc-dev

Or you can use distro which using glibc (ubuntu, debian, whatever).

Bendr0id commented 3 years ago

I have a tiny ArchBang linux live usb-stick which immediately starts the miner after boot. It uses my static linux binaries which don't have any dependencies. No docker needed in this case.

You only need to boot the stick once in persistent mode, download the miner, create an autostart for it with a small delay to make sure wifi/network is connected.

Then just plug it in somewhere and it will start mining.

Bendr0id commented 3 years ago

XUbuntu / LUbuntu are light weight too and do support the same^. For beginners it might be easier than Arch*.

Bendr0id commented 3 years ago

Can this be closed?

MrCook1es commented 3 years ago

yes, thanks! I solved with XUbuntu. Perfect!