Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Termux from GitHub or F-Droid
- AnLinux -> Dashboard -> Ubuntu
- Paste the AnLinux command into Termux
- Once done, run ./start-ubuntu.sh
- Run these commands one after another
- apt update
- apt-get clean
- apt-get install -y build-essential
- apt-get install software-properties-common
- add-apt-repository ppa:openjdk-r/ppa
- apt-get update
- apt-get install openjdk-8-jre
- apt-get install openjdk-21-jdk
- wget -O minecraft_server.jar (link to the file)
- ** do note that you can use a link to Paper, or Spigot, or whatever else, just replace the name and the link, for example, "wget -O paper-1.20.4-496.jar (link to paper 1.20.4)"
- chmod +x minecraft_server.jar
- ** if you used paper or whatever else, change "minecraft_server.jar" to whatever else you used, for example, "chmod +x paper-1.20.4-496.jar"
- java -Xmx(RAM AMOUNT) -Xms (RAM AMOUNT) -jar minecraft_server.jar nogui
- ** if you used paper or whatever else, change "minecraft_server.jar" to whatever else you used, for example, "java -Xmx(RAM AMOUNT) -Xms (RAM AMOUNT) -jar paper-1.20.4-496.jar nogui"
- Let it run and show the EULA warning
- apt install nano
- nano eula.txt
- Then run java -Xmx(RAM AMOUNT) -Xms (RAM AMOUNT) -jar minecraft_server.jar nogui again
- It should be working now, do note that **this tutorial does not show port forwarding and how to show with friends, this is a completely local server**
- If you want to host this server publicly, I used ngrok for it. Use the ARM64 Linux build
- https://ngrok.com/download
- Swipe right from the left side of the device on Termux (like -> this way from the left edge of your device) to bring up the sessions menu, start a **new** session while your server is running
- wget -O ngrok.tgz (link)
- tar zxvf ngrok.tgz
- Then register for an account on ngrok, copy your authentication token, and run the command
- ./ngrok authtoken (auth token from ngrok site)
- Then once it's configured
- ./ngrok tcp 25565
- Your Minecraft Server IP will be under "forwarding". You may need to rotate your device to see the full link. for example, mine could be 8.tcp.us-cal-1.ngrok.io:12345, that's the public server IP. It will change if you close ngrok!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement