Then press 'CTRL+X', type 'Y' and then hit enter to save the file.īefore we try to start the server again, let's deal with some networking. Open the file ' eula.txt' with ' nano eula.txt' and edit it like so: It should fail the first time you try to run it and it will look like this: Java -Xmx1024M -Xms1024M -jar server.jar nogui Copy the link to the server download from the download page and then run this on the server: You can get that from and an easy way to download that in Linux is called ' wget'. Now we need to download the Minecraft server software. Once the final command is complete, enter java -version and you should see something like this:Įxcellent, we've installed Java! Install Minecraft Server Software Sudo yum-config-manager -enable rhel-7-server-optional-rpms Run the following commands, one at a time, from your SSH terminal: The VM needs to have Java installed, so let's do that first. Here's how I did that:Īnd now I am connected to the VM! Installing Java On The VM The default username for this server is "opc" (it stands for "Oracle Public Cloud" if you were wondering). Whichever you use, connect up to the server using the IP address and the private SSH key that you downloaded earlier. If you're using Windows, you'll have to use a tool like 'Putty' to connect to the server. If you are using a Mac or a Linux machine, you can use a command line like 'Terminal' to connect up to your server. Next up, we'll connect to the server to continue with the setup. After you have selected or pasted your public key file, click 'Create':Īt first your instance will be in 'Provisioning' state and the screen will look like this:Īfter about a minute or two, your server will be ready and it will look like this:Ĭopy the IP Address from the 'Public IP Address' section. You can instead select 'Choose SSH key file' and upload the public key file if you want to. Now, back in the Oracle Cloud console, paste this text in the box that says 'SSH key'. Next, open up the public key text file and copy the contents of that. ![]() I named my two files as 'minecraft_private_key.txt' and 'minecraft_public_key.txt'. If you use Mac or Linux, here is an article to show you how to create a key with ssh-keygen and if you use Windows you can use a program called PuTTY to create your key pair.Īfter you have generated your SSH key pair, keep both of these files to somewhere safe on your computer. There are a bunch of ways to create SSH Keys, and you'll have to use a different way if you're on Windows instead of Mac or Linux. They may seem a bit difficult at first, but I promise they are really easy to work with. If you've never heard of these, that's perfectly OK, we'll walk through the process of creating one here. You will need something known as an "SSH Key" to log in to your server later on. Next, enter a name for your VM and then click 'Show Shape, Network and Storage Options' and then make sure that you pick the 'always free' shape: After you have logged in to the Oracle Cloud dashboard, click on 'Create a VM instance' on the homepage. You'll need to create a Virtual Machine to host your Minecraft server. If you're not yet the age of majority (usually 18), please have your parent sign up for a free Oracle Cloud account and help you with the steps below!Īfter you have created your free account and signed in, the first thing you'll need to do is create a virtual machine that will be used to host the Minecraft server. This requires a credit card, but there are absolutely no charges at all if you follow the tutorial below. Before we get started, you'll have to sign up for a free account with Oracle Cloud. ![]() In this article we'll take a look at how you can create an "always free" virtual machine and use it to run a Minecraft Server. Heads Up! There's a newer version of this blog post available that will guide you through the updated process for setting up a much more powerful server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |