![]() ![]() On the first try, you will get an error telling you accept the EULA. Feel free to adjust the memory but note that it is capped by the ram you provisioned your VPS with and that your VPS itself would need some memory for its system processes too! The above command executes your minecraft_server.jar file with the first 2 flags specifying the amount of memory to run the server with (1gb in this case) while the nogui is included to save server resources (and hence boost performance) since there is no need for any graphical interface here. Give the following command a try: java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui This is the executable that you will run to get your minecraft server up and running. Once the download is complete, you will see a minecraft_server.jar file residing within the directory. You may choose to download the files locally and then upload them to your VPS using another client like WinSCP or Filezilla, but the simplest way would be to use wget with the download link as below: wget -O minecraft_server.jar For those who are interested, the official download link can be found at this website but the one we will be working with is paper spigot, a variation of the official minecraft server which is optimised for performance. We will be downloading the minecraft server files into this directory. Let us now create a directory for this project and keep the relevant server files within it: mkdir server Give the user superuser permissions: usermod -aG sudo minecraftįor the remaining part of the guide, exit from your root SSH session and login as minecraft instead (again replacing 11.11.11.11 with the IP address of your VPS): ssh Minecraft Server ![]() First, let us create a new minecraft user that we will be handling this minecraft server with: adduser minecraft With the above installations completed, we are not too far off from getting a simple minecraft server up and running. Next, to ensure that our minecraft server will be running 24/7, we will be using screen to keep the process alive even when we are no longer maintaining an SSH connection to the server: apt-get install screenįinally, as minecraft runs on the default port of 25565 (and that is what we will be using), we will need to update the firewall to allow connections on that port: ufw allow 25565/tcpĪnd that sums up pretty much all the basics needed for our server setup! User Setup Once you have your VPS provisioned, SSH into your server with the following command (replacing 11.11.11.11 with your server's IP address): ssh your server, run the update command below: apt-get updateĪs minecraft runs on java, there is also a need to install default-jdk: apt-get install default-jdk Other popular services like AWS and google cloud would work as well with their EC2 and compute instances but the nature of those services are such that they are slightly more complicated to work with so they will not be included in this guide. To begin, you will need to provision a VPS from cloud providers such as digitalocean or upcloud. By the end of this guide, you will have your very own multiplayer minecraft server that you and your friends (or anyone for that matter) can join and have fun on! Server Setup This is a generic minecraft server setup guide that has been tested on Ubuntu 18.04 and 20.04. How to create a minecraft server on Ubuntu (18.04/20.04) Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |