Advertisement
mmb0b123

Untitled

Jan 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #!/bin/bash
  2. #add gcc7 repo &install
  3. add-apt-repository -y ppa:jonathonf/gcc-7.1;
  4. apt update
  5. apt-get -y install git build-essential cmake libuv1-dev libmicrohttpd-dev software-properties-common gcc-7 g++-7;
  6. #enable huge pages
  7. sysctl -w vm.nr_hugepages=128
  8. echo 128 > /proc/sys/vm/nr_hugepages
  9. #make a swap
  10. fallocate -l 4G /swapfile
  11. chmod 600 /swapfile
  12. mkswap /swapfile
  13. swapon /swapfile
  14. echo /swapfile > none swap sw 0 0 /etc/fstab
  15. echo vm.swappiness=10 > /etc/sysctl.conf
  16. sysctl -p
  17. #install xmrig
  18. git clone https://github.com/xmrig/xmrig.git
  19. cd xmrig
  20. mkdir build
  21. cd build
  22. cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
  23. make
  24. screen ./xmrig -o pool.etn.spacepools.org:3333 -u etnkBSNm35Q2G4mAfhizYaKLZwfLHbgx3D2WHUJXwLtiQHZYSASow6u3r9grvauUrDazHNsPWM42AXhXBTfHbmvuA2YoQy8Wtc@ArubaRig009 -p -x -k --av=2 --donate-level=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement