Update 'Magicbane out of the Box'
+29
-2
@@ -8,6 +8,12 @@ The MagicBox adminisrator is lucky as Magicbane runs just as well outside of the
|
|||||||
|
|
||||||
### Geting Magicbane out of the box
|
### Geting Magicbane out of the box
|
||||||
|
|
||||||
|
Log into your container and dump the database.
|
||||||
|
|
||||||
|
`docker exec -it magicbox /bin/bash`
|
||||||
|
<br>
|
||||||
|
`./mbdump.sh`
|
||||||
|
|
||||||
Find the container id of your MagicBox
|
Find the container id of your MagicBox
|
||||||
|
|
||||||
`docker ps`
|
`docker ps`
|
||||||
@@ -16,7 +22,7 @@ Copy Magicbane out of the container
|
|||||||
|
|
||||||
`docker cp CONTAINERID:/home/mbbox/magicbane /home/YOURDIRHERE/`
|
`docker cp CONTAINERID:/home/mbbox/magicbane /home/YOURDIRHERE/`
|
||||||
|
|
||||||
Setup config
|
Setup configuration
|
||||||
|
|
||||||
`mkdir magicbane/mb.conf`
|
`mkdir magicbane/mb.conf`
|
||||||
<br>
|
<br>
|
||||||
@@ -35,4 +41,25 @@ Make sure MySQL is running.
|
|||||||
|
|
||||||
Configure Magicbane database and user accounts. The formerly MagicBox and now Magicbane administrator should edit this file to assign his own database user and passwords. Make sure to edit `magicbane/mb.conf/magicbane.conf` accordingly.
|
Configure Magicbane database and user accounts. The formerly MagicBox and now Magicbane administrator should edit this file to assign his own database user and passwords. Make sure to edit `magicbane/mb.conf/magicbane.conf` accordingly.
|
||||||
|
|
||||||
`sudo mysql < magicbane/mb.data/magicbanesql.conf`
|
`cd magicbane`
|
||||||
|
<br>
|
||||||
|
`sudo mysql < mb.data/magicbanesql.conf`
|
||||||
|
|
||||||
|
Now restore the database
|
||||||
|
|
||||||
|
`./mbrestore.sh`
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
***Bleep Blop***
|
||||||
|
|
||||||
|
Your new Magicbane bare metal server should now boot!
|
||||||
|
|
||||||
|
`./mbrestart.sh`
|
||||||
|
|
||||||
|
### Last steps
|
||||||
|
|
||||||
|
> It is not advisable in a bare metal installation to use the read-only deploy key shipped wtih MagicBox.
|
||||||
|
|
||||||
|
Please see the generating a new public keypair page.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user