Creating a minecraft server
Minecraft (opens in a new tab) is a game made up of blocks, creatures, and community. You can survive the night or build a work of art – the choice is all yours.
Requirements
- 2-4GB VPS Minimum
- Root and SSH Access
- Basic linux understanding
Getting started
- Installing required packages
sudo apt -y install sudo screen wget openjdk-18-jdk- Making the folder and going in
ℹ️
We are going to name the folder my-server, you can name whatever you want to.
sudo mkdir my-server && my-server- Agreeing to Minecraft EULA
sudo echo "eula=true" > eula.txt- Getting the jar file
⚠️
Please make sure to replace <link> with the correct URL.
sudo wget <link>In this case we're going to use the vanilla jar
sudo wget https://piston-data.mojang.com/v1/objects/8dd1a28015f51b1803213892b50b7b4fc76e594d/server.jar- Enter on a screen shell
screen -S minecraft- Starting up the minecraft server
java -jar server.jarNow press Ctrl, a, n on your keyboard. To get out of the screen shell & run the minecraft server on the background.
- Connect and enjoy!