READ BEFORE WATCHING:
The video cut out important commands so here are the commands and dependencies you need.
I am using Alpine Linux because of its lightweight and limited resource consumption. This is a simple way to host a server for you and your friends without having to rely on the cloud.
I am using Portainer because it is on the same server as the Minecraft server. If requested I can post a video on how to set up Portainer.
You do need to know the IP address of your local network's device that Minecraft is running on.
If you are running the Minecraft server on the same machine that you will be playing on, for the IP address type in 'localhost'
```
apk update
apk upgrade
apk add openjdk21
apk add nano
apk add wget
apk add udev
cd /opt
mkdir Minecraft_server
cd /opt/Minecraft_server
nano start.sh
PASTE FOLLOWING (CTRL + SHIFT + V):
java -Xmx1024M -Xms1024M -jar server.1.20.4.jar nogui
***keep in mind that the more RAM you allow for your server to run, the smooth it will be/ less likely to lose data or progress:
java -Xmx1024M -Xms1024M -jar server.jar nogui -----------1 Gb of RAM
java -Xmx2024M -Xms2024M -jar server.jar nogui -----------2 Gb of RAM
java -Xmx1024M -Xms3024M -jar server.jar nogui -----------3 Gb of RAM
java -Xmx4024M -Xms4024M -jar server.jar nogui -----------4 Gb of RAM
CTRL + O
ENTER
chmod +x start.sh
./start.sh
nano eula.txt
*change false to true
CTRL + O
ENTER
./start.sh
```