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":2312,"date":"2019-11-26T07:48:29","date_gmt":"2019-11-26T07:48:29","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2312"},"modified":"2019-12-11T00:47:50","modified_gmt":"2019-12-11T00:47:50","slug":"setup-minecraft-on-freebsd-10","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setup-minecraft-on-freebsd-10\/","title":{"rendered":"Setup Minecraft On FreeBSD 10"},"content":{"rendered":"

This article assumes you have a\u00a0AKLWEB Host VPS with 2 CPU and 2GB of ram<\/strong>. Please change any settings accordingly to your VPS type. This article also uses Minecraft 1.8, so please change accordingly if you wish to use something different.<\/p>\n

Install Basic Tools<\/strong><\/h3>\n

You may want to install\u00a0wget<\/code>,\u00a0nano<\/code>, and\u00a0screen<\/code>\u00a0by running the following command:<\/p>\n

pkg install screen nano wget\r\n<\/code><\/pre>\n

Install Java<\/strong><\/h3>\n

Install OpenJDK 7 by running the following command:<\/p>\n

pkg install java\/openjdk7\r\n<\/code><\/pre>\n

Once it is done, run the following command to verify the installation of OpenJDK 7:<\/p>\n

java -version \r\n<\/code><\/pre>\n

If you see the following, then you can proceed to the next step:<\/p>\n

openjdk version \"1.7.0_71\"\r\nOpenJDK Runtime Environment (build 1.7.0_71-b14)\r\nOpenJDK 64-Bit Server VM (build 24.71-b01, mixed mode)\r\n<\/code><\/pre>\n

Download and Setup Minecraft<\/strong><\/h3>\n

Run the following commands to download Minecraft:<\/p>\n

cd ~\r\nmkdir mcserver\r\ncd mcserver\r\nwget https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/1.8\/minecraft_server.1.8.jar \u2013no-check-certificate\r\n<\/code><\/pre>\n

Once it is downloaded, you will want to create a file called\u00a0eula.txt<\/code>\u00a0and populate it with\u00a0eula=true<\/code>. This is applicable to any server after version 1.7.9. By creating this file, you agree with the Mojang EULA which can be found\u00a0here<\/span><\/a>.<\/p>\n

Next, create a file called\u00a0startup.sh<\/code>\u00a0and populate it with the following:<\/p>\n

java -Xmx1500M -Xms750M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -jar  minecraft_server.1.8.jar nogui\r\n<\/code><\/pre>\n

Save the file and run the following command to start the server:<\/p>\n

screen sh startup.sh\r\n<\/code><\/pre>\n

If all is successful, you will be able to connect to the IP address of your VPS with the Minecraft game client. You have just setup Minecraft on FreeBSD 10.<\/p>\n

Security Note<\/strong><\/h3>\n

It is recommended to create a new user specifically for your server to make sure that the Minecraft server does not have root access. Giving a server or application root access poses a security risk. To create a new user, run\u00a0adduser<\/code>\u00a0and follow everything being prompted, but make sure that when it asks about the shell, to choose\u00a0nologin<\/code>\u00a0as a security measure for this user. Once completed, enter into your server directory and run the following command (Change\u00a0“minecraft”<\/strong>\u00a0with the username and group you have created):<\/p>\n

chown -R minecraft:minecraft .\r\n<\/code><\/pre>\n

This will change the owner of the content of that directory to\u00a0minecraft<\/code>. Next, run the following command to start the server:<\/p>\n

screen su -m minecraft -c \"sh startup.sh\"\r\n<\/code><\/pre>\n

This will start your server as the user\u00a0minecraft<\/code>. If everything is successful, the server will be running.<\/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,230,243],"manual_kb_tag":[211],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312"}],"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=2312"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312\/revisions\/2313"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2312"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2312"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}