# Installing the Minecraft Bedrock/PE server

Previously, we published an article on the topic of creating a Minecraft Java server. This time we will look at the installation process of the Minecraft Bedrock/Pocket Edition server.

## Initial information

The installation will be carried out on **Ubuntu 20.04 LTS OS,** so the instructions are suitable for both **VDS** and **Dedicated Server**.

The **Screen** utility will also help us in working with the server; we recommend reading the article: [**Screen** Installation](https://wiki.spacecore.pro/vds-dedicated/install-screen)

In turn, **Minecraft Bedrock** does not require **Java** installation on both the server and the client side. This is all because this version of the game is entirely written in **C++.**

## Uploading server files

We update the lists of packages and system repositories:

```
sudo apt-get -y update && sudo apt-get -y dist-upgrade
```

We will show two methods on how to download server files entirely through the **Linux** system console, as well as manually through **FileZilla software**.

### Linux console

First, we need to create a folder for the future server. Go to any directory of interest (**standard - root**) and use the command:

```
mkdir minecraftbedrock
```

{% hint style="info" %}
**minecraft bedrock** - is the name of the directory to be created, here you can specify any value.
{% endhint %}

We can use a special command to check all the files in a directory, thereby making sure that the folder is created.

```
ls
```

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FdJ4HKPfjVCZZz5j3plMS%2Fimage.png?alt=media&#x26;token=9894f8e7-21c1-41b9-9cb2-a6265643fe8c" alt=""><figcaption></figcaption></figure>

We see the created directory. We switch to it using the command

```
cd minecraftbedrock
```

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FVcOkX3safm8vz8JlumSI%2Fimage.png?alt=media&#x26;token=d8de9217-1bfb-470d-9675-a5bc6186a0bf" alt=""><figcaption></figcaption></figure>

Next, we will use the **wget** utility to download server files.

```
wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.221.01.zip
```

That's it, the archive with the files has been uploaded.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FgecoDU1u4irDvzTdVvgf%2Fimage.png?alt=media&#x26;token=91f3987e-e00d-4e82-bb24-d86a495a3cf6" alt=""><figcaption></figcaption></figure>

Now we need to unpack it. Install the **zip** utility:

```
apt-get install zip
```

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FW6voEzVseRpEd1qjWbtI%2Fimage.png?alt=media&#x26;token=72a5dadb-0280-458c-94cf-3024ba9cd042" alt=""><figcaption></figcaption></figure>

Use the command to unpack the archive:

```
unzip bedrock-server-1.16.221.01.zip
```

{% hint style="info" %}
**Where bedrock-server** is **1.16.221.01.zip** is the name of our archive.
{% endhint %}

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fp6rzxIcbx6WNUNASYmKi%2Fimage.png?alt=media&#x26;token=75a6b83a-a111-4aff-90e7-2222e35d3f7e" alt=""><figcaption></figcaption></figure>

### FileZilla

We connect to the server and create a directory in any folder **(PCM — Create a directory**).

You can use any name.

Go to the created directory. Download the archive from the **Mojang** website to your computer:

{% embed url="<https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.221.01.zip>" %}

We are sending the downloaded file to our server.<br>

The archive has been uploaded successfully.

Log in to the **Linux** console (**SSH**), then use the command to go to our directory:

```
cd bedrock
```

{% hint style="info" %}
**bedrock** -  is the catalog name.
{% endhint %}

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Ft7WBLYSVYvN2ELy8T20h%2Fimage.png?alt=media&#x26;token=388794fb-a7ef-4cc8-9907-ab33f649fbf7" alt="" width="271"><figcaption></figcaption></figure>

Next, use the command to unpack the archive:

```
unzip bedrock-server-1.16.221.01.zip
```

{% hint style="info" %}
Where **bedrock-server-1.16.221.01.zip** is the name of our archive.
{% endhint %}

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FqAsuaaacQqzxgW7sUdL3%2Fimage.png?alt=media&#x26;token=9ae5f9f3-c37e-4357-add6-f04d323bb7bd" alt=""><figcaption></figcaption></figure>

## Starting the server

For round-the-clock operation of the server, we create a **Screen** window with the command

```
screen -S bedrock
```

{% hint style="info" %}
**bedrock** is the name of the screen window.
{% endhint %}

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FG3V0UTtVzmyA8XO6LMLN%2Fimage.png?alt=media&#x26;token=4e4d0b38-2bc9-4272-8edf-3a4cdf4914d5" alt=""><figcaption></figcaption></figure>

Still in the directory of our server we use command

```
chmod 777 bedrock_server
```

Thus, we grant full rights to write, read and execute the file.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FbVg9NjmFqVvGtoGFLwgK%2Fimage.png?alt=media&#x26;token=d6b1ef50-d393-44f9-a3e2-a25eb90f9b68" alt=""><figcaption></figcaption></figure>

Next we go to the start of the server itself. We use the command

```
./bedrock_server
```

{% hint style="info" %}
**bedrock\_server**  - is the name of the server startup file.
{% endhint %}

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FxnQe1iMHigbvwnkuAXoY%2Fimage.png?alt=media&#x26;token=42a097f4-e792-4bb6-bf31-94f52aeb0e48" alt=""><figcaption></figcaption></figure>

Great! Our server has been successfully launched.

Use the **Ctrl + A + D** key combination to exit the **Screen** window.

## Connecting to the server

Let's try to log in from both versions of the game.

### Windows 10 Edition

We add the server, specifying the name, **IP address** and standard port.

We have successfully connected to the server.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FLGkOjhyfq4CcsvccziYl%2Fimage.png?alt=media&#x26;token=4777b35d-d141-4506-af7d-6096b1692fb4" alt=""><figcaption></figcaption></figure>

The console also displays information about the connection and exit of players from the server:

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F7DhMWqBXwQ1bQHLCj1K7%2Fimage.png?alt=media&#x26;token=cdaaf8f8-4ea2-4af7-9a4d-e3bc43e35c22" alt="" width="224"><figcaption></figcaption></figure>

### Pocket Edition

We re-enter the data for the connection.

The server is still running in the pocket version.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FMkiLIbmedqcLeNwZNAcr%2Fimage.png?alt=media&#x26;token=b750eb2b-a741-43ca-ab70-f6b0a043305c" alt=""><figcaption></figcaption></figure>
