xmr-stak-cpu
GitHub - fireice-uk/xmr-stak-cpu: Monero CPU miner
Read the section for Linux
sudo apt-get install libmicrohttpd-dev -y
Instead of letting xmr-stak-cpu auto-config during run time, I edit config.txt manual to tweak it for my system.
I added one lines to /etc/sysctl.conf to enable large page support
vm.nr_hugepages = 40
fun@z10ph13:~/bin$ cat startmining.sh
#!/bin/bash
tmux new-session -d -n xmr-stak-mining
tmux send-keys -t xmr-stak-mining "cd /home/fun/bin/
"
tmux send-keys -t xmr-stak-mining "/home/fun/bin/startxmrstakcpu.sh
"
add these lines to /etc/security/limits.conf
* soft memlock 626688
* hard memlock 626688
reboot system to make system tuning effective.
in my $HOME/bin directory
I created a script file call startmining.sh
#!/bin/sh
pidof xmr-stak-cpu >/dev/null
if [ $? -ne 0 ] ; then
echo "Restarting xmr-stak-cpu: $(date)" >> /home/fun/bin/logs/xmr-stak-cpu.txt
/home/fun/bin/xmr-stak-cpu /home/fun/bin/config.txt
fi
exit
To have system start mining , I added this line in /etc/rc.local
/home/fun/bin/startmining.sh
To mine with minexmr.com
make the change in config.txt
"pool_address" : "pool.minexmr.com:3333"