You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/_index.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,8 @@ learning_objectives:
18
18
- Connect to the running Minecraft server from the Minecraft client application
19
19
20
20
prerequisites:
21
-
- Review [Get started with Oracle Cloud Infrastructure](/learning-paths/servers-and-cloud-computing/csp/oci/)
22
-
- Install software that allows you to connect to a running instance over SSH
23
-
- You will need a copy of the [Minecraft Java edition client](https://www.minecraft.net/en-us/download) installed, and [a license](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc) for the game
21
+
- An Oracle Cloud Infrastructure (OCI) account
22
+
- A copy of the [Minecraft Java edition client](https://www.minecraft.net/en-us/download) installed, and [a license](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc) for the game
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/minecraft-client-connect.md
+31-22Lines changed: 31 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,64 +7,73 @@ weight: 4
7
7
layout: learningpathall
8
8
---
9
9
10
-
## Connecting the Minecraft client to the server
10
+
## Connect the Minecraft client to the server
11
11
12
12
### Opening the port for the Minecraft server
13
13
14
-
Before you connect to the Minecraft server, you will change the network policy to allow clients
15
-
to connect to the Minecraft server over TCP port number 25565. To do this, you need to modify
16
-
the networking settings for your instance in the OCI dashboard.
14
+
Before you connect to the Minecraft server, change the network policy to allow clients to connect to the Minecraft server over TCP port number 25565. To do this, you need to modify the networking settings for your instance in the OCI dashboard.
17
15
18
16
1. On the OCI Instances page, choose your Minecraft server instance.
19
17
2. In the **Networking** tab, click on the subnet name:
20
-

18
+

21
19
3. On the **Security** tab of the subnet page, choose the security list which is active for the instance
22
20
(by default, this is called "Default Security List for vcn-xxxxxxxx")
23
-

21
+

24
22
4. Under **Security rules**, add a new Ingress rule (this means the rule applies to incoming traffic
25
-
from outside the instance). Set **Source CIDR** to "0.0.0.0/0" (this means all IP addresses can
26
-
connect), and set the **Destination Port Range** field to 25565.
27
-

23
+
from outside the instance). Set **Source CIDR** to the public IP address (or range) of the
24
+
players who will connect to your server. For example, if your home IP address is `203.0.113.45`,
25
+
set the Source CIDR to `203.0.113.45/32` to allow only that address. You can add multiple
26
+
ingress rules if players connect from different networks.
28
27
29
-
You will also need to update the instance's local firewall to allow connections to port 25565 on
30
-
your instance. Reconnect to your instance with SSH, and run the following commands:
31
-
```
28
+
{{% notice Warning %}}
29
+
Avoid using `0.0.0.0/0` as the Source CIDR. This opens the port to the entire internet and
30
+
exposes your server to unauthorized access attempts. Always restrict access to only the IP
31
+
addresses that need to connect.
32
+
{{% /notice %}}
33
+
34
+
Set the **Destination Port Range** field to 25565.
35
+

36
+
37
+
You can find your current public IP address by searching "what is my IP address" in a web browser
38
+
from the network you will use to connect.
39
+
40
+
You will also need to update the instance's local firewall to allow connections to port 25565 on your instance. Run the following commands:
You should now be able to run your Minecraft server on the OCI instance, then start your client
37
-
on your laptop or desktop., You will first be asked to log in with your Microsoft or Mojang account.
47
+
You should now be able to run your Minecraft server on the OCI instance, then start your client on your laptop or desktop. You will first be asked to log in with your Microsoft or Mojang account.
48
+
38
49
Use the credentials you created for your Microsoft account.
39
50
40
51
### Connecting to the server from the Minecraft client
41
52
42
53
1. Before connecting to the server with the client for the first time, you will need to
43
-
[register for a Microsoft account](https://www.minecraft.net/en-us/download).
54
+
[register for a Microsoft account](https://signup.live.com/).
44
55
2. Start your Minecraft client and log in with your Microsoft account credentials.
45
56
3. Start the "Minecraft Java edition" client from the launcher.
4. Choose **Multiplayer** mode - read and click through the warning that third party servers are not operated by Mojang.
48
59
5. To add your server to the menu of available servers, choose **Add server**, name your server
49
60
something meaningful ("My OCI server" for example) and put the IP address of your instance into the
50
61
**Server Address** field:
51
-

62
+

52
63
53
64
You can now join the server and start building!
54
65
55
-

66
+

56
67
57
68
### What you've accomplished
58
69
59
70
In this guide, you successfully:
71
+
60
72
- Provisioned an Arm-based VM instance on Oracle Cloud Infrastructure.
61
73
- Installed Java and deployed the Minecraft server software.
62
74
- Configured OCI security ingress rules and server-side firewalls to expose the port.
63
75
- Added and connected to the server using the Minecraft client application.
64
76
65
77
### Next steps
66
78
67
-
Now that your server is running, you can share the IP address with friends for multiplayer play. You can also explore automated startup scripts to ensure the server automatically recovers from reboots.
68
-
69
-
70
-
79
+
Now that your server is running, you can share the IP address with friends for multiplayer play. You can also explore automated startup scripts to ensure the server automatically recovers from reboots.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/minecraft-server-install.md
+44-29Lines changed: 44 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,43 +11,56 @@ layout: learningpathall
11
11
12
12
### Installing the Java Runtime Environment
13
13
14
-
Before you install the Minecraft server, you need to make sure that there are some prerequisites
15
-
installed. For the Minecraft 26 server or earlier, you will need Java 25.
14
+
Before you install the Minecraft server, you need to install the required software. For the Minecraft 26 server or earlier, you will need Java 25.
16
15
17
-
Connect to your instance using SSH as described in the previous step. You can install Java 25 on
18
-
Oracle Linux with:
16
+
Connect to your instance using SSH as described in the previous step. You can install Java 25 on Oracle Linux 9 with:
19
17
20
18
```console
21
-
sudo dnf install java-25-openjdk -y
19
+
sudo dnf install java-25-openjdk.aarch64 -y
22
20
```
23
21
24
-
and on Ubuntu or similar distributions, with
22
+
### Keeping the server running after disconnecting
23
+
24
+
The Minecraft server runs in the foreground of your terminal session. If you close your SSH
25
+
connection, the server process will stop. To keep the server running after you disconnect, use
26
+
`tmux` to create a persistent terminal session.
27
+
28
+
While still connected to your instance via SSH, install `tmux` on Oracle Linux 9:
25
29
26
30
```console
27
-
sudo apt install openjdk-25-jre -y
31
+
sudo dnf install tmux -y
28
32
```
29
33
30
-
Since the Minecraft server starts on the command line, you might also want to install the `screen` or
31
-
`tmux` utilities which allows commands to keep running after you disconnect from the server.
32
-
These commands are not strictly necessary, but you will need them to be running if you want to keep
33
-
the server running when you disconnect from your SSH session.
34
+
Start a new `tmux` session named "minecraft":
35
+
36
+
```console
37
+
tmux new -s minecraft
38
+
```
34
39
35
-
Running the Minecraft server at start-up, or keeping it running when you are not connected, will
36
-
not be covered in this learning path.
40
+
You are now inside a `tmux` session. Any commands you run here will continue running even after you
41
+
disconnect from SSH. You will start the Minecraft server inside this session in the next section.
42
+
43
+
When you need to disconnect, press `Ctrl+B` then `D` to detach from the session. The server
44
+
continues running in the background.
45
+
46
+
To reattach to the session later (for example, after reconnecting via SSH):
47
+
48
+
```console
49
+
tmux attach -t minecraft
50
+
```
37
51
38
52
### Downloading and installing the Minecraft server
39
53
40
54
You can find the link for the latest version of the Minecraft server
41
-
[on the Minecraft website](https://www.minecraft.net/en-us/download/server). Copy the link to
42
-
`server.jar` from this page, and run the following command on your OCI instance to download it:
55
+
[on the Minecraft website](https://www.minecraft.net/en-us/download/server).
56
+
57
+
On that page, right-click the `minecraft_server.x.x.x.jar` link and copy the URL. Then run the following command on your OCI instance to download it:
43
58
44
59
```console
45
60
wget <paste URL to server.jar here>
46
61
```
47
62
48
-
This will download `server.jar` from the Mojang website, and you will have a `server.jar` file on your OCI
49
-
instance. To make it easier to keep track of different server versions, rename the `server.jar` file
50
-
with a more meaningful name:
63
+
This will download `server.jar` from the Mojang website, and you will have a `server.jar` file on your OCI instance. To make it easier to keep track of different server versions, rename the `server.jar` file to a more meaningful name:
51
64
52
65
```console
53
66
mv server.jar minecraft_server.26.2.jar
@@ -59,17 +72,21 @@ To start the Minecraft server, run the command:
This runs the server withough a graphical user interface, and allocates 8GB of memory to it. If you
63
-
allocated less than this amount of memory to your instance, set this number to 3/4 of the memory that
64
-
you allocated to the instance - the other operating system services need some memory too.
75
+
This runs the server without a graphical user interface, and allocates 8GB of memory to it.
76
+
77
+
The first time you do this, the start-up will fail and a file called `eula.txt` is created in the local folder.
65
78
66
-
The first time you do this, the start-up will fail expectedly - a file called `eula.txt` is created
67
-
in the local folder, and before you start the server, you first need to accept its terms of use. Open
68
-
this file and follow the instructions to accept the terms and conditions. Running the server again
69
-
after doing this will succeed, and you should see the following messages on the terminal, showing
70
-
that the process has completed successfully (timestamps will be different at the start of the lines):
79
+
Before you start the server, you first need to accept its terms of use.
71
80
81
+
Open `eula.txt` and change `eula=false` to `eula=true`, or run:
82
+
83
+
```console
84
+
sed -i 's/eula=false/eula=true/' eula.txt
72
85
```
86
+
87
+
Running the server again after doing this will succeed, and you should see the following messages on the terminal, showing that the process has completed successfully (timestamps will be different at the start of the lines):
88
+
89
+
```output
73
90
[00:40:50] [Server thread/INFO]: Starting minecraft server version 26.2
[00:40:50] [Server thread/INFO]: Default game type: SURVIVAL
@@ -96,6 +113,4 @@ You installed the open-source Java Runtime Environment on your instance, downloa
96
113
97
114
### Next step
98
115
99
-
With the server successfully running in the cloud, you will now open the necessary network ports to allow the Minecraft client to connect to your instance.
100
-
101
-
116
+
With the server successfully running in the cloud, you will now open the necessary network ports to allow the Minecraft client to connect to your instance.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci-instance-start.md
+22-20Lines changed: 22 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,23 @@ weight: 2
7
7
layout: learningpathall
8
8
---
9
9
10
-
## Starting an OCI A4 or A1 instance
10
+
## Starting an OCI A1 instance
11
11
12
-
Once you have [created an OCI account](/learning-paths/servers-and-cloud-computing/csp/oci/)
13
-
and verified that you can start an instance, you will create an Ampere powered A1 instance
14
-
and connect to it with SSH to install the Minecraft Java server.
12
+
Make sure you have an OCI account. If you need to create an account refer to
13
+
[Getting Started with Oracle OCI](/learning-paths/servers-and-cloud-computing/csp/oci/).
14
+
15
+
Next, create an Ampere powered A1 instance and connect with SSH.
15
16
16
17
1. Log on to [Oracle Cloud](https://cloud.oracle.com)
17
18
2. On the OCI dashboard, navigate to Compute -> Instances to start a new instance:
18
-

19
+

19
20
3. Click "Create instance", then:
20
21
* Choose one of the availability domains offered to you with A1 instances available
21
22
* Select "Change shape", and set the instance type to Ampere VM.Standard.A1.Flex:
22
-

23
+

23
24
* Beside the instance type, click the small black arrow to open options. Allocate 2 OCPUs
24
25
and 12 GB of memory to your instance
25
-
* Choose "Oracle Linux 9" or one of the other available images of your choice under "Change
26
+
* Choose "Oracle Linux 9" under "Change
26
27
image", then click Next
27
28
4. Use the default security options, click "Next" to get to networking options
28
29
5. Configure networking as follows:
@@ -33,20 +34,21 @@ and connect to it with SSH to install the Minecraft Java server.
33
34
* Create an SSH key pair if you do not have one (and download both private and public keys),
34
35
or upload the public key for an existing key pair so that you can connect to your instance
35
36
over SSH once it is created
36
-
5. Use default Storage options
37
-
6. After verifying that the instance is correctly configured, choose "Create" to provision a new
37
+
6. Use default Storage options
38
+
7. After verifying that the instance is correctly configured, choose "Create" to provision a new
38
39
instance
39
-
7. It can take up to 2 minutes for your instance to be created. Once created, you need to ensure
40
+
8. It can take up to 2 minutes for your instance to be created. Once created, you need to ensure
40
41
that there is a public IP address to connect to by going to the "Networking" tab for the instance:
41
-

42
-
8. Scroll down and click on the VNIC name - `instance-yyyymmdd-HHmm` by default - then on the IP
43
-
administration tab, and click on the three dots on the primary IP row to edit the IP address type
44
-
associated with the instance to set its type to "Ephemeral public IP":
45
-

46
-
47
-
Take note of the IP address under "Public IP address". You should now be able to SSH into your
48
-
instance with the command
49
-
```
42
+

43
+
9. If you did not select "Automatically assign public IPv4 address" during instance creation, you
44
+
will need to assign one manually. Scroll down and click on the VNIC name - `instance-yyyymmdd-HHmm`
45
+
by default - then on the IP administration tab, and click on the three dots on the primary IP row
46
+
to edit the IP address type associated with the instance to set its type to "Ephemeral public IP":
47
+

48
+
49
+
Take note of the IP address under "Public IP address". You should now be able to SSH into your instance with the command:
50
+
51
+
```console
50
52
ssh -i <path to private key> opc@<public IP address>
51
53
```
52
54
@@ -56,4 +58,4 @@ You successfully provisioned an Ampere A1 virtual machine instance on Oracle Clo
56
58
57
59
### Next step
58
60
59
-
Now that your VM is running and accessible, you will proceed to install Java and download the Minecraft server software.
61
+
Now that your VM is running and accessible, proceed to install Java and download the Minecraft server software.
0 commit comments