You would need a way of counting the revs and reporting them to mach. I used a Homanns design board to do the interface. Then you can do threading too. Mine works well though I not very patient with the sherline. Do you have Mach turn? Should be just matter of inputting the info. I would think the info in your linux regarding setup ports and pins and step and direction would all be directly transferable but I know nothing about linux.