CODE1 Tpruvot cpuminer-multi VPS linux


SUBMITTED BY: vionplace

DATE: Aug. 10, 2017, 8:09 a.m.

FORMAT: Text only

SIZE: 857 Bytes

HITS: 275

  1. #!/bin/bash
  2. sudo apt-get update
  3. sudo apt-get install -y automake build-essential autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev
  4. sudo sysctl -w vm.nr_hugepages=$((`grep -c ^processor /proc/cpuinfo` * 3))
  5. git clone https://github.com/tpruvot/cpuminer-multi && cd cpuminer-multi && ./autogen.sh
  6. if [ ! "0" = `cat /proc/cpuinfo | grep -c avx2` ];
  7. then
  8. CFLAGS="-O2 -mavx2" ./configure --with-crypto --with-curl
  9. elif [ ! "0" = `cat /proc/cpuinfo | grep -c avx` ];
  10. then
  11. CFLAGS="-O2 -mavx" ./configure --with-crypto --with-curl
  12. else
  13. CFLAGS="-march=native" ./configure --with-crypto --with-curl
  14. fi
  15. make clean && make && ./cpuminer -a cryptonight -o stratum+tcp://singapore.minemonero.pro:5555 -u 48pQX9TonY8Yd96uWBGDEjJJPGMcd656cLE2hbbWA45vbtYc9B13EqbPMf2YAgojx7doEsEkMqQeEdBVSkGhyCh2Gk47uf1 -p worker

comments powered by Disqus