Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2250,"date":"2019-11-26T07:07:48","date_gmt":"2019-11-26T07:07:48","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2250"},"modified":"2019-12-06T00:02:33","modified_gmt":"2019-12-06T00:02:33","slug":"how-to-setup-a-minecraft-server-on-ubuntu-18-04","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-setup-a-minecraft-server-on-ubuntu-18-04\/","title":{"rendered":"How to Setup a Minecraft Server on Ubuntu 18.04"},"content":{"rendered":"

Minecraft<\/strong>\u00a0is still one of the most popular games in the world. If you play the game, you probably play on servers all the time. This guide aims to teach you how to install, setup and manage a\u00a0Minecraft server<\/strong>\u00a0on\u00a0Ubuntu 18.04<\/strong>\u00a0from scratch.<\/p>\n

Prerequisites<\/strong><\/h2>\n

Before we begin, you’ll need the following:<\/p>\n

    \n
  • Ubuntu 18.04 or newer.<\/strong><\/li>\n
  • A standard, non-root user for running the server.<\/strong><\/li>\n<\/ul>\n

    Method<\/strong><\/h2>\n

    Once you’ve got the necessary requirements, log into your\u00a0VPS<\/strong>\u00a0as the standard, non-root user. This is important, as running a\u00a0Minecraft Server<\/strong>\u00a0as root can be extremely dangerous. Once you’ve logged in, we are going to update our repositories:<\/p>\n

    sudo apt-get update\r\nsudo apt-get upgrade\r\n<\/code><\/pre>\n

    Reboot your\u00a0VPS<\/strong>\u00a0and we’ll be ready to move onto the next step.<\/p>\n

    Now we’ll need to install the latest Java\u00a0SDK<\/strong>, which can be done by typing the following command:<\/p>\n

    sudo apt-get install openjdk-7-jdk\r\n<\/code><\/pre>\n

    Once completed, we are going to download the\u00a0Minecraft Server<\/strong>\u00a0executable for install. We will use\u00a0wget<\/code>\u00a0to do so:<\/p>\n

    sudo wget https:\/\/launcher.mojang.com\/mc\/game\/1.13\/server\/d0caafb8438ebd206f99930cfaecfa6c9a13dca0\/server.jar\r\n<\/code><\/pre>\n

    Following this, we are going to mark the downloaded file as executable by inputting the following command:<\/p>\n

    chmod +x minecraft_server.jar\r\n<\/code><\/pre>\n

    Now that we’ve downloaded the server, we need to accept the EULA:<\/p>\n

    echo \"eula=true\" > eula.txt\r\n<\/code><\/pre>\n

    Type the following command to start your server, then hit\u00a0ENTER<\/kbd>:<\/p>\n

    java -Xmx1024M -Xms1024M -jar minecraft_server.1.13.jar nogui\r\n<\/code><\/pre>\n

    This command will start a\u00a0Minecraft Server with 1GB (1024MB)<\/strong>\u00a0of\u00a0memory (RAM)<\/strong>\u00a0and no\u00a0GUI (graphical user interface)<\/strong>. You can change the amount of memory used by the server by swapping out\u00a01024<\/strong>\u00a0with a different number. For example, if you wanted\u00a02GB<\/strong>\u00a0of memory you would type out 2048 instead of 1024.<\/p>\n

    Final words<\/strong><\/h2>\n

    Now that you’ve got a basic\u00a0Minecraft Server<\/strong>\u00a0setup, you are free to explore further. You can access your server by inputting your\u00a0VPS’s IP<\/strong>\u00a0Address as the\u00a0hostname<\/strong>\u00a0on any\u00a0Minecraft<\/strong>\u00a0client.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105,242,245,247],"manual_kb_tag":[183],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2250"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2250"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2250\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2250\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2250"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2250"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}