From c4e2252c899185da26bbac39ecdaf62d47d970ad Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 2 May 2022 21:13:28 +0000 Subject: [PATCH] Update 'MagicBox : Magicbane in a Box' --- MagicBox-%3A-Magicbane-in-a-Box.md | 34 ++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/MagicBox-%3A-Magicbane-in-a-Box.md b/MagicBox-%3A-Magicbane-in-a-Box.md index e18a14a..38624af 100644 --- a/MagicBox-%3A-Magicbane-in-a-Box.md +++ b/MagicBox-%3A-Magicbane-in-a-Box.md @@ -45,7 +45,7 @@ Windows ```docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:\c\Users\YOURDIRHERE\mb.conf magicbane/magicbox:latest & ``` ->It is recommended that you change the external port only via the docker run command not within [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf). Docker will automatically bridge traffic to the correct internal port. MagicBox uses three ports. 5000 is used optionally for a debugger or profiler. 6000 is used for the login server. 8000 is used for the world server. If behind a NAT/router the user must [open these ports](https://portforward.com/games/) on his router or configure a DMZ. +>MagicBox uses three ports. 5000 is used optionally for a debugger or profiler. 6000 is used for the login server. 8000 is used for the world server. If behind a NAT/router the user must [open these ports](https://portforward.com/games/) on his router or configure a DMZ. It is recommended that you change the external port only via the docker run command not within [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf). Docker will automatically bridge traffic to the correct internal port. Below is the script the MagicBane team uses to cycle MagicBox in testing. @@ -118,11 +118,41 @@ An example cron job would read (see below). Take note that the CronLogs/EODJobs. 00 02 * * * export CLASSPATH="/usr/share/java/*" && /home/mbbox/magicbane/mbdump.sh "Commencing Daily Rebootings" >> /home/mbbox/magicbane/CronLogs/EODJobs.log 2>&1 ``` - The vigilant MagicBox administrator will always pay close attention to console_login and console_world. Anything in either log tagged as **ERROR** should be addressed. This applies doubly to bootstrap. `grep "ERROR" console_server` +MySQL client is also available within MagicBox + +```console +magicbox~/magicbane$mysql +Welcome to the MySQL monitor. Commands end with ; or \g. +Your MySQL connection id is 437 +Server version: 8.0.28-0ubuntu0.20.04.3 (Ubuntu) + +Copyright (c) 2000, 2022, Oracle and/or its affiliates. + +Oracle is a registered trademark of Oracle Corporation and/or its +affiliates. Other names may be trademarks of their respective +owners. + +Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. + +mysql> use magicbane; +Reading table information for completion of table and column names +You can turn off this feature to get a quicker startup with -A + +Database changed +mysql> +``` + +mbbox is also in the container wheel group along with sudo pre-configured. + +```console +magicbox~/magicbane$sudo sh +# +``` + ### Configuration Upon bootstrap MagicBox will first look for a [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf) file within the mb.conf host directory we mounted in the run command. If it cannot be found the game will instead use a default copy inside mb.data/ to boot with. This configuration boots using an internal MySQL server with a fresh database.