Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. 1. sudo apt-get update (updates all your update sources)
  2. 2. sudo apt-get dist-upgrade (updates your system files, windows update)
  3.  
  4. 3. sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev (This installs the everything that the compiler depends on)
  5.  
  6. 3. sudo apt install git
  7.  
  8. 3. git clone https://github.com/fireice-uk/xmr-stak.git (pulls down the latest xmr-stak files, puts them in a directory called xmr-stak)
  9.  
  10. 4. mkdir xmr-stak/build (creates a directory called build in the xmr-stak folder)
  11.  
  12. 5. cd xmr-stak/build
  13.  
  14. 6. cmake .. -DOpenCL_ENABLE=OFF -DCUDA_ENABLE=OFF (This tells the compiler we don't need to compile with support for opencl or cuda)
  15.  
  16. 7. make install (if this gives a permissions error, type sudo in front of make. This compiles the program)
  17.  
  18. 8. The make process put the executable file in a new directory called bin. so type in: cd bin
  19.  
  20. 9. Type sudo ./xmr-stak This will open the program and initially ask you questions about the pool address, username, etc. After all of that, it will start mining. You can hit control+C to stop it. After that, it will have created 2 files in the directory, 1 called cpu.txt (dictates the threads and settings for cpu mining) and config.txt which has all of the info you input on the first screen and a few other options.
  21.  
  22. {"pool_address" : "nyc01.supportxmr.com:7777", "wallet_address" : "46yaZ91eoYma8jbeSRQ9sDc4xnNaGk6qTZMjHyaPgEJ7fN4TuLiYgz7erQggdc66aPT8zXjCgBjoB1q3mGr3zZkcKFUS8np",
  23.  
  24.  
  25.  
  26. In /etc/security/limits.conf I also added the following 2 lines:
  27. * soft memlock 262144
  28. * hard memlock 262144
  29.  
  30. and in /etc/sysctl.conf added:
  31. vm.nr_hugepages=128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement