How To Install Minecraft Server

Raspberry Pi Tutorial: Host A Minecraft Server On Ubuntu Desktop

How to Install Minecraft Mods on Your Server

Tags: Desktop, gaming, Raspberry Pi, Ubuntu, ubuntu Desktop

Welcome to the second in our series of Linux gaming posts in the run up to the holidays. This week, weve put together a tutorial that teaches you how to create a basic Minecraft Server on a Raspberry Pi with Ubuntu Desktop, so you can play locally with your friends.

This is a great afternoon project to work on with a friend or family member!

Hosting a Minecraft server unlocks a tonne of additional control over how you play Minecraft with your friends. You can change the game rules and difficulty, the behaviour of enemies and determine how players interact.

Setting up a server is also a great way to learn more about Linux. Linux is all about tinkering and trying new things. While it can seem intimidating at first, the instructions youll follow for this project will help you approach more complex Linux projects in the future!

In this tutorial, well be using a Raspberry Pi 4 4GB with a 32GB SD card, but you can also follow along on pretty much any laptop or PC that has Ubuntu Desktop installed. You could even use a Virtual Machine.

Check out these tutorials for getting started with Ubuntu Desktop on these platforms:

Note: Well be using Ubuntu Desktop 21.10 for Raspberry Pi in this tutorial, and recommend you follow along with Ubuntu Desktop 21.10 on whatever device you use.

Lets jump in.

How To Make A Minecraft Server

Minecraft is a very simple 3D game based on pixels. This game has created a lot of popularity among Internet users and video game enthusiasts in a short period of time. Minecraft is a group game that allows users to play together on a server. Among the features of this game, we can mention the construction of 3D buildings. The whole game is adventurous and time-consuming. In this article, we teach you how to install the Minecraft game server on Ubuntu and Windows Operating System. If you are looking for better performance of your game server, it is better to use a server with high RAM and CPU power to respond to players commands better and faster.

How To Set Up A Dedicated Minecraft Server On Linux

Home » SysAdmin » How to Set Up a Dedicated Minecraft Server on Linux

  • Step 10: Point a Domain at Your Minecraft Server
  • Introduction

    The ability to build and improve your gaming experience depends on the backend infrastructure of your server. Dedicated servers have advanced performance potential making them an efficient platform for gaming workloads.

    Minecraft dedicated servers are the ideal option for online Minecraft gaming.

    In this tutorial, you will learn why and how to set up a dedicated Minecraft server.

    Prerequisites

    • Access to a command line/terminal
    • A dedicated game server
    • At least 5GB of RAM
    • Intel core-based CPUs or AMD K8-based CPUs IBM 970 2.0 GHzand better

    Read Also: How To Find Your Server Ip Minecraft

    How To Set Up A Minecraft Server On Ubuntu Or Debian

    This guide was written for Ubuntu/Debian.Select distribution:

    Traducciones al EspañolEstamos traduciendo nuestros guÃas y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.

    Minecraft is one of the most popular games in the world. In Minecraft you and other players are free to build and explore anything you want in a 3D generated world. If you host your own Minecraft server, you decide the rules, and you and your friends can play together in this interactive adventure game.

    This guide shows you how to set up a personalMinecraft server on a Linode running Debian 9 or Ubuntu 18.04 LTS. This guide has been updated to be compatible with the major release of 1.13.2.

    Connect To Your Minecraft Server

    How to Install a Minecraft 1.8 Public Server
  • Open your local Minecraft client. After logging in, click on the Multiplayer option:

  • Click Add server and enter your Linodes IP address or domain name. When youre finished click Done:

  • Your server is now available to incoming connections. Click Join Server to connect:

  • Congratulations! You can now play Minecraft in a persistent world with your friends. For more information on working with screen, check out our guide onGNU Screen.

    Read Also: Free Bedrock Server Hosting 24 7

    Installing Minecraft On Centos#

    Before starting with the installation process, make sure you switch to userminecraft:

    sudo su - minecraft

    Create three new directories inside the user home directory using the following command:

    mkdir -p ~/
    • The backups directory will store your server backup. You can later synchronize this directory to your remote backup server.
    • The tools directory will store the mcrcon client and the backup script.
    • The server directory will contain the actual Minecraft server and its data.

    Installing Java And Screen

    Before we begin, keep in mind that the minimum operating system requirements for the following tutorial are Ubuntu 16.04 and CentOS 7.

    Connect to your server via SSH. Open the built-in terminal shell and type the following command:

    IMPORTANT: Dont forget to change both values with your real username and server IP address. When prompted, enter your username and password.

  • A Minecraft server requires Java. Therefore, check whether its installed on your system by executing this command:
  • java -version
  • Proceed to the second section of this tutorial if you already have Java installed. However, if Java is not found, follow the next step.
  • Run these two commands to download the latest software packages and install Java:
    • On Ubuntu:

    Import the PPA using this command in your terminal:

    sudo add-apt-repository ppa:linuxuprising/java -y 

    To install using the APT package manager, use the following command:

    sudo apt-get install oracle-java17-installer oracle-java17-set-default
    • On CentOS:
    sudo yum updatesudo yum install java -y
  • Once Java installation is complete, you can install Screen:
    • On Ubuntu:
    sudo yum install wget -y
  • Use wget command to download the Minecraft server properties file:
  • wget https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar
  • In this example, the latest server version is 1.15.2. You should visit this link to check if a newer version is available for download. If so, change the link for the command above.
  • sudo nano eula.txt
    eula=false

    Don’t Miss: How To Redeem Minecraft Code On Xbox One

    Installing Papermc’s Minecraft Server Jar

    Paper is a jar that extends and improves the Bukkit and Spigot APIs meaning if you want to install plugins you can. PaperMC also offers more control options for your server.

    sudo wget -O /mchost/v-1-17/live/minecraft_server.jar WEBSITE-URL sudo bash -c "echo eula=true >  /mchost/v-1-17/live/eula.txt"sudo chown -R mchost /mchost/

    NOTE: the server Jar will change over time and you will want to go to Paper’s Website to grab the newest Jar.

    Install Minecraft Add Forge Mod Loader

    How to Install Minecraft Server Texture Packs

    In order to play on a Minecraft server, you need… Minecraft! If you’ve purchased Minecraft, you can download it at

    It’ll download MinecraftInstaller.msi, launch it and follow the instructions to install it. Once installed, you will want to launch vanilla 1.12.2 at least once in order to install all the important stuff. Under the Installations tab, click + New, then under Versions, select 1.12.2. Select 1.12.2 from the drop down menu, and press PLAY. Once it fully loads to the menu screen, exit the game.

    Next, you’ll want to download and install Forge, go to this link and click on Windows Installer.

    Launch it, and click OK. Wait for it to install.

    Don’t Miss: How Do You Get Minecraft On Oculus Quest 2

    How Much Ram To Use

    The Lower Bound: -Xms4GThe Upper Bound: -Xmx4G

    These values can be changed up to around 10GB if you need to go over 10GB. This rarely needs to be done on smaller servers unless you have complex data packs, a large world file, or a lot of players . If you need these values to be higher please change the G1 Max and New Size Percent to the following:

    -XX:G1MaxNewSizePercent=60-XX:G1NewSizePercent=35

    How Do I Setup Port Forwarding

    When you completing the install of a Minecraft multiplayer server on your local PC instead of hosting it wth a cloud server provider, you need to open up access to your local PC to the internet through port forwarding. If you don’t setup port forwarding, your friends won’t be able to connect.

    The instructions for setting up Minecraft Server port forwarding will vary based on the type of router you use. So we’d recommend performing a google search on how to setup port forwarding based on the internet router or ISP you are using. This will complete your server install process.

    You May Like: Banner Numbers Minecraft

    How To Update Minecraft Server To The Latest Version

  • To upgrade your Minecraft to the latest version, change your current working directory to /minecraft by running the following command:

     cd /minecraft
  • Create a backup of the world file. This is an important step as in case of any issue it is easy to restore your settings using this backup file.

     sudo  cp - r world world_backup
  • After you run the command above, the world file is copied and a backup is created with the name of world_backup.

  • Create a backup of the minecraft_server.jar file as well. Create a backup and name it as mincraft_server.jar_backup by running the following command:

     sudo cp minecraft_server.jar minecraft_server.jar_backup
  • Visit the and copy the URL to the .jar file. Run the following command to download this .jar file:

     sudo wget  https://launcher.mojang.com/v1/objects/0a269b5f2c5b93b1712d0f5dc43b6182b9ab254e/server.jar
  • Version 1.17 is downloaded.

  • Upgrade the Minecraft server now. If you have an already running Minecraft server, stop it first. To do that, run the following command:

     screen  -r
  • You have now attached to the screen session. After it is attached, press Ctrl + C to stop the server.

  • To upgrade the Minecraft server, copy the new file and replace the existing version with it by running the following command:

     sudo mv minecraft_server.1.17.jar minecraft_server.1.13.jar
  • Running this command updates the Minecraft server versions from 1.13 to 1.17.

  • To start using this new version, you need to restart the Minecraft server. You can do that by:

  • Startup And Maintenance Script

    How To Download &  Install EssentialsX on Your Minecraft Server

    Alternatively, you can manage/automate the startup and shutdown of the Minecraft server using a script such as the ones listed below:

    Port forwarding is used when you have a router and you wish to let users connect to your server through it. If you wish to host your server for local reasons, it is not required that you do so. Keep in mind that port forwarding might cause security risks.

    When port forwarding, it varies on how your router will ask you for the information. If you don’t understand on how your router wants you to input the information, try visiting PortForward.com for a tutorial.

    Once you have managed to locate your router’s admin page, and find the Port Forwarding page hit add new service or custom service. When you get a page asking to setup the new rule, it should prompt you on what you want to call it. You may name it as you wish, but for simplicity, name it “minecraft“. Then, you want to look for “type”. If “TCP/UDP” or “Both” isn’t an option you will have to create two rules for both protocols. For the ports , enter 25565. If it asks for anything else other than output IP , leave it alone and continue.

    To find your computer’s IP address, use the following steps:

    Windows

    Now it is time to configure and connect.

    Don’t Miss: Minecraft Server Icon Maker Free

    Thats It Youve Completed The Raspberry Pi Tutorial

    We hope you found this guide useful, and were always looking to hear from gamers and Raspberry Pi users about their experiences with Ubuntu.

    If you have any feedback, suggestions for other gaming or Pi tutorials, or tips on getting started for new users, let us know your thoughts in the Ubuntu Desktop Discourse .

    Wed love to hear from you!

    As usual, you can keep up to date on all things Ubuntu Desktop on our blog.

    Port Forward The Server

    The server now works locally! Anyone on the same IP as yours can now join the server. In order to allow people not on the same IP to connect,you’ll need to port forward your server. To do this, google Whats my IP? on Google. Take the number it gives you, copy it, and paste it into the address bar. This will most likely take you to your router’s website where you can manage your router’s settings. Enter the password to your router to continue. My router is a Linksys, you’ll want to google around to find the steps with your specific router. You’ll want to find the Port Range Forwarding section of your router, and enter in the following information.

    Application Name: Minecraft server

    Read Also: How To Make A 24 7 Minecraft Server

    Creating Systemd Unit File #

    To run Minecraft as a service we will create a new Systemd unit file.

    Switch back to your sudo user by typing exit.

    Open your text editorand create a file named minecraft.service in the /etc/systemd/system/:

    sudo nano /etc/systemd/system/minecraft.service

    Paste the following configuration:

    Description=Minecraft ServerAfter=network.targetUser=minecraftNice=1KillMode=noneSuccessExitStatus=0 1ProtectHome=trueProtectSystem=fullPrivateDevices=trueNoNewPrivileges=trueWorkingDirectory=/opt/minecraft/serverExecStart=/usr/bin/java -Xmx1024M -Xms512M -jar server.jar noguiExecStop=/opt/minecraft/tools/mcrcon/mcrcon -H 127.0.0.1 -P 25575 -p strong-password stopWantedBy=multi-user.target

    Modify the Xmx and Xms flags according to your server resources. The Xmx flag defines the maximum memory allocation pool for a Java virtual machine , while Xms defines the initial memory allocation pool. Also, make sure that you are using the correct rcon port and password.

    Save and close the file and notify systemd that we created a new unit file:

    sudo systemctl daemon-reload

    Now you can start the Minecraft server by executing:

    sudo systemctl start minecraft

    The fist time you start the service it will generate several configuration files and directories including the Minecraft world.

    Check the service status with the following command:

    sudo systemctl status minecraft

    Enable the Minecraft service to be automatically started at boot time:

    sudo systemctl enable minecraft

    Make The Minecraft Group & User & Minecraft Directory

    How to Install and Setup a Modded Minecraft Server with Forge in 2021 for 1.12 – 1.16 and 1.17!

    The Minecraft server will make a lot of files for the world, settings, plugins, and other resources. The following commands make the directories for the servers. We will want to make a group and a user for the server to operate in and use. We will need to then make a directory file to live in and make sure that the new server user has ownership of the directory.

    sudo addgroup mchostsudo useradd -M -s /usr/bin/falsesudo mkdir /mchost/v-1-17/sudo mkdir /mchost/v-1-17/livesudo mkdir /mchost/v-1-17/backupssudo chown -Rv mchost /mchost/~

    Don’t Miss: How To Customize Shields In Minecraft

    Firewalling Nats And External Ip Addresses

    • You must open a TCP/UDP port on the firewall.
    • If the server in question is not reachable via a globally routable IP address, you will need to add appropriate address and/or port number translation rules to the gateway usually your router has the global IP address.
  • For help with address translation, opening the firewall and routing , portforward.com is a good source. Select your router from that list, skip the ad that comes after selecting the device, and you will see instructions for setting up port forwarding. Alternatively, you can read the documentation supplied with your router, modem, or other ISP related hardware.
  • Verify the port is open, and note your external IP by using a port checker tool, such as You Get Signal. The default port you should test is 25565, unless you specified something else. Have the Minecraft server running when you test the port.
  • You can obtain your external IP address from YouGetSignal.
  • Local network dedicated servers

    This only applies to Classic servers.

    To correct this, you must add a function to the end of your URL, bookmarks, or whatever else you connect by. The function is: ?override=trueExample:

    Note: This situation does not effect Beta servers, and you should be able to connect via an internal or external IP.

    The SRV record

    To manually verify the SRV record, use :

    Create A Folder For Your Server

    Now you need a place to put the Minecraft server on your Pi. We could do it the Windows way by opening the file manager, right-clicking, and creating a New Folder named Minecraft. But were already in the terminal, so lets keep typing here!

    mkdir Minecraft/

    The above will do exactly the same thing as using the file manager. In fact, you can check the file manager yourself to confirm that the new folder has appeared!

    Since were going to install our server inside the new folder, we need to tell our terminal that were going to work there.

    If you type

    ls

    You can see that were still in the home directory of our PC. Youll see your Documents and folders, as well as the new Minecraft folder you created. To get inside this folder, we need to Change Directory , so type:

    cd Minecraft/

    If you type ls again, you can see that now nothing is returned, because were inside an empty folder. Youll also see that your prompt now includes the Minecraft folder name:

    Read Also: Host Minecraft Server On Pc

    Run Your Minecraft Server

    1. Try starting the Minecraft server again by rerunning the java command to executing the jar file:

    java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.4.jar nogui

    Wait for the system to finish executing. You should get a message that the process is Done!, meaning that the Minecraft server is up and running.

    2. You can now detach from the Minecraft screen by pressing Ctrl+a+d.

    3. To reattach to the screen, press Ctrl+r.

    Note: To make changes to the default configuration, refer to the server.properties file stored in the /minecraft directory.

    This Tutorial Exists For These Os Versions

    Mods Para Minecraft Bedrock Anime / How To Download And ...
    • Ubuntu 20.04

    Minecraft is an open world and sandbox video game developed by Mojang Studios. With Minecraft, you can build anything you can imagine with unlimited resources in Creative mode. It allows you to play online with friends as well as in single-player mode. It is one of the best video games around the world. You can create your own Minecraft server to play with your friends and play together.

    In this tutorial, we will show how to set up your own Minecraft server on Ubuntu 20.04 LTS.

    Also Check: How Do You Change Your Skin In Minecraft Pe

    Popular Articles

    Related Stories

    Stay on op - Ge the daily news in your inbox