Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #add gcc7 repo &install
- add-apt-repository -y ppa:jonathonf/gcc-7.1;
- apt update
- apt-get -y install git build-essential cmake libuv1-dev libmicrohttpd-dev software-properties-common gcc-7 g++-7;
- #enable huge pages
- sysctl -w vm.nr_hugepages=128
- echo 128 > /proc/sys/vm/nr_hugepages
- #make a swap
- fallocate -l 4G /swapfile
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- echo /swapfile > none swap sw 0 0 /etc/fstab
- echo vm.swappiness=10 > /etc/sysctl.conf
- sysctl -p
- #install xmrig
- git clone https://github.com/xmrig/xmrig.git
- cd xmrig
- mkdir build
- cd build
- cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
- make
- ./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