dietpi is a debian based distro (a very good stuff I think ).
For your next question, I don’t know. I installed mineos using the dietpi-software command via SSH connected as root. Then It starts automaticaly and I can connect using my web browser.
I just find that post which is similar to my problem : [Solved] Issues building BuildTools