Sets up a Minecraft Bedrock dedicated server on Ubuntu / Debian / Raspbian / Armbian with options for automatic updates, backups and running automatically at startup
View installation instructions at: https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/
To run the installation type:
wget https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh
chmod +x SetupMinecraft.sh
./SetupMinecraft.sh
Tested Distributions
-Ubuntu / Ubuntu Server 18.04.2
-Debian Stretch / Buster
Tested Platforms
-PC X86_64
-Udoo X86
-Intel Compute Stick
-ARM 64bit (warning: proof of concept, extremely slow)
--Raspberry Pi
--Tinkerboard
Update History
July 24th 2019
-Fixed Raspberry Pi support
July 10th 2019
-Fixed OpenSSL error in 1.12 (thanks obviator!)
-Fixed ports not choosing defaultS if nothing is entered (thanks sweavo!)
July 2nd 2019
-Added libcurl4 Bedrock server dependency to installer script to prevent server startup from failing
July 1st 2019
-Added support for multiple servers
-Choose the folder name and port for the server in SetupMinecraft.sh (must be unique per server instance)
May 23rd 2019
-Fixed typo in restart.sh where there was a space after stop command preventing the server from closing cleanly
-Added 10 second sleep after a force close to give the server time to fully close before calling start.sh
-Fixed server not restarting after scheduled nightly reboot (related to restart.sh bug)
-Removed some direct (for example paths like /bin/sleep) that were harming cross platform compatibility
April 26th 2019
-Tested new Bedrock dedicated server 1.11.1.2
-Added startup counter to server instead of waiting a flat 4s to reduce unnecessary waiting
-Fixed ARM support (64 bit required)
April 18th 2019
-Changed StopChecks++ to StopChecks=$((StopChecks+1)) to improve portability (thanks Jason B.)
-Added TimeoutStartSec=600 to server to prevent it being killed if taking longer than usual to download server
March 7th 2019
-Added Armbian support
-Tested with Tinkerboard
-Fixed portability issue with route vs /sbin/route
March 2nd 2019
-Running the SetupMinecraft.sh script after already installing now updates all scripts and reconfigures the minecraftbe service
-Script now works on any Debian based distribution (Ubuntu, Debian, Raspbian, etc.)
-Added very slow support for ARM platforms such as Raspberry Pi with QEMU emulation of x86_64
-Renamed service to minecraftbe to avoid confusion with Java version
February 15th 2019
-Backups now compress into .tar.gz format (saved in backups folder)
-Startup service waits up to 20 seconds for an internet connection to allow time for DHCP to retrieve an IP address
-Removed unnecessary sleep time on stop.sh script so it returns as soon as the minecraft server closes
February 8th 2019
-Initial release
makergamer/MinecraftBedrockServer
Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup
ShellMIT