Download & Install These Apps
- You need to download and install the latest version of Termux App. [Download Termux]
- You will need this “Files” file manager app to access your minecraft server files. [Download Files App]
- You will need a server jar file to host your minecraft server. You can download your favourite server file from there official websites, for this tutorial I am hosting paper server so I will download that from [Download PaperMC Plugin]
- Download GeyserMC & Floodgate Plugin from [Download GeyserMC & Floodgate Plugin]
- Download Via Version Plugin from [Download Via Version]
- Download Via Backwards Plugin from [Download Via Backwards]
Downloading Ubuntu in Termux
Now open the Termux app, paste the script given below and tap the “Enter” key. Termux will start downloading Ubuntu and it will take few minutes to install Ubuntu.
pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh
when the downloading is completed, paste and run the following command to launch Ubuntu.
./start-ubuntu.sh
Install Java Development Kit
Enter the following commands one by one
apt update && apt upgrade -y
apt install sudo
apt install openjdk-21-jre
Minecraft Server Setup
apt-get install nano
mkdir mcserver
cd mcserver
Copy the server.jar file in this folder using “Files” App.
nano start-server
java -Xmx8G -Xms8G -jar server.jar nogui
bash start-server
nano eula.txt
bash start-server
stop
nano server.properties
In server.properties file edit “onlinemode=false”
Copy the Plugins in Plugins folder using “Files” App.
Playit Setup for Tunneling
apt install curl
curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/playit.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/playit.gpg] https://playit-cloud.github.io/ppa/data ./" | sudo tee /etc/apt/sources.list.d/playit-cloud.list
apt update
apt install playit
playit
Now for the first time it will show a link to claim and setup the ports to tunnel, copy that link and open in a browser and complete the setup as I shown in the Tutorial Video.
Now you can start your Minecraft Server
bash start-server
Your Java + PE Minecraft server is ready and running for you and your friends, now you guys can join and play together.
To stop Server just use this command in terminal
stop
From Next Time you just have to open Termux and Run these few commands to start your Minecraft Server.
./start-ubuntu.sh
cd mcserver
bash start-server
open new termux session and run playit with these command
./start-ubuntu.sh
playit