Special Thanks to lordkator for the initial FastTrack VM Image and the scripts that this repository is based on.
Blank MtG Server Debian 9.8 VM Image can be downloaded from HERE.
Install a new VM in VirtualBox (or download the above link).
##Impotant Note!!
Please ensure you run sudo apt-get update
and sudo apt-get upgrade
BEFORE running the following scripts if using the MtG Base Image.
Once complete
For this exercise, use the following passwords:
root: 12345678
And setup the user to be:
swgemu
password: 123456
Copy this series of commands into a terminal: Installs git, downloads scripts and installs them. ## DO NOT LOGIN AS ROOT!!!!
And just to make sure you don't ignore it and do it anyway!!
YOU WILL BREAK THE INSTALL IF YOU DO THIS AS ROOT!!
So..
Copy this long series of commands into your console..
sudo apt-get update && sudo apt-get install -y -q git && git clone https://github.com/ModTheGalaxy/DevEnv.git && cp -i ~/DevEnv/README.md ~/Documents && mkdir setup && mkdir run && cp -r ~/DevEnv/run/* ~/run/ && chmod -v +x ~/DevEnv/bin/* && cat ~/DevEnv/bin/pathto &>> ~/.bashrc
Once the above has completed, run the following from the command line.
-
cd ~/DevEnv/bin
-
./reqd - Installs required packages and programs including Lua, BerkelyDB, etc.
-
./setup - Setup of development environment follows these steps:
- Clone repos and checkout a local branch of mtgserver/master
- Server configuration
- For MySQL databases, passwords are [sudo]123456, then 123456 for the two DB's
- Tre files (They will need to be copied or moved)
- Asks if you want to build and run the server.
-
Will build the server. However if it fails, use the following:
-
cd ~/workspace/Core3/MMOCoreORB
-
build server with
make -j8
-
While the server is building, is a good time to copy your tre files to the server. There is a shared folder set up in the VM.
-
On your host computers C drive, create a folder called c:\vmshare
-
Copy your tre files to this folder
-
Open a new terminal and press the up arrow until you see this command: Then hit Enter.
sudo mount -t vboxsf vmshare ~/share/
-
The folder should now be available in the Debian file explorer, you should be able now, to drag the files actross to /tre
-
Once the build process has finished, it should immediately launch the server. If it does not, then:
-
cd ~/workspace/Core3/MMOCoreORB/bin
-
Run server with
./core3
-
you can run the "latest" script to update code and engine submodule as you wish. It will do a quick git-stash, git-pull, and git-stash-apply so you can get to the latest code w/o losing local work.
You will need to manually setup MySQL workbench. Easiest way is to set it up from the command line.
From command line run:
sudo mysql -u root
use mysql;
update user set password=PASSWORD("12345678") where User='root';
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
exit;
Now open workbench from start/programming.
Log in as root uping p/w 12345678
open galaxy table and edit IP address to your VM's address (default is localhost 127.0.0.1), save, apply, exit, reboot.