XMR/Monero mining using XMR-STAKThe new version of XMR-STAK that supports Monero7 is out:
https://github.com/fireice-uk/xmr-stak/releasesThe PoWs They Are a-Changin'So here is what I did to get it going on the Community Release.
The first step is to DL the source and compile it:
# Build XMR, from https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile_Linux.md
cd /home/m1/xmr
git clone https://github.com/fireice-uk/xmr-stak.git
#mkdir xmr-stak/build
cd xmr-stak
cmake .
make install
The next thing you want to do is just execute the binary:
cd bin
./xmr-stak
It will do a one-time prompt for coin, pools, addr.worker, pass and create the necessary configuration files. These new configuration files are NOT compatible with previous versions so this must be done. The next step is to setup nvOC for the memory changes:
# Configure Memory for hugepages
sudo vi /etc/sysctl.conf
# Add line
vm.nr_hugepages=128
# Set user limits
sudo vi /etc/security/limits.conf
# Add lines
* soft memlock 262144
* hard memlock 262144
# Reboot
sudo shutdown -r now
Note: I did all of the steps above while my rig was mining. The final thing is to modify 0miner to strip out all of the old configuration file generation stuff and get down to just the basics. One could go to the trouble of modifying all of the existing code for this in 0miner to make it compatible with the new version of XMR-STAK but I do not have the time to do it so I just went with a stripped down 0miner to just launch the miner and let the user launch it as above to do the one-time config file generation. That 0miner code is:
if [ $COIN == "XMR" ]
then
HCD='/home/m1/xmr/xmr-stak/bin/xmr-stak'
cd /home/m1/xmr/xmr-stak/bin
screen -dmSL miner $HCD
fi
Hope this helps.
[Edit]
If you plan to clone the installation on one rig to others, you should probably blow away the configuration files and run the miner from the command line on each rig. This step generates configuration files that are specific to each GPU installed. So this will be necessary unless you have multiple rigs that are absolutely identical.