Minecraft Windows 10 Edition Bedrock Server on Ubuntu 18.04
We will be installing the Windows 10 Edition Bedrock Server on Ubuntu 18.04.
First we are going to make sure that everything is up-to-date.
sudo apt update -y && sudo apt upgrade -y
After we are done updating we are going to download the right server version.
Make sure that you right click on the green download button after checking "I Agree" and copying the link to the download. Go to your Ubuntu server via SSH and type
wget and then paste the link you copied.
If you are are already logged into your Ubuntu machine locally you can just download the server normally.
Make a new folder anywhere in your system. I put all my applications in the
/opt directory. My directory looks like this:
sudo mkdir -p /opt/Minecraft/Bedrock-Server
-p creates recursive directories.
Go into the folder:
Now we will download the files we got from the website:
sudo wget https://minecraft.azureedge.net/bin-linux/bedrock-server-22.214.171.124.zip
Unzip the files:
sudo unzip bedrock-server-126.96.36.199.zip
Now we can run the server with our current user, however we won't be able to log out. We can solve this in one of two ways, we can use
screen to run the server in the background, or we can use
systemd to run the server.
screen we can access the server by connecting to a virtual screen that has a process running, however we won't be able to check the status or easily start or stop the server.
systemd we can access the server with systemd commands. We can also
restart, and check the
status of the server with ease.
It is up to you on which you want to use. Both steps will be listed below.
Make sure you are in the directory where you extracted all your files, my files are in:
sudo screen -S Minecraft ./bedrock_server
-S gives the
screen a name so it is easier to identify all your
screens running in the background.
You list all running
sudo screen -ls
Follow the onscreen instructions for your Minecraft server.
If you ever want to change any settings in your
server.properties for your Minecraft server you will need to stop your server first.
The best way to do that is to gracefully stop your server:
sudo screen -r Minecraft stop
The first line attaches to the
screen "Minecraft" which we defined when naming the
With "stop" we make sure to properly stop the server without corrupting any files that are being written at the moment.
Make your way over to the folder:
Create a new file with vi and name it minecraft.service.
sudo vi minecraft.service
Copy the below text and change the user and group to the appropriate user and group on your system. Also make sure to change the directory in which the server was extracted if you chose a different location.
[Unit] Description=Minecraft Bedrock After=network.target [Service] SyslogIdentifier=minecraft Restart=always RestartSec=5 Type=simple User=user # CHANGE ME! Group=group # CHANGE ME! WorkingDirectory=/opt/Minecraft/Bedrock-Server # MAKE SURE THE DIRECTORY IS RIGHT! ExecStart=/opt/Minecraft/Bedrock-Server/bedrock_server --NoRestart # MAKE SURE THE DIRECTORY IS RIGHT! TimeoutStopSec=20 [Install] WantedBy=multi-user.target
Save and quit by first clicking "ESC" and then typing
Run the command to reload the systemd manager configuration:
sudo systemctl daemon-reload
Now we can easily
restart, and check the
status of our server.
sudo service minecraft start
Follow the onscreen instructions for your Minecraft server setup.
Here are some additional commands:
sudo service minecraft stop sudo service minecraft restart sudo service minecraft status
stop command gracefully stops the server without interrupting any processes.
restart command gracefully restarts the server without interrupting any processes.
status command shows info about the Minecraft service such as: if it is active, PID (Process ID), and a few lines of the log, etc.