So... the only tutorial on how to host a mcg server on android is [1] by @megaboi. But the steps they took could be simplified further. Also running on proot is unnecessary. We don't need apps like anlinux just to get the link for a rootfs dl script as there is proot distro. Also there can be ppl who want to just host it for their friends or just want to do random stuff like me. Also Quoting [1], no one is going to join your potato na2 clone anyway.
We will see two ways of running a server.
##requirements: termux, min 700 mb storage and some internet.
Way 1 : The ez way
In this way, we are gonna setup the standalone version of mcg. It's good if you don't want Microsoft flavoured java to stay on your device or want to save some space. No, we won't use the one provided by cc, as it won't work. So, we need to use the one I provide ; Its built for termux.
now, move to the folder and run the install script:
cd standalone-galaxy
bash install.sh
Then run the server with:
./MCGLinux
If you don't trust the binaries, a build script is provided:
move to the folder and run the build script:
cd standalone-galaxy
bash build.sh install
And run the server.
The problem with this approach is that you can't install plugins. This is for the ones who only wants to build with friends and nothing else.
Way 2 : The normal way
In this way, we will use the mono dependent, official build of mcg. If you think you can run plugins, sorry... Some plugins won't even compile because mono distributed in termux has its limits. This is for the ones who don't mind mono installed. This will take 700 mb storage.
At first, install mono, wget,unzip, libsqlite and then download mcg:
Now, if you want someone outside your network to actually join your server,use a port forwarding of tunneling like ngrok,zrok,localhost run or localtunnel which will take a 100 more mb because of nodejs. I use playit gg btw.
If you want any tutorial on administration and management, search on google ok.
If you want to compile mcg from source, you will need proot...but no need of that. Right?
Also I would like to thank megaboi, author of [1].
Again quoting [1], type /blockdb disable [level] to save space.
Why?
So... the only tutorial on how to host a mcg server on android is [1] by @megaboi. But the steps they took could be simplified further. Also running on proot is unnecessary. We don't need apps like anlinux just to get the link for a rootfs dl script as there is proot distro. Also there can be ppl who want to just host it for their friends or just want to do random stuff like me. Also Quoting [1], no one is going to join your potato na2 clone anyway.
We will see two ways of running a server.
##requirements: termux, min 700 mb storage and some internet.
Way 1 : The ez way
In this way, we are gonna setup the standalone version of mcg. It's good if you don't want Microsoft flavoured java to stay on your device or want to save some space. No, we won't use the one provided by cc, as it won't work. So, we need to use the one I provide ; Its built for termux.
at first, install git and clone my repo:
now, move to the folder and run the install script:
Then run the server with:
If you don't trust the binaries, a build script is provided:
move to the folder and run the build script:
And run the server.
The problem with this approach is that you can't install plugins. This is for the ones who only wants to build with friends and nothing else.
Way 2 : The normal way
In this way, we will use the mono dependent, official build of mcg. If you think you can run plugins, sorry... Some plugins won't even compile because mono distributed in termux has its limits. This is for the ones who don't mind mono installed. This will take 700 mb storage.
At first, install mono, wget,unzip, libsqlite and then download mcg:
Now move to the dir and run:
Now, if you want someone outside your network to actually join your server,use a port forwarding of tunneling like ngrok,zrok,localhost run or localtunnel which will take a 100 more mb because of nodejs. I use playit gg btw.
If you want any tutorial on administration and management, search on google ok.
If you want to compile mcg from source, you will need proot...but no need of that. Right?
Also I would like to thank megaboi, author of [1].
Again quoting [1], type /blockdb disable [level] to save space.
I hope this helps some1.
Thanks for reading.
Have a nice day :) .
[1]: https://f.classicube.net/topic/931-how-to-host-a-mcgalaxy-server-on-android-not-recommended/
Edited by tbapknoob12mc
Quote [1] for blockdb disable