Simple guide to make a server on a KVM Root Server?

Hi.
So, I’m thinking more and more about switching to a KVM Root Server, since I found some hostings that seem very good and will offer me more freedom than my actual shared hosting.

But I heard it is not recommended to run the server from the root user, and that I should make a user and a container specific for my Minecraft Server.

Is there a guide on how to to that?
I’m planning on using Ubuntu, and I need Java 21 LTS.

Also making sure the environment is contained in a secure way to avoid security issues.

Not planning on a big server, but on a powerful one to play with my little community (don’t think it’ll go past 20/30 players).

Last thing last: if it is any good also to install a Pterodactyl Panel or if it is just a waste, and how to do that.

Also, should I use ubuntu’s screens to run the server? Or something else?

Thanks to everyone who’ll help me get this thing figured out, I don’t wanna mess up and I want to make thing the most correct, organized and secure way, to “industry standard” setup.
Was this page helpful?