
This article explains the steps to install Minecraft cloud gaming servers on Ubuntu 20.04.
Create a sudo user named minecraft.
Switch to the new user.
Update the package index.
Install Java.
Install Screen. This allows your server to run without leaving your terminal open.
Confirm the installed packages.
Create a new server directory for your server files.
Move to the directory.
Install wget
Navigate to https://www.minecraft.net/en-us/download/server to find the download links for the latest version of Minecraft. Download it with wget. For example, with version 1.16.4`, run:
Run the server. The 1024M parameter in -Xms1024M -Xmx1024M configures Java for 1 GB of RAM. Change this to the amount of RAM you want to allocate for Minecraft. The operating system requires available RAM as well, please don't assign all available RAM to Minecraft. For example, if the server has 4 GB RAM, you might consider setting -Xms3072M -Xmx3072M.
You should receive an similar output to this.
To agree to the EULA, edit eula.txt.
Find the line that says eula=false and change it to eula=true. Save and exit the file.
Create a startup script for your server.
Paste the following into start.sh. Adjust the Xmx and Xms RAM values as needed.
Save and exit the file.
Make start.sh executable.
Create a screen instance for the server.
Start your server script.
To exit the screen session, press Control + A then D. To resume the screen session, run:
Here are some tips for your Minecraft server:
/. For example op @a will make everybody online a server operator.sudo nano server.properties to get access to them.world on the first launch for Minecraft modifications, datapacks, and other features.
0 Comments
Be the first to comment and share your perspective with the community.