Skip to content

Guide for Linux (including Termux)

slees edited this page Jul 16, 2023 · 6 revisions

Setup

Termux, Debian, or Debian-based;

apt update && apt install git

Arch or Arch-based;

pacman -Syy git

Fedora or Fedora-based;

dnf upgrade && dnf install git

Alpine or Alpine-based;

apk update && apk add git

Install

you can run this command in any directory you want; It'll create a folder with your brand new server in that directory

(Note; Make sure to change <YOUR_INSTANCE_NAME> to what you want your directory to be called, wont effect the name of the level/world in your server instance though.)

git clone https://github.com/Theslees/Termux-minecraft-server-installer <YOUR_INSTANCE_NAME> && cd <YOUR_INSTANCE_NAME> && chmod +x install.sh

Execute With or Without root, up to you!

./install.sh

Update

run with your terminal open in the server instance's folder. ⚠️ Make sure to back up modified configs since it may overwrite them. ⚠️

git fetch -q

Adding yourself to the Whitelist (enabled by default)

The server configs has whitelists enabled by default, You can disable it, or (even better) add people to the whitelist. The proper command syntax is whitelist add, here's how you'd use it inside the server's console.

Usage;

whitelist add Theslees

Use this command to whitelist usernames to permit whoever you want into your server!

Conclusion;

After finishing the setup, you should be able to run "mc" in your terminal to start the server anytime you want <3.


WARNING FOR TERMUX USERS; i am not responsible for batteries frying or anything that may happen. You are doing this on your own will, and you are aware of the Risks that come with putting your phone through this.

NOTE FOR TERMUX USERS; you can go to your phone's Wifi Settings, and click on your connection to see more details about it. You should find your local ip address, which u can use to connect to your mc server. should look something this; 192.168.0.XX. Connecting to "localhost" on your mc client should also work.