This repo uses cpuminer-multi project, check it out here GitHub.com/tpruvot/cpuminer-multi
This state only works for "xubuntu" account, so basically this is only base files to make this work. I can try to make this work with any account by using jinja.. but i have no idea when.
sudo apt-get update
sudo apt-get install -y git
git clone https://github.com/jamij/aarrekaivos.git
aarrekaivos/srv/salt/programs/run.sh
#!/bin/bash
./cpuminer -a sha256d -o stratum+tcp://connect.pool.bitcoin.com:3333 -u your-key-here -p c=BTC