Minecraft Bedrock Edition – Ubuntu Dedicated Server Guide

Minecraft Bedrock Edition Logo
Minecraft: Bedrock Edition Logo

Minecraft Bedrock Edition is the version of Minecraft that powers the iPhone / Android versions (formerly Minecraft Pocket Edition), the Xbox / PlayStation / Nintendo Switch editions and the free Windows 10 Minecraft edition.

Mojang has released a dedicated server which is considered to be in alpha testing.  I have found it to be very stable and able to run on a wide variety of hardware.

This script and guide are written to help you get a robust Minecraft Bedrock dedicated server up and running in only a few minutes!

This is the standalone version. The easiest and most problem-free way to run this is using Docker (installed as simply as sudo apt install docker.io): Legendary Minecraft Bedrock Container

UPDATE 8/8/2022 – I’ve also released a way for Java and Bedrock players to play on the same server using Geyser: Minecraft Java + Bedrock Server Together – Geyser + Floodgate

Features

  • Sets up the official Minecraft Bedrock Server (currently in alpha testing)
  • Fully operational Minecraft Bedrock edition server in a couple of minutes
  • Ubuntu / Debian distributions supported
  • Sets up Minecraft as a system service with option to autostart at boot
  • Automatic backups when server restarts
  • Supports multiple instances — you can run multiple Bedrock servers on the same system
  • Updates automatically to the latest or user-defined version when server is started
  • Easy control of server with start.sh, stop.sh and restart.sh scripts
  • Adds logging with timestamps to “logs” directory
  • Optional scheduled daily restart of server using cron

Requirements

  • A computer with a 64 bit processor (if you are trying to use ARM read my article on the limitations). 32 bit binaries of the official server are not available so it needs to be 64 bit!
  • 1 GB of RAM or higher
  • The only officially supported platform by Microsoft is Ubuntu 22.04 / 20.04 (current LTS, recommended)
  • Other Linux flavors supported by this script as well as long as they use systemd (for the service). The script assumes apt is installed but there are minimal dependencies so you could install these on another distro (that doesn’t have apt present) and use the script normally.

Recommended Gear

Game Editions

Minecraft: Bedrock Edition is the “Windows 10” version of Minecraft as well as the version of Minecraft on the Xbox / Playstation / Switch. The versions of Minecraft for Android and iOS are also the Bedrock edition.

All of these versions support cross-platform play with each other (but not with the Java edition).

Minecraft Bedrock Digital Code
Minecraft Bedrock Digital Code

This is the PC Minecraft for Windows 10 (Bedrock) edition of Minecraft. It is able to play cross-platform with other players on Android / iOS / Playstation / Xbox / Switch. Available as a code that is instantly activated to give you permanent access to the game!

Links: Amazon.com*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*

Minecraft Bedrock Playstation
Minecraft Bedrock Playstation

The Sony PlayStation version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.se*, Amazon.sg*

Minecraft Bedrock Nintendo Switch
Minecraft Bedrock Nintendo Switch

This is the Nintendo Switch version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

Minecraft Bedrock Xbox One
Minecraft Bedrock Xbox One

This is the Microsoft Xbox version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.sg*

Recommended Storage (Solid State Drive)

I strongly recommend a Solid State drive (SSD) for your server. This is because Minecraft is constantly reading/storing chunks to the disk which makes I/O performance very important.

These are much cheaper than they used to be. Here’s a decent 120 GB one (higher capacity options are available) at a very low price:

Kingston A400 SSD
Kingston A400 2.5″ SATA SSD

The Kingston A400 is reliable, widely available around the world, has low power requirements and performs very well. It’s also very affordable. This drive has been benchmarked over 1000 times at Pi Benchmarks and is the #1 most popular SSD among the community!

Links: AliExpress*, Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

If you have a M.2 NVME slot in your motherboard you can go with a high end drive. This will give your server maximum performance even if a large number of players are running around on the server changing blocks and triggering disk writes.

This is the one I have in my machine. These range from 250 GB to 2 TB depending on how big your server might grow:

The Samsung 980 Pro (NVMe) is a professional grade SSD and one of the fastest in the world. The Samsung NVMe drives have been at the top of this category for a long time and are well trusted for both their performance and reliability / long life.

Links: AliExpress*, Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

Computer / CPU / Memory

Almost any PC made in the last few years will be a x86_64 bit computer. If you have an older computer around that isn’t being used then it will most likely have the right CPU and amount of memory (as well as fast storage) to run a basic server.

Throwing a SSD in one of these older computers will provide an excellent server experience for small and larger player counts.

The speed of your storage will make the largest difference. Older HDDs are going to have significantly slower performance than any modern SSD even with all other hardware equal. This is because the Minecraft server is constantly reading/writing chunks of your world as well as updates to it to the disk so this tends to be the bottleneck.

Operating System

I highly recommend using Ubuntu Server to run the Minecraft dedicated server. It is available here.

At the time of writing the current version is Ubuntu Server 20.04. This is a secure and robust operating system and will leave plenty of resources available for the server to run.

The script should run on any Debian based flavor of Linux but since the Minecraft Bedrock server is compiled natively for Ubuntu I recommend sticking with it. If you have a GUI flavor of Ubuntu and a decent PC (>= 2 GB of RAM) the server will work just fine on it.

Note: People have reported in the comments that Ubuntu 16.x is no longer working with the latest official Mojang binaries. Ubuntu 18.04 is the minimum requirement for the latest versions, and 20.04 is recommended!

Installation

Log into your Linux server either using SSH or a mouse and keyboard and paste/type the following command:

curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash

The script will setup the Minecraft sever and ask you some questions on how to configure it. I’ll explain here what they mean.

The first question will be the installation path. This is the root installation path for ALL servers you will have. If you add additional servers later you should select the exact same installation path. It should always be left as the default (~).

The only exception is if you have something like a completely dedicated disk for the Minecraft server. In that case you should always use the same root path of /mnt/yourdrive or wherever the path is for every new/additional server you install.

“Start Minecraft server at startup automatically (y/n)?” – This will set the Minecraft service to start automatically when your server boots. This is a great option to set up a Minecraft server that is always available.

“Automatically restart and backup server at 4am daily (y/n)?” – This will add a cron job to the server that reboots the server every day at 4am. This is great because every time the server restarts it backs up the server and updates to the latest version. See the “Scheduled Daily Reboots” section below for information on how to customize the time or remove the reboot.

That is it for the setup script. The server will finish configuring and start!

First Run

The server will start up and start displaying output to the console.

[2019-03-30 20:25:12 INFO] Starting Server
[2019-03-30 20:25:12 INFO] Version 1.10.0.7
[2019-03-30 20:25:12 INFO] Level Name: Bedrock level
[2019-03-30 20:25:12 INFO] Game mode: 0 Survival
[2019-03-30 20:25:12 INFO] Difficulty: 1 EASY
[2019-03-30 20:25:20 INFO] IPv4 supported, port: 19132
[2019-03-30 20:25:20 INFO] IPv6 supported, port: 19133
[2019-03-30 20:25:23 INFO] Server started.

Once you see the “Server started” line you will be able to connect from the client.

To add the server to the client open Minecraft and click “Play”. Then at the top of the screen select the “Servers” tab and click “Add Server”.

This will ask you for a Server Name and Server IP Address. For the name you can put anything and for the server IP address put the address of your Linux server. Leave the port as the default 19132. For more information on how to let people from outside your network on go to the “Port Forwarding” section below.

Now choose the server you just added in the list and connect!

Start, Stop and Restart Server

The server can be started, stopped and restarted two different ways. You can use the provided scripts in the Minecraft folder or you can use systemctl. Here are the commands:

cd ~/minecraftbe
./start.sh
./stop.sh
./restart.sh

-OR-

sudo systemctl start minecraftbe
sudo systemctl stop minecraftbe
sudo systemctl restart minecraftbe

Automatic Backups

The server backs up each time it starts. This helps you recover easily if something goes wrong. This system works best if you configured the server to restart daily since it means you will have a backup every day.

To access these backups type:

cd ~/minecraftbe/backups
ls

When a backup is made the filename will be the date and time the backup was taken. If you need to restore a backup it’s very easy. Substitute the timestamp in my example to the backup you want to roll back to. Type:

cd ~/minecraftbe
./stop.sh
rm -rf worlds
tar -xf backups/2019.02.15.22.06.30.tar.gz
./start.sh

Your world has now been restored! It’s a good idea to download these backups off the server periodically just in case the server’s storage fails.

Installing Resource Packs / RTX Support

For instructions on how to install resource packs (including optional RTX support) view my step by step Minecraft Bedrock Dedicated Server Resource Packs guide here.

Scheduled Daily Reboots

The daily reboots are scheduled using cron. It’s very easy to customize the time your server restarts.

To change the time that the server restarts type: crontab -e

This will open a window that will ask you to select a text editor (I find nano to be the easiest) and will show the cronjobs scheduled on the server. The Minecraft one will look like the following:

0 4 * * * /home/ubuntu/minecraftbe/restart.sh
Crontab's syntax layout
Crontab’s syntax layout

There are 5 fields here. The default restart time is set to reboot at 0 minutes of the 4th hour of the day (4 AM). The other 3 fields are left as * to represent every day of every month. Make any desired changes here and press Ctrl+X to exit nano and update the cronjob.

To remove the daily reboot simply delete the line and save.

Reconfigure / Update Scripts

The scripts can always be reconfigured and updated by downloading the latest SetupMinecraft.sh and running the installer again. It will update all of the scripts in the Minecraft directory and reinstall the startup service for you.

Running SetupMinecraft.sh again will also give you a chance to reconfigure options such as the memory dedicated to the server, daily reboots, starting the server on boot, etc.

This will not overwrite your world or any other data so it is safe to run!

Port Forwarding

If everyone on your server is on the same LAN or WiFi network as you then you don’t need to do this. If you want people to connect from outside your local network then you need to set up port forwarding on your router.

The process for this is different for every router so the best thing to do is just look at your router and find the model # and put that in google with port forwarding for easy instructions on how to do it for your specific router.

You want to forward port 19132. The type of connection is both TCP and UDP. On some routers you need to do both a TCP entry and then a second entry as UDP.

Once you do this people will be able to connect to your Minecraft server through your public IP address. This is different than your local IP which is usually a 192.x.x.x or 10.x.x.x. If you don’t know what that is just go to google and type “what’s my ip” and Google will kindly tell you!

Version Override

You can revert to a previous version with the revert.sh script included in your directory like this:

james@jamesgigabyte-linux:~/minecraftbe/james$ ./revert.sh
Set previous version in version_pin.txt: bedrock-server-1.19.10.20.zip

If you have a specific version you would like to run you can also create version_pin.txt yourself like this:

echo "bedrock-server-1.18.33.02.zip" > version_pin.txt

The version hold can be removed by deleting version_pin.txt. This will allow it to update to the latest version again!

Wired vs. Wireless

Going with an ethernet (wired) connection is going to be faster and more reliable. There’s so much wireless traffic and other interference in the air that running your server on WiFi is not recommended.

Even if it is working great 99% of the time it can ruin your experience very quickly if the WiFi drops for a couple of seconds and you get blown up by a creeper!

All that being said, the server works fine on wireless. The script will work fine as is with a wireless connection.

Benchmarking / Testing Storage

If you’re getting poor performance you may want to run my storage benchmark with:

sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash

PC results won’t show up on the site yet (it’s meant for Raspberry Pi) but it will run on Linux just fine and give you a score. If you search for the model of your drive on Pi Benchmarks you can compare your score with others and make sure the drive is performing correctly!

Troubleshooting Note – Oracle Virtual Machines

A very common problem people have with the Oracle Virtual Machine tutorials out there that typically show you how to use a free VM is that the VM is much more difficult to configure than just about any other product / offering out there.

It is because there are several steps you need to take to open the ports on the Oracle VM. You need to both:

  • Set the ingress ports (TCP/UDP) in the Virtual Cloud Network (VCN) security list
  • *and* set the ingress ports in a Network Security Group assigned to your instance

Both of these settings are typically required before you will be able to connect to your VM instance. This is purely configuration related and has nothing to do with the script or the Minecraft server itself.

I do not recommend this platform due to the configuration difficulty but the people who have gone through the pain of configuring an Oracle VM have had good experiences with it after that point. Just keep in mind it’s going to be a rough ride through the configuration for most people.

Troubleshooting Note – Hyper-V

There is a weird bug in Hyper-V that breaks UDP connections on the Minecraft server. The fix for this is that you have to use a Generation 1 VM with the Legacy LAN network driver.

Conclusion

The Minecraft Bedrock Edition dedicated server runs much better than previous third party servers in the past that were missing critical features. The performance is very good even on low end hardware. It has never been easier to set up a Minecraft Bedrock server.

If you have any feedback or suggestions let me know in the comment section. A lot of the changes and developments in this script and guide are directly from readers.

Have fun!

Other Resources

For a guide on how to set up resource packs check out my Minecraft Bedrock Resource Pack guide

If you’re trying to run this on the Raspberry Pi check out the Raspberry Pi specific guide here

guest

1.4K Comments
Inline Feedbacks
View all comments

ilium007
ilium007
1 year ago

If I switch apps on iOS, or if the iOS device goes to sleep (even just briefly) I can’t reconnect to the bedrock server unless I force quite the iOS client and reopen and reconnect to the server.

Devilotx
Devilotx
1 year ago

How do I host multiple worlds on this server? I have one world for my family to do creative builds etc etc, but when the server stopped updating (see note above) I rebuilt the server with a new name on the same computer, here I built a survival world, but the server info is different.
I did try to move the old world from the old install into the new folder structure.

~/minecraftbe/OLDSERVER/worlds/OLDWORLD
~/minecraftbe/NEWSERVER/worlds/NEWWORLD

New world works, I then copied the OLDWORLD folder into the worlds folder of the NEWSERVER, but I cannot seem to get OLDWORLD to work at the same time as NEWWORLD. restarting the server still only shows NEWWOLRD.

Wondering what config needs to be changed for this to work.

thanks~

Matt
Matt
1 year ago

James,

No option for reply to your last post on my thread, so I’m leaving a new comment. I did decide to go with the xfce. It’s progress is loading and unpacking at the time of your post. I’ll let you know, Still excited to try!

Matt
Matt
1 year ago
Reply to  Matt

Sorry for the massive data dumps here James. Issue appears to be in line 13/17 for me,

Minecraft Bedrock server is up to date...
Starting Minecraft server. To view window type screen -r bedrock_server
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
matt@MC-Server:~/minecraftbe/bedrock_server$ screen -r bedrock_server
There is no screen to be resumed matching bedrock_server.
matt@MC-Server:~/minecraftbe/bedrock_server$ ./start.sh
./start.sh: line 13: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Network interface not up, will try again in 1 second
./start.sh: line 17: route: command not found
Waiting for network interface to come up timed out - starting server without network connection ...
Checking for the latest version of Minecraft Bedrock server ...
--2020-12-22 20:56:30-- https://minecraft.net/en-us/download/server/bedrock/
Resolving minecraft.net (minecraft.net)... 13.249.51.53, 13.249.51.38, 13.249.51.61, ...
Connecting to minecraft.net (minecraft.net)|13.249.51.53|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.minecraft.net/en-us/download/server/bedrock/ [following]
--2020-12-22 20:56:30-- https://www.minecraft.net/en-us/download/server/bedrock/
Resolving www.minecraft.net (www.minecraft.net)... 23.47.48.16, 23.47.48.22, 23.47.48.7, ...
Connecting to www.minecraft.net (www.minecraft.net)|23.47.48.16|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.minecraft.net/en-us/download/server/bedrock [following]
--2020-12-22 20:56:30-- https://www.minecraft.net/en-us/download/server/bedrock
Reusing existing connection to www.minecraft.net:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘downloads/version.html’

downloads/version.html [ ] 302.88K 1.58MB/s in 0.2s

2020-12-22 20:56:31 (1.58 MB/s) - ‘downloads/version.html’ saved [310146]

Minecraft Bedrock server is up to date...
Starting Minecraft server. To view window type screen -r bedrock_server
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
matt@MC-Server:~/minecraftbe/bedrock_server$ screen -r bedrock_server
There is no screen to be resumed matching bedrock_server.

So it’s taking issue with 13 and 17 in start.sh

DefaultRoute=$(route -n | awk ‘$4 == “UG” {print $2}’)

SInce the QEMU version is good, no problem there, I’m thinking I need to bridge my eth connection to a virtual LAN port? That’s not in the instructions, but I’m not exactly attempting it the same way.

Thanks sir,
Matt

Matt
Matt
1 year ago

James, Please find below:

matt@MC-Server:~/minecraftbe/bedrock_server$ ./start.sh
Checking for the latest version of Minecraft Bedrock server ...
--2020-12-22 23:26:56-- https://minecraft.net/en-us/download/server/bedrock/
Resolving minecraft.net (minecraft.net)... 65.8.218.37, 65.8.218.51, 65.8.218.64, ...
Connecting to minecraft.net (minecraft.net)|65.8.218.37|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.minecraft.net/en-us/download/server/bedrock/ [following]
--2020-12-22 23:26:56-- https://www.minecraft.net/en-us/download/server/bedrock/
Resolving www.minecraft.net (www.minecraft.net)... 23.47.48.27, 23.47.48.22
Connecting to www.minecraft.net (www.minecraft.net)|23.47.48.27|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.minecraft.net/en-us/download/server/bedrock [following]
--2020-12-22 23:26:57-- https://www.minecraft.net/en-us/download/server/bedrock
Reusing existing connection to www.minecraft.net:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘downloads/version.html’

downloads/version.html [ ] 302.88K 1.41MB/s in 0.2s

2020-12-22 23:26:57 (1.41 MB/s) - ‘downloads/version.html’ saved [310146]

Minecraft Bedrock server is up to date...
Starting Minecraft server. To view window type screen -r bedrock_server
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
matt@MC-Server:~/minecraftbe/bedrock_server$ screen -r bedrock_server
There is no screen to be resumed matching bedrock_server.
matt@MC-Server:~/minecraftbe/bedrock_server$ ./restart.sh
Server is not currently running!
matt@MC-Server:~/minecraftbe/bedrock_server$

This seems to be an IP route issue. I swear I think I need to bridge the connection from my eth (enp9s0), to a virtual LAN port that can port a virtual pipe. I could be totally wrong! I don’t know…

The start.sh file was modified exactly as you described, and I checked the post by goodoldme. They are the same.
Then, I tried something different. I yanked the line:
DefaultRoute=$(/sbin/route -n | awk ‘$4 == “UG” {print $2}’)
and replaced with:
DefaultRoute=$ /sbin/route
(Don’t fret, I put it back the way it was ) 🙂

Anyway, it exposes this several times until it gives up:

Network interface not up, will try again in 1 second
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 enp9s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enp9s0
192.168.5.0 0.0.0.0 255.255.255.0 U 100 0 0 enp9s0
Network interface not up, will try again in 1 second
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 enp9s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enp9s0
192.168.5.0 0.0.0.0 255.255.255.0 U 100 0 0 enp9s0
Waiting for network interface to come up timed out - starting server without network connection ..

Debian is clunky, slow (surprisingly), and I’m not sure how to bridge the connections. Kubuntu made it easy, and it worked.
As an aside, during Debian 10.7 setup, I was prompted to indicate which network interface was my preferred method. Of course I chose wired.
After setup was complete I found that firmware was not installed for the wireless adapter!
I’ve loaded up the firmware from Debian’s site, but I haven’t had any luck getting it to work.
Maybe I should have rolled with the 10.7.0-i386 instead of the xfce i386 version. Not sure.

I really appreciate all of the help, but I’m beyond frustrated at this point. I wouldn’t blame you if you told me to take a hike.

Matt
Matt
1 year ago

matt@MC-Server:~/minecraftbe/bedrock_server$ LD_LIBRARY_PATH=. ./bedrock_server
bash: ./bedrock_server: cannot execute binary file: Exec format error

I won’t give up!

Matt
Matt
1 year ago

I’m having some issues with Debian, but I’m trudging through with this. I can’t get a screen up, but it’s gotten this far:

matt@MC-Server:~/minecraftbe/bedrock_server$ LD_LIBRARY_PATH=. qemu-x86_64-static bedrock_server
NO LOG FILE! - setting up server logging...
[2020-12-29 11:41:31 INFO] Starting Server
[2020-12-29 11:41:31 INFO] Version 1.16.201.2
[2020-12-29 11:41:31 INFO] Session ID 5c0fdefc-1a96-4b76-bf64-e6f18310571e
[2020-12-29 11:41:31 INFO] Level Name: Bedrock level
[2020-12-29 11:41:31 INFO] Game mode: 0 Survival
[2020-12-29 11:41:31 INFO] Difficulty: 1 EASY
[INFO] opening worlds/Bedrock level/db
[INFO] IPv4 supported, port: 19132
[INFO] IPv6 supported, port: 19133
[INFO] IPv4 supported, port: 56126
[INFO] IPv6 supported, port: 60830
[INFO] Server started.
[INFO] Player connected: Realmccoyone, xuid: 2533274924760772

The screen will not display on the Linux box, and after my client computer connects, it just hangs up with loading server...

Screen may be out of date (from separate terminal instance):

GNU Screen version 4.06.02 (GNU) 23-Oct-17

Having issues getting it to display in order to set up server.

Preston
Preston
1 year ago

Hello James,

I have loved using this server for almost a year now. It recently wont update to the correct server and i suspect your new code will fix this.

Before I do that I was wondering if you would recommend having this instance in a VM or a docker container?
I would like to have multiple server instances and run a NAS

Preston
Preston
1 year ago

I’m back an up and running!

I made sure to back up. I need to figure out how to save it to the HDD rather than the SSD(Boat drive). I have to remember to clear out the downloads every few months cuz my boot drive is so small.

How would I do this, and do you use Vm’s or Docker to split out a server.

Matt
Matt
1 year ago

James,

I’m having issues getting this to work, and I wonder if my 32bit Latitude D620 running Kubuntu 18.04 might be the problem. I was thinking I could repurpose some old hardware, and it’s the first time I’ve run your script.

I’m getting this after what seems to be a good setup (the end processes of the setup and subsequent lack of start.sh, stop.sh, restart.sh, etc…):

Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2865 (2.8K) [text/plain]
Saving to: ‘start.sh’

start.sh 100%[==============================================================================================================>] 2.80K --.-KB/s in 0.003s

2020-12-19 20:09:22 (959 KB/s) - ‘start.sh’ saved [2865/2865]

Grabbing stop.sh from repository...
--2020-12-19 20:09:22-- https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/stop.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1928 (1.9K) [text/plain]
Saving to: ‘stop.sh’

stop.sh 100%[==============================================================================================================>] 1.88K --.-KB/s in 0.002s

2020-12-19 20:09:22 (948 KB/s) - ‘stop.sh’ saved [1928/1928]

Grabbing restart.sh from repository...
--2020-12-19 20:09:23-- https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/restart.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1729 (1.7K) [text/plain]
Saving to: ‘restart.sh’

restart.sh 100%[==============================================================================================================>] 1.69K --.-KB/s in 0s

2020-12-19 20:09:23 (8.53 MB/s) - ‘restart.sh’ saved [1729/1729]

Configuring minecraft_server service...
--2020-12-19 20:09:23-- https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/minecraftbe.service
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.8.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 351 [text/plain]
Saving to: ‘/etc/systemd/system/minecraft_server.service’

/etc/systemd/system/minecraft_server.service 100%[==============================================================================================================>] 351 --.-KB/s in 0s

2020-12-19 20:09:24 (5.94 MB/s) - ‘/etc/systemd/system/minecraft_server.service’ saved [351/351]

Start Minecraft server at startup automatically (y/n)?y
Automatically restart and backup server at 4am daily (y/n)?y
Daily restart scheduled. To change time or remove automatic restart type crontab -e
Setup is complete. Starting Minecraft minecraft_server server...
There is no screen to be resumed matching minecraft_server.
matt@KUBUNTU-SERVER:~$ ls -al
total 696
drwxr-xr-x 20 matt matt 4096 Dec 19 20:07 .
drwxr-xr-x 3 root root 4096 Dec 19 15:11 ..
-rw------- 1 matt matt 3726 Dec 19 20:06 .bash_history
-rw-r--r-- 1 matt matt 220 Dec 19 15:11 .bash_logout
-rw-r--r-- 1 matt matt 3771 Dec 19 15:11 .bashrc
drwxrwxr-x 15 matt matt 4096 Dec 19 19:57 .cache
drwxr-xr-x 9 matt matt 4096 Dec 19 20:11 .config
drwx------ 3 matt matt 4096 Dec 19 15:24 .dbus
drwxr-xr-x 3 matt matt 4096 Dec 19 19:44 Desktop
drwxr-xr-x 2 matt matt 4096 Dec 19 15:24 Documents
drwxr-xr-x 2 matt matt 4096 Dec 19 17:30 Downloads
-rw-r--r-- 1 matt matt 14965 Dec 19 15:11 .face
lrwxrwxrwx 1 matt matt 5 Dec 19 15:11 .face.icon -> .face
drwx------ 2 matt matt 4096 Dec 19 19:40 .gconf
drwx------ 3 matt matt 4096 Dec 19 15:23 .gnupg
-rw-rw-r-- 1 matt matt 375 Dec 19 15:24 .gtkrc-2.0
drwxrwxr-x 3 matt matt 4096 Dec 19 15:29 .kde
drwxrwxr-x 3 matt matt 4096 Dec 19 15:23 .local
drwxrwxr-x 3 matt matt 4096 Dec 19 19:15 minecraftbe
drwx------ 5 matt matt 4096 Dec 19 15:54 .mozilla
drwxr-xr-x 2 matt matt 4096 Dec 19 15:24 Music
drwxr-xr-x 2 matt matt 4096 Dec 19 19:19 Pictures
drwx------ 3 matt matt 4096 Dec 19 19:34 .pki
-rw-r--r-- 1 matt matt 807 Dec 19 15:11 .profile
drwxr-xr-x 2 matt matt 4096 Dec 19 15:24 Public
-rwxrwxr-x 1 matt matt 11132 Dec 19 19:12 SetupMinecraft.sh
-rw-rw-r-- 1 matt matt 11132 Dec 19 20:07 SetupMinecraft.sh.1
-rw-r--r-- 1 matt matt 0 Dec 19 16:40 .sudo_as_admin_successful
drwxr-xr-x 2 matt matt 4096 Dec 19 15:24 Templates
drwxr-xr-x 2 matt matt 4096 Dec 19 15:24 Videos
-rw-rw-r-- 1 matt matt 260 Dec 19 20:09 .wget-hsts
-rw------- 1 matt matt 59 Dec 19 19:40 .Xauthority
-rw------- 1 matt matt 560382 Dec 19 20:23 .xsession-errors
matt@KUBUNTU-SERVER:~$ cd ~/minecraftbe
matt@KUBUNTU-SERVER:~/minecraftbe$ ./start.sh
bash: ./start.sh: No such file or directory
matt@KUBUNTU-SERVER:~/minecraftbe$ ./restart.sh
bash: ./restart.sh: No such file or directory
matt@KUBUNTU-SERVER:~/minecraftbe$ sudo
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] [-i|-s]
[]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
matt@KUBUNTU-SERVER:~/minecraftbe$ sudo systemctl start minecraftbe
[sudo] password for matt:
Failed to start minecraftbe.service: Unit minecraftbe.service not found.

Anyway, I just can’t get it to run. During one attempt, it commented that it was started, but the screen was closed. Not sure wgat that was about, but I only saw that once.

What do you think? Any help is appreciated.

Matt
Matt
1 year ago

This is great information James and thank you!! You’re very kind. Let me peel back and start over by building in the subfolder, and then if I’m seeing the same thing, I’ll consult the logs/try running the binary w/o the scripts and let you know. After some more digging last night, the error I’m receiving does show up in some web conversation as an ARM support issue. So, emulation support could be tried, but only if you’d want to test it with me out of curiosity. I wouldn’t ask you to go down that rabbit hole unless your curiosity was driving you. I’m only trying to make use of an old Centrino duo w 4G of RAM and a lean front end. Thought it might drive Minecraft just fine.

Matt

Matt
Matt
1 year ago
Reply to  Matt

So as we suspected (I’m sure the setup is good now) it cannot execute the binary. It’s the only comment in the log file. That’s as far as it gets.
This time had the subfolder properly placed, and the files are all written fine. It won’t execute the 64 bit binary.

I initially had a subfolder built yesterday when prompted for the server name, but in that last run (5th time) I was trying anything to make it happen. Sorry for the poor data and confusion.

I’ll guinea pig the emulation if you want to write it. It may end up being helpful to others to make use of some older hardware (if it runs well).

2 x Genuine Intel CPU T2300 @ 1.66GHz
4GB SODIMM DDR2
SATA 2.5" 500GB HDD
Kubuntu 18.04.5 LTS 32-bit

Matt
Matt
1 year ago

Sorry for the delay, been outside. I’ll look for the dependencies to load up and…

About to start. I’ll let you know.

🙂

Matt
Matt
1 year ago
Reply to  Matt

OK:

32 bit platform detected — installing dependencies…
Available QEMU version is not high enough to emulate x86_64. Please update your QEMU version.

Now I need to look at that…

Getting closer

Jeff
Jeff
1 year ago
Reply to  Matt

Matt,

Look under the name of your server. If you do “ls ~/minecraftbe” I could tell you what name you choose. The scripts are under the name of the server so if you “cd ~/minecraftbe/”

You can see they are in that directory

James you have done a great job on the scripts.

Matt
Matt
1 year ago
Reply to  Jeff

Attempted to update the QEMU version to 4.1.
This took some time, mostly due to unrelated projects that had to get done today. Also had to attempt it a couple of times until I found the place (noobie) where I could enable the source apt list so that I could take in the source code.
The “make” process took a LONG time.
Then adding the apparmor editions, apparmor libvert and libvertd only to get this:

Dec 20 19:53:02 KUBUNTU-SERVER apparmor[6432]: * Reloading AppArmor profiles
Dec 20 19:53:03 KUBUNTU-SERVER apparmor[6432]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/usr.sb
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/usr.sb
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Dec 20 19:53:06 KUBUNTU-SERVER apparmor[6432]: ...fail!
Dec 20 19:53:06 KUBUNTU-SERVER systemd[1]: apparmor.service: Control process exited, code=exited status=123
Dec 20 19:53:06 KUBUNTU-SERVER systemd[1]: Reload failed for AppArmor initialization.

Matt@KUBUNTU-SERVER:~/qemu-4.1.0$ journalctl -xe
Dec 20 20:03:02 KUBUNTU-SERVER audit[6764]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/s
Dec 20 20:03:02 KUBUNTU-SERVER audit[6764]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/s
Dec 20 20:03:02 KUBUNTU-SERVER audit[6766]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skippi
Dec 20 20:03:02 KUBUNTU-SERVER audit[6769]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skippi
Dec 20 20:03:02 KUBUNTU-SERVER audit[6770]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/c
Dec 20 20:03:02 KUBUNTU-SERVER audit[6770]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/
Dec 20 20:03:02 KUBUNTU-SERVER apparmor[6686]: AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/usr.s
Dec 20 20:03:02 KUBUNTU-SERVER audit[6770]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/
Dec 20 20:03:02 KUBUNTU-SERVER audit[6774]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/
Dec 20 20:03:02 KUBUNTU-SERVER apparmor[6686]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Dec 20 20:03:02 KUBUNTU-SERVER audit[6774]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/
Dec 20 20:03:02 KUBUNTU-SERVER audit[6778]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skippi
Dec 20 20:03:02 KUBUNTU-SERVER apparmor[6686]: ...fail!
Dec 20 20:03:02 KUBUNTU-SERVER systemd[1]: apparmor.service: Control process exited, code=exited status=123
Dec 20 20:03:02 KUBUNTU-SERVER systemd[1]: Reload failed for AppArmor initialization.
-- Subject: Unit apparmor.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apparmor.service has finished reloading its configuration
--
-- The result is RESULT.
Dec 20 20:03:02 KUBUNTU-SERVER systemd[1]: Started Run anacron jobs.
-- Subject: Unit anacron.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit anacron.service has finished starting up.
--
-- The start-up result is RESULT.
Dec 20 20:03:02 KUBUNTU-SERVER sudo[6678]: pam_unix(sudo:session): session closed for user root
Dec 20 20:03:02 KUBUNTU-SERVER anacron[6780]: Anacron 2.3 started on 2020-12-20
Dec 20 20:03:02 KUBUNTU-SERVER anacron[6780]: Normal exit (0 jobs run)
lines 1000-1032/1032 (END)

This is getting painful for a windows server guy out of his depth.

Worked on this for another couple of hours…
Still sitting @ qemu 2.11.

Matt
Matt
1 year ago

James, again, awesome stuff. Tons of detail and I love it. Indeed, I struggled with a couple of different QEMU packages yesterday but I’ve learned a bit. Being new to Linux, having my feet in the fire is sometimes the best way for me to learn.

Lets try your “evil” method…

🙂

Matt

Matt
Matt
1 year ago
Reply to  Matt

Unpacking binfmt-support (2.2.1-1) ...
dpkg: dependency problems prevent configuration of binfmt-support:
binfmt-support depends on libc6 (>= 2.28); however:
Version of libc6:i386 on system is 2.27-3ubuntu1.4.

Looks like I need to look into libc6:i386.

Sorry for the lag time in responses on this thread James. I got a call this morning about a customer network issue impeding their POS, so I had to get on the road to fix it.

Matt
Matt
1 year ago
Reply to  Matt

LOL!!!

I think I’m going to scare people away from trying this .

I’m starting to have fun now:

matt@KUBUNTU-SERVER:~$ sudo apt-get install libc6-i386 libc6-dev-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libc6-i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libc6

E: Package 'libc6-i386' has no installation candidate
E: Unable to locate package libc6-dev-i386
matt@KUBUNTU-SERVER:~$ sudo apt-get install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6-dev is already the newest version (2.27-3ubuntu1.4).
libc6-dev set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
binfmt-support : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1.4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
matt@KUBUNTU-SERVER:~$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
matt@KUBUNTU-SERVER:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
binfmt-support
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 226 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
matt@KUBUNTU-SERVER:~$ wget http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.28-10_i386.deb
--2020-12-21 15:08:15-- http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.28-10_i386.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 208.80.154.15, 64.50.236.52, 64.50.233.100, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|208.80.154.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2743020 (2.6M) [application/octet-stream]
Saving to: ‘libc6_2.28-10_i386.deb’

libc6_2.28-10_i386.de 100%[=========================>] 2.62M 157KB/s in 16s

2020-12-21 15:08:31 (169 KB/s) - ‘libc6_2.28-10_i386.deb’ saved [2743020/2743020]

matt@KUBUNTU-SERVER:~$ sudo dpkg --install libc6*.deb
dpkg: regarding libc6_2.28-10_i386.deb containing libc6:i386:
libc6:i386 breaks locales (<< 2.28)
locales (version 2.27-3ubuntu1.4) is present and installed.

dpkg: error processing archive libc6_2.28-10_i386.deb (--install):
installing libc6:i386 would break locales, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.28-10_i386.deb
matt@KUBUNTU-SERVER:~$ sudo dpkg --install libc6_2.28-10_i386.deb
dpkg: regarding libc6_2.28-10_i386.deb containing libc6:i386:
libc6:i386 breaks locales (<< 2.28)
locales (version 2.27-3ubuntu1.4) is present and installed.

dpkg: error processing archive libc6_2.28-10_i386.deb (--install):
installing libc6:i386 would break locales, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.28-10_i386.deb

Any suggestions?
Hehehe.

I really am laughing now.

Matt
Matt
1 year ago

Unfortunately the dependancy is still for 2.28:

matt@KUBUNTU-SERVER:~$ sudo dpkg --install qemu-user-static_3.1+dfsg-8+deb10u8_i386.deb
[sudo] password for matt:
Selecting previously unselected package qemu-user-static.
(Reading database ... 232791 files and directories currently installed.)
Preparing to unpack qemu-user-static_3.1+dfsg-8+deb10u8_i386.deb ...
Unpacking qemu-user-static (1:3.1+dfsg-8+deb10u8) ...
Setting up qemu-user-static (1:3.1+dfsg-8+deb10u8) ...
update-binfmts: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by update-binfmts)
dpkg: error processing package qemu-user-static (--install):
installed qemu-user-static package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
qemu-user-static

The binfmt-support depends on libc6 being at 2.28. 🙁

Funny thing is that this idea all started when I realized that I couldn’t install docker on my Synology NAS (DS218play). I was going to emulate there in order to run a Minecraft server! When I found out that the hardware isn’t up to it (need 218+ to get the necessary Docker) I figured this old laptop would be a good option. I don’t have a rack in the house, or I’d unbox an old PowerEdge 1950 that I retired from our Data Center and format a couple of WD RED drives for this. Alas, it is too loud and doesn’t make a very good looking coffee table.

Looking like Debian for me if you think I’ll never see a 2.28 libc.

Matt
Matt
1 year ago
Reply to  Matt

Grabbing debian 10.7.0-i386 and 10.7.0-xfce-CD-1.
Either should boot from USB. xfce the way to go?

James
James
1 year ago

Hey James,

did something change with the SetupMinecraft.sh? i am re installing my server and i removed all my minecraftpe directories and re downloaded your setup script. now my directory doesn’t have any of the start stop or restart.sh scripts. its weird.

here is the ls -al

drwxrwxr-x 17 4096 Dec 19 03:27 .
drwxrwxr-x 3 4096 Dec 19 02:43 ..
drwxrwxr-x 2 4096 Dec 19 03:27 backups
drwxr-xr-x 14 4096 Dec 12 00:38 behavior_packs
-rw-r--r-- 1 0 Dec 19 03:18 Dedicated_Server.txt
drwxr-xr-x 9 4096 Dec 12 00:38 definitions
drwxr-xr-x 2 4096 Dec 19 02:53 development_behavior_packs
drwxr-xr-x 2 4096 Dec 19 02:53 development_resource_packs
drwxr-xr-x 2 4096 Dec 19 02:53 development_skin_packs
drwxrwxr-x 2 4096 Dec 19 02:43 downloads
drwxrwxr-x 2 4096 Dec 19 03:27 logs
drwxr-xr-x 2 4096 Dec 19 02:53 minecraftpe
drwxr-xr-x 2 4096 Dec 19 02:53 premium_cache
drwxr-xr-x 4 4096 Dec 12 00:38 resource_packs
drwxr-xr-x 14 4096 Dec 12 00:38 structures
drwxr-xr-x 3 4096 Dec 19 02:53 treatments
drwxr-xr-x 3 4096 Dec 19 02:53 worlds
drwxr-xr-x 2 4096 Dec 19 02:53 world_templates

James
James
1 year ago

i just upgraded all my software on the Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-58-generic x86_64)

server label was Banski-Realm and everything else was default. on initial startup the server window starts but i dont believe the server ever started. i ctrl c out of the remote session and rebooted the server for good measures.

james
james
1 year ago
Reply to  James

i’m retrying the setup.sh script. i’m logging the session. i can send it to you if you can send me your email?

Mandar
Mandar
1 year ago
Reply to  James

I just ran into exact same problem. Fresh installed Ubuntu 20.04. Downloaded the Minecraftbe Setup script.. server came up fine. My son was not able to connect, so all I did was ran the restart script and poof.. all the scripts are gone. and the directory structure is pretty much whats above. Is there anything special I need to do to reinstall from scratch?

Mandar
Mandar
1 year ago

Yep seems issue is resolved. I was able to download setup script again reinstall and it came up fine. I was able to restart and its back up. Somehow my son still not able to connect from his laptop. We’re on the same network. I got the ip address right.. nc reporting connection succeeded. Not sure. will check what else is missing

Mandar
Mandar
1 year ago

didn’t work. His client version 1.16.201. Would that matter? Thanks!

Mandar
Mandar
1 year ago

Sorry James, this is coming way late, but guess what my problem was from Windows 10 client unable to connect to Ubuntu Bedrock? The stupid WiFi network setting was causing it. You have it right there in the comment above “private network”, but the setting is buried deep inside. Here’s how to find it.

Right next to the Windows main menu in the “Type here to search” textbox type Network and Sharing Center
Choose Network and Sharing Center
Choose Network & Internet
Choose WiFi
Click Manage Known Network
Click the WiFi network you are connected to
Click Properties
Change the Public to Private

That’s it. After that it started working. Not sure what network settings Windoze internally changes, but I spent many hours fiddling with firewall and other network settings. Anyway.. hope this helps someone.

Paul
Paul
1 year ago

Hey this is awesome!

I do need some help though…if I edit the server.properties with nano and save it – all my scripts disappear. If I do a “ls” command none of them are there. Does anyone know why? I have recreated it a couple times. With a clean install I can connect and play…but as soon as I modify it, things are gone and because the script is gone, obviously nothing starts.

Paul
Paul
1 year ago

Yeah it is really weird. I am going to try it on unbuntu with a GUI as well. I’ll check the drive…it was an old SSD I found at work….

Paul
Paul
1 year ago

Ok – I loaded it up in Ubuntu with a GUI after the drive was tested thoroughly – run the setup script with all defaults, and when the server is running I type stop and it stops.It says it stopped properly. Then I type start but I can tell it does not start properly.
If I navigate to minecraftbe/mcserver and run ./start.sh – there is no script. There are no scripts in the mcserver folder at all – they were there before.

All I did was type stop.

Paul
Paul
1 year ago

I used ubuntu server at first – the latest one and then the normal version, again the latest one. The hard drive test I did took a couple hours and was the diagnostic that was a part of the BIOS setup. Everything(ports etc.) was default option. I may have run the script with a sudo reference. I am not sure. I could try that again making sure to watch for that. I did grab the basic bedrock ubuntu server software off the mojang website and use it and everything worked first try – then my kids were happy with what they had for now – so I didn’t re attempt yet.
Appreciate the follow up. I will let you know what I find.

Paul
Paul
1 year ago

I will try again soon and report back ONLY if it is doesn’t
work. Right now my kids are in the middle of a world and I have been working a bunch. From reading in here, I would think you got it nailed down though. Thanks again for your help on this issue and the whole project.

1 20 21 22 23 24 58