This guide will walk you through setting up a Minecraft server on your Raspberry Pi using Ngrok for port forwarding and CallMeBot to receive the server hostname on WhatsApp.
To get started, make sure you have the following software installed:
- Java Development Kit (JDK):
sudo apt install default-jdk
- Jq:
sudo apt install jq
- Ngrok:
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
- Download the Minecraft server JAR file from Minecraft's official website with wget.
wget "Download Link to Server.jar"
- Place the downloaded
minecraft_server.jar
file in the same directory as the Makefile. - Start the Minecraft server with the following command:
java -Xmx1024M -Xms1024M -jar server.jar nogui
- Open the
eula.txt
file generated in the server directory and changeeula=false
toeula=true
.
- Obtain your phone number and API key from CallMeBot's website.
- Edit the
sendtext.py
file and insert your phone number and API key. - 'callmebot.py' from https://github.com/stonatm/CallMeBot-Whatsapp-Signal needs to be in the directory 'callmebot'
To start the Minecraft server, run:
make start
To stop the Minecraft server, run:
make stop
That's it! Your Minecraft server should now be up and running on your Raspberry Pi. If you have any questions or issues, feel free to reach out for assistance. Enjoy your gaming!!