Skip to content

Instantly share code, notes, and snippets.

@ekardon
Last active April 25, 2021 15:45
Show Gist options
  • Save ekardon/ec934e24aec6ffa68f0c4f59b1606770 to your computer and use it in GitHub Desktop.
Save ekardon/ec934e24aec6ffa68f0c4f59b1606770 to your computer and use it in GitHub Desktop.
# BASH ISN'T PREINSTALLED SO YOU HAVE TO MANUALLY INSTALL IT TO USE THIS SCRIPT
tce-load -iw bash
# FIX WRONG TIME TO SOLVE SSL PROBLEMS
tce-load -iw ntpclient
sudo ntpclient -s -c 1 -h pool.ntp.org
# REQUIRED PACKAGE LIST
# https://xmrig.com/docs/miner/build/ubuntu
tce-load -iw git compiletc cmake automake autoconf libtool libtool-dev
# OPTIONAL PACKAGES
tce-load -iw htop
# https://xmrig.com/docs/miner/build/ubuntu
git clone https://github.com/MoneroOcean/xmrig.git
mkdir xmrig/build
# REMOVE DONATION
sed -iE "s/\(DonateLevel = \).*/\10;/" ./xmrig/src/donate.h
# CHANGE MAKE TO 1 THREAD SO IT CAN RUN ON LOWER END PC (2GB RAM)
cd xmrig/scripts
sed -iE "s/^make.*/make/" ./build.hwloc.sh
sed -iE "s/^make.*/make/" ./build.openssl.sh
sed -iE "s/^make.*/make/" ./build.uv.sh
./build_deps.sh && cd ../build # on lower end pcs out of memeory freezes device
cmake .. -DXMRIG_DEPS=scripts/deps
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment