{"id":3770,"date":"2023-02-15T15:50:30","date_gmt":"2023-02-15T15:50:30","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=3770"},"modified":"2023-02-16T15:17:33","modified_gmt":"2023-02-16T15:17:33","slug":"install-minecraft-server-ubuntu","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/","title":{"rendered":"Install Minecraft Server on Ubuntu LTS"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en.jpg\" alt=\"Install Minecraft Server on Ubuntu LTS 18.04\/20.04\/22.04 - Webhi.com\" class=\"wp-image-3796\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Minecraft is a popular sandbox video game that was created by Markus Persson and developed and published by Mojang Studios. In Minecraft, players explore a blocky, procedurally generated 3D world and can build structures, craft items, and engage in other activities.<\/p>\n\n\n\n<p>A Minecraft server is a dedicated server that allows players to connect to the game over the internet or a local area network. By hosting a Minecraft server, players can enjoy Minecraft together with friends, regardless of their location. Setting up a Minecraft server can be done on various operating systems, including Windows, macOS, and Linux. This guide focuses on setting up a Minecraft server on an Ubuntu-based system <strong>18.04 \/ 20.04 \/ 22.04<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Update the system<\/h2>\n\n\n\n<p>First, update the system to ensure all packages are up to date:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Java 17<\/h2>\n\n\n\n<p>Minecraft server requires Java to run, so let&#8217;s install Java 17:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install openjdk-17-jdk<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create a user for the Minecraft server<\/h2>\n\n\n\n<p>It&#8217;s a best practice to run the Minecraft server as a separate user for security reasons:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo adduser minecraft<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Switch to the minecraft user<\/h2>\n\n\n\n<p>Now switch to the minecraft user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo su - minecraft<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Download the Minecraft server software<\/h2>\n\n\n\n<p>Download the Minecraft server software version 1.19.3:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ wget https:\/\/piston-data.mojang.com\/v1\/objects\/c9df48efed58511cdd0213c56b9013a7b5c9ac1f\/server.jar<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Start the Minecraft server<\/h2>\n\n\n\n<p>Start the Minecraft server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ java -Xmx1024M -Xms1024M -jar server.jar nogui<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Accept the EULA<\/h2>\n\n\n\n<p>Accept the End User License Agreement (EULA) by editing the eula.txt file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ nano eula.txt<\/code><\/pre>\n\n\n\n<p>Change&nbsp;<code>eula=false<\/code>&nbsp;to&nbsp;<code>eula=true<\/code>&nbsp;and save the file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restart the server<\/h2>\n\n\n\n<p>Stop the server with the command&nbsp;<code>stop<\/code>&nbsp;in the Minecraft console and then start it again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ java -Xmx1024M -Xms1024M -jar server.jar nogui<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Edit server.properties<\/h2>\n\n\n\n<p>Edit the server.properties file to configure the Minecraft server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ nano server.properties<\/code><\/pre>\n\n\n\n<p>Here are some of the important settings you can configure in this file:<\/p>\n\n\n\n<ul><li>server-name: The name of the server.<\/li><li>server-port: The port the server listens on (default is 25565).<\/li><li>level-name: The name of the world.<\/li><li>difficulty: The difficulty level of the game (options are Peaceful, Easy, Normal, and Hard).<\/li><li>gamemode: The default gamemode (options are Survival, Creative, Adventure, and Spectator).<\/li><\/ul>\n\n\n\n<p>Save the file when you&#8217;re done making changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configure firewall rules<\/h2>\n\n\n\n<p>If you have a firewall enabled on your Ubuntu server, you need to allow incoming traffic on port 25565:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo ufw allow 25565\/tcp<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Test the Minecraft server<\/h2>\n\n\n\n<p>Finally, test the Minecraft server by connecting to it from another device on the same network using the IP address of the Ubuntu 18.04\/20.04\/22.04 server and the default port 25565.<\/p>\n\n\n\n<p>You should now have a fully functioning Minecraft server version 1.19.3 running on Ubuntu with Java 17 and configured server.properties file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Minecraft is a popular sandbox video game that was created by Markus Persson and developed and published by Mojang Studios. In Minecraft, players explore a blocky, procedurally generated 3D world and can build structures, craft items, and engage in other activities. A Minecraft server is a dedicated server that allows players to connect to ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69],"tags":[],"yoast_head":"\n<title>Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-15T15:50:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-16T15:17:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"Install Minecraft Server on Ubuntu LTS\",\"datePublished\":\"2023-02-15T15:50:30+00:00\",\"dateModified\":\"2023-02-16T15:17:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\"},\"wordCount\":396,\"commentCount\":10,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\",\"name\":\"Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-02-15T15:50:30+00:00\",\"dateModified\":\"2023-02-16T15:17:33+00:00\",\"description\":\"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Minecraft Server on Ubuntu LTS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783029557\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783029557\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations","description":"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations","og_description":"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.","og_url":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-02-15T15:50:30+00:00","article_modified_time":"2023-02-16T15:17:33+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/02\/minecraft_ubuntu_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"Install Minecraft Server on Ubuntu LTS","datePublished":"2023-02-15T15:50:30+00:00","dateModified":"2023-02-16T15:17:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/"},"wordCount":396,"commentCount":10,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/","url":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/","name":"Install Minecraft Server on Ubuntu LTS - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-02-15T15:50:30+00:00","dateModified":"2023-02-16T15:17:33+00:00","description":"Learn how to install Minecraft Server version 1.19.3 on Ubuntu 18.04\/20.04\/22.04. This step-by-step guide will help you set up a server so you can play Minecraft with your friends.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/install-minecraft-server-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"Install Minecraft Server on Ubuntu LTS"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783029557","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1783029557","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/3770"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=3770"}],"version-history":[{"count":7,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/3770\/revisions"}],"predecessor-version":[{"id":3803,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/3770\/revisions\/3803"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=3770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=3770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=3770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}