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":2265,"date":"2019-11-26T07:12:18","date_gmt":"2019-11-26T07:12:18","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2265"},"modified":"2019-12-06T00:04:11","modified_gmt":"2019-12-06T00:04:11","slug":"install-a-minecraft-server-on-fedora-26","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/install-a-minecraft-server-on-fedora-26\/","title":{"rendered":"Install a Minecraft Server on Fedora 26"},"content":{"rendered":"
This article is an upgraded port of the “Install a Minecraft Server on CentOS 7<\/a><\/strong><\/span>” tutorial. It has been updated for Fedora 26.<\/div>\n
\n

In this tutorial, I will guide you through setting up a\u00a0Minecraft<\/strong>\u00a0server on a high-performance\u00a0SSD VPS<\/strong>\u00a0at\u00a0AKLWEB Host<\/strong>. You will learn how to set up a\u00a0Minecraft server<\/strong>\u00a0on\u00a0Fedora 26 x64<\/strong>.<\/p>\n

Requirements<\/strong><\/h3>\n
    \n
  • Any SSH client.<\/strong><\/li>\n
  • 1GB RAM VPS server with Fedora 26 x64 installed.<\/strong><\/li>\n<\/ul>\n

    Preparation<\/strong><\/h3>\n

    First, login to your new Fedora server at\u00a0Aklweb host<\/strong>\u00a0and install the required software.<\/p>\n

    ssh root@ip.ip.ip.ip  \r\n<\/code><\/pre>\n

    Install Java 1.8:<\/p>\n

    [root@aklwebhost ~]# yum install java-1.8.0-openjdk  \r\n...\r\nIs this ok [y\/N]: y\r\n<\/code><\/pre>\n

    Install\u00a0screen<\/code>:<\/p>\n

    [root@aklwebhost ~]# yum install screen\r\n...\r\nIs this ok [y\/N]: y\r\n<\/code><\/pre>\n

    Open the Minecraft server port (25565) in\u00a0firewalld<\/code>:<\/p>\n

    firewall-cmd --zone=public --permanent --add-port=25565\/tcp\r\nfirewall-cmd --reload\r\n<\/code><\/pre>\n

    For security reasons, let’s create a user to run your Minecraft server under. If anyone finds a vulnerability in the server, they will not be able to gain root access on your server.<\/p>\n

    adduser mcserver\r\n# set a secure password.\r\npasswd mcserver\r\n# this allows you to run screen while su'd from root for the next step\r\nchown mcserver `tty`\r\n<\/code><\/pre>\n

    Configuration<\/strong><\/h3>\n

    Lets switch user to\u00a0mcserver<\/code>\u00a0and install Minecraft server! Change the URL accordingly to the newest version of Minecraft.<\/p>\n

    su - mcserver\r\nmkdir minecraft\r\ncd minecraft\r\nwget -O minecraft_server.jar https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/1.11.2\/minecraft_server.1.11.2.jar\r\nchmod +x minecraft_server.jar\r\nscreen\r\necho \"eula=true\" > eula.txt\r\n# start your Minecraft server\r\njava -Xmx768M -Xms768M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\n

    Congratulations, your Minecraft server is now up and running on a high-performance\u00a0SSD VPS<\/strong>\u00a0server!<\/p>\n

    Notes<\/strong><\/h3>\n

    To install on a 768MB VPS, follow the same commands above but change the last\u00a0java<\/code>\u00a0command to:<\/p>\n

    java -Xmx512M -Xms512M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\n

    If you require more players (and thus more RAM) you just launch a larger instance and then simply subtract 256M from the amount of RAM your instance has allocated. For example, a 4096M instance would launch with\u00a0-XmX3840M -Xms3840M.<\/code><\/p>\n

    If you want a private server, you can specify player names that are allowed to join. To do this, first, start your server:<\/p>\n

    java -Xmx768M -Xms768M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\n

    Wait for it to finish loading.<\/p>\n

    ...\r\n[Server thread\/INFO]: Preparing spawn area: 1%\r\n[Server thread\/INFO]: Preparing spawn area: 36%\r\n[Server thread\/INFO]: Preparing spawn area: 92%\r\n[Server thread\/INFO]: Done (3.496s)! For help, type \"help\" or \"?\"\r\n<\/code><\/pre>\n

    Type the following commands into the console.<\/p>\n

    whitelist on\r\nwhitelist add <username>\r\nwhitelist add <username2>\r\n....\r\n<\/code><\/pre>\n

    Enter your friend’s user name instead of\u00a0<username><\/code>. You can add as many of them as you would like. After this, you will see the following output:<\/p>\n

    [Server thread\/INFO]: Turned on the whitelist\r\n[Server thread\/INFO]: Added <username> to the whitelist\r\n<\/code><\/pre>\n

    If you want to turn whitelist off, simply type\u00a0whitelist off<\/code>.<\/p>\n<\/div>\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,243],"manual_kb_tag":[190],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265"}],"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=2265"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265\/revisions"}],"predecessor-version":[{"id":2266,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265\/revisions\/2266"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2265"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2265"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}