How to Set up a Home Minecraft Server on Ubuntu Server



How to Set up a Home Minecraft Server on Ubuntu Server

How to Set up a Home Minecraft Server on Ubuntu Server

In this video, I show you how to set up a home Minecraft server, on Ubuntu server.
I demonstrate this using Ubuntu server. Please note that this process varies from operating system to operating system.

*This process will only make the server accessible from your local network. If you want to make the server accessible from the internet, you will need to set up port forwarding on your router. I made a video on how to do this. Click the link below to watch:
https://youtu.be/PbV8gPi_RSo

Prerequisites:
1. 2 Computers (one of them can be virtualized) (one to use as the server, and another to download the Ubuntu Server ISO and flash it to a flash drive)
2. A Flash Drive (1 GB or larger)

Required Files:
Ubuntu Server ISO: https://ubuntu.com/download/server
Minecraft Server JAR File: https://www.minecraft.net/en-us/download/server/

*The list of commands below is for reference only, and is NOT in order.

Commands:
Find your server’s IP address: ip a
Run commands from another computer: ssh [username]@[IP address] (example: ssh [email protected])
Set a root password: sudo passwd root (if you want to know why you should run this, I encourage you to check out the video at the link below:
https://youtu.be/WfLswhOjqkk)
Install updates: sudo apt update && sudo apt upgrade
Install Java: sudo apt install openjdk-11-jre
Make a “minecraft” folder in your home folder: mkdir minecraft
Switch to the “minecraft” folder (while in your home folder): cd minecraft
Switch back to your home folder (while in your “minecraft” folder): cd ..
Download the Minecraft server JAR file (I recommend doing this over SSH, so you can simply copy and paste the download link): wget [Minecraft server download link] (example: wget https://launcher.mojang.com/v1/objects/a412fd69db1f81db3f511c1463fd304675244077/server.jar)
Run the Minecraft server JAR file (*NEVER allocate more than half of your server’s RAM to Minecraft server, to avoid crashing your server): java -Xmx2048M -Xms1024M -jar server.jar nogui
Take your Minecraft server offline: stop
Agree to the Minecraft server EULA: nano eula.txt
Restart the server: sudo shutdown now -r
Shut down the server: sudo shutdown now

Comments are closed.