8-buffalo posts short guide for automated XMRig boot using tmux
This is not the only way to do this and may not even be the easiest way. I am by no means a Linux expert. I believe this will work on any Debian based Linux including raspberry pi but I have only tried it on Mint.
Altervative ways to accomplish the same task suggested2 by the community include setting up a systemd service and using crontabs:
I think a systemd service would be better here, but nice post
I just use crontabs (native to most Linux distros) but nice guide