{"id":392,"date":"2022-07-16T14:00:00","date_gmt":"2022-07-16T14:00:00","guid":{"rendered":"https:\/\/techtutelage.net\/?p=392"},"modified":"2024-02-13T19:28:51","modified_gmt":"2024-02-13T19:28:51","slug":"free-minecraft-server-on-oracle-cloud-free-tier","status":"publish","type":"post","link":"https:\/\/techtutelage.net\/?p=392","title":{"rendered":"Free Minecraft Server on Oracle Cloud Free Tier"},"content":{"rendered":"\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/A6NFg_DDbBM\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\">The commands listed below were used in the video above:<\/h2>\n\n\n\n<p>Add the line below to &#8220;\/etc\/iptables\/rules.v4&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>-A INPUT -p tcp -m state --state NEW -m tcp --dport 25565 -j ACCEPT<\/code><\/pre>\n\n\n\n<p>Reload iptables config<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>iptables-restore &lt; \/etc\/iptables\/rules.v4<\/code><\/pre>\n\n\n\n<p>Install Java Runtime 17<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>add-apt-repository ppa:openjdk-r\/ppa\napt update\napt install openjdk-17-jre-headless<\/code><\/pre>\n\n\n\n<p>Create installation\/home directory for Minecraft Server<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>mkdir \/opt\/minecraft &amp;&amp; cd \/opt\/minecraft<\/code><\/pre>\n\n\n\n<p>Download Minecraft Server (v1.19 at time of the recording replace version with latest)<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>wget https:\/\/launcher.mojang.com\/v1\/objects\/e00c4052dac1d59a1188b2aa9d5a87113aaf1122\/server.jar\nmv server.jar minecraft_server.1.19.jar<\/code><\/pre>\n\n\n\n<p>To avoid server shutdown when ssh connection to the server is closed start screen session named &#8220;Minecraft&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>screen -S \"Minecraft\"<\/code><\/pre>\n\n\n\n<p>Start Minecraft Server (Will fail, need to accept EULA)<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>java -Xmx8G -Xms2G -jar minecraft_server.1.19.jar nogui<\/code><\/pre>\n\n\n\n<p>To accept EULA go to &#8220;\/opt\/minecraft\/eula.txt&#8221; set eula=true<\/p>\n\n\n\n<p>Start Minecraft Server.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>java -Xmx8G -Xms2G -jar minecraft_server.1.19.jar nogui<\/code><\/pre>\n\n\n\n<p>Detach from screen session Minecraft Ctrl + A + D<\/p>\n\n\n\n<p>To list open screen sessions run<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>screen -list<\/code><\/pre>\n\n\n\n<p>To attach to screen session run. Replace SessionID with your session id<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-green-cyan-color has-black-background-color has-text-color has-background\"><code>screen -r SessionID<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">If you find this tutorial helpful, you can support me by subscribing to my channel and leaving a comment. <\/h2>\n\n\n\n<ul class=\"wp-block-social-links aligncenter has-visible-labels is-layout-flex wp-block-social-links-is-layout-flex\"><li class=\"wp-social-link wp-social-link-youtube  wp-block-social-link\"><a rel=\"noopener nofollow\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/channel\/UCShZSSu3SpUuwRO1zTd43qQ?sub_confirmation=1\" class=\"wp-block-social-link-anchor\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z\"><\/path><\/svg><span class=\"wp-block-social-link-label\">SUBSCRIBE<\/span><\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The commands listed below were used in the video above: Add the line below to &#8220;\/etc\/iptables\/rules.v4&#8221; Reload iptables config Install Java Runtime 17 Create installation\/home directory for Minecraft Server Download Minecraft Server (v1.19 at time of the recording replace version with latest) To avoid server shutdown when ssh connection to the server is closed start [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techtutelage.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":5,"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/techtutelage.net\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/397"}],"wp:attachment":[{"href":"https:\/\/techtutelage.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtutelage.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtutelage.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}