Build_xmrig_upx_raspi.sh 651 B

123456789101112131415
  1. #!/bin/bash
  2. sudo apt-get update -y
  3. sudo apt-get install git build-essential cmake make libuv1-dev libmicrohttpd-dev gcc g++ automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev -y
  4. git clone https://github.com/uPlexa/xmrig-upx.git
  5. cd xmrig-upx
  6. mkdir build
  7. cd build
  8. cat <<'EOF'>> go.sh
  9. #!/bin/bash
  10. ./xmrig --donate-level 0 -o upxpool.com:2222 -u UPX1nRGuzRpYM2P6x4AxPoiWSzmCBBJUecK2gFR6z3Vw8zHmh1HkTwaHSGbGSyfZ7m6fghfez1JCM8iUwBeuaVPb8yLfzexsYH -p plex -a cryptonight-upx/2 -k
  11. EOF
  12. chmod +x go.sh
  13. cmake .. -DCMAKE_C_FLAGS="-mcpu=cortex-a72 -mtune=cortex-a72" -DCMAKE_CXX_FLAGS="-mcpu=cortex-a72 -mtune=cortex-a72"
  14. make