Tutorials I recommend checking out:
[1] https://phoenixnap.com/kb/minecraft-dedicated-server
[2] https://www.fosslinux.com/18063/how-to-install-minecraft-server-on-ubuntu.htm
Beginner • https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_server
Beginner • https://www.hostinger.com/tutorials/how-to-setup-minecraft-server