DISCLAIMER: This is the unofficial PteroVM installation script, I used this one for my Pterodactyl Egg.
Personally, I tested it on a Ubuntu VM.
If you tested it on another OS, please let me know.
If you did a version for another OS, please create a pull request, I will test it and merge it if it works.