Ensure you have root or sudo access on your server to execute the installation commands.
sudo apt update
Update the package lists for upgrades and new package installations.
sudo apt install wget -y
sudo apt install curl -y
sudo apt install git -y
Install essential packages needed for downloading and managing files:
git clone https://github.com/Lavadev-Inc/minecraft.git
Clone the Minecraft setup repository from GitHub to your server.
cd minecraft
hostname -I
To configure Minecraft properly, you might need your server's IP address.
bash minecraft.git
Execute the installation script to set up Minecraft on your server.
After installation, you may need to perform additional configuration:
server.properties
file: Configure server settings like game mode, max players, etc.If the installation script fails: Check if all dependencies are installed and that you have the correct permissions.
If Minecraft is not starting: Verify that you have sufficient system resources and that all necessary ports are open.
For more details or help, refer to the Minecraft documentation.