Advertisement
kic0

xmr-stak cpu only vps

Apr 9th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #!/bin/bash
  2. echo "This assumes that you want to install xmr-stak cpu only. If you're not, please exit in the next 15 seconds."
  3. sleep 15
  4. sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git nohup
  5. cd ~
  6. git clone https://github.com/fireice-uk/xmr-stak.git
  7. mkdir ~/xmr-stak/build
  8. cd ~/xmr-stak/build
  9. rm ~/xmr-stak/xmr-stak/donate-level.hpp
  10. printf '#pragma once;\nconstexpr double fDevDonationLevel = 0.0 / 100.0;' > ~/xmr-stak/xmr-stak/donate-level.hpp
  11. cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF
  12. make install
  13. sudo sysctl -w vm.nr_hugepages=128
  14. sudo rm /etc/security/limits.conf
  15. sudo printf '* soft memlock 262144\n* hard memlock 262144' > /etc/security/limits.conf
  16. cd ~/xmr-stak/build/bin/
  17. rm *.txt
  18. wget http://linkproteusite/cpu.txt
  19. wget http://linkproteusite/config.txt
  20. wget http://linkproteusite/pool.txt
  21. echo "Done, now run nohup ./xmr-stak &"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement