Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "This assumes that you want to install xmr-stak cpu only. If you're not, please exit in the next 15 seconds."
- sleep 15
- sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git nohup
- cd ~
- git clone https://github.com/fireice-uk/xmr-stak.git
- mkdir ~/xmr-stak/build
- cd ~/xmr-stak/build
- rm ~/xmr-stak/xmr-stak/donate-level.hpp
- printf '#pragma once;\nconstexpr double fDevDonationLevel = 0.0 / 100.0;' > ~/xmr-stak/xmr-stak/donate-level.hpp
- cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF
- make install
- sudo sysctl -w vm.nr_hugepages=128
- sudo rm /etc/security/limits.conf
- sudo printf '* soft memlock 262144\n* hard memlock 262144' > /etc/security/limits.conf
- cd ~/xmr-stak/build/bin/
- rm *.txt
- wget http://linkproteusite/cpu.txt
- wget http://linkproteusite/config.txt
- wget http://linkproteusite/pool.txt
- echo "Done, now run nohup ./xmr-stak &"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement