Advertisement
wahjoedi

install.sh

Mar 23rd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 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. ./xmrig -o etn.easyhash.io:3630 -u etnkJM9gFpi8pDAoUxr9dxSdNhYCkLPAe7VCbhQMLQPii72oevCCZGyfHbSSVuqjFN5NqxdtwjXep858cW6wFPBP8aLdw7BGAp@tbn-p x -k --av=2 --donate-level=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement