Minecraft server with web-based front end for server management.
bash code
|
yum install mono-basic yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin-1
|
- Get and install McMyAdmin
bash code
|
mkdir /var/hda/web-apps/mcmyadmin wget -P /var/hda/web-apps/mcmyadmin http://www.phonicuk.com/Downloads/McMyAdmin-latest.zip unzip /var/hda/web-apps/mcmyadmin/McMyAdmin-latest.zip -d /var/hda/web-apps/mcmyadmin/ chown -R apache:users /var/hda/web-apps/mcmyadmin chmod +x /var/hda/web-apps/mcmyadmin/start.sh
|
- Start McMyAdmin and Minecraft server
bash code
|
cd /var/hda/web-apps/mcmyadmin ./start.sh
|
and wait for it to download the latest Minecraft server. Once done stop it with <Ctrl-C> and run the following.
bash code
|
nohup ./start.sh &
|
The web interface runs on port 8080 by default account admin/admin:
Link
|
http://localhost:8080
|
By default the web interface can only be accessed from the machine it is running on. To make it available from another machine the entry passwordmd5 in McMyAdmin.conf.default must be changed.
Installing the Minecraft Server
The Minecraft server is included with McMyAdmin and runs on port 25565 by default. After users have properly forwarded ports to the Amahi server Minecraft players will be able to use the HDA URL to connect to the server.
Cronjob will need to be set for autostart on boot. Amahi may also be able to monitor this server to make sure it is running, similar to other services.
Installing the Tekkit Server
To logon to a Tekkit server the user must use the Technic Launcher and not the default MineCraft app.
Tekkit is a collection of Minecraft mods that allows for more advanced gameplay. The purpose of this tutorial is to illustrate the installation of Tekkit on your HDA. All commands below are for the terminal. The instructions are taken from this fine YouTube video.
- Navigate to the default hda web-apps folder
bash code
|
cd /var/hda/web-apps/mcmyadmin
|
- Create a folder for Tekkit and get in the folder:
bash code
|
mkdir tekkit cd tekkit
|
- Download the latest Tekkit server zip file from here. Replace my link below with your own latest one.
bash code
|
wget http://mirror.technicpack.net/files/Tekkit_Server_3.0.4.zip
|
- Extract the zip file with unzip. Replace name of file with your own latest one.
bash code
|
yum install unzip ls unzip Tekkit_Server_3.0.4.zip
|
- Create startup script for Tekkit. Note that 1500M stands for the number of megabytes of ram you are letting Tekkit use potentially. The 512M stands for the number of megabytes of ram you let Java use at startup.
bash code
|
nano start.sh
|
Text
|
#!/bin/sh sh -Xmx 1500M -Xms512M -jar Tekkit.jar
|
- Give permissions to the script.
bash code
|
chmod +x start.sh
|
The default port is 25565. This will be edited below.
- Before continuing, you must start Tekkit and stop it after Tekkit has completely loaded. This will create essential files.
bash code
|
cd /var/hda/web-apps/tekkit ./start.sh stop
|
- You must also do the same thing with McMyAdmin
bash code
|
cd /var/hda/web-apps/mcmyadmin mono McMyAdmin.exe stop
|
For the purposes of this tutorial, it is assumed that both McMyAdmin and Tekkit have been installed and started/stopped as outlined above. We need to copy the Tekkit files into McMyAdmin. I used the GUI here and am unfamiliar with the terminal commands.
- Go into the Tekkit folder, rename Tekkit.jar to craftbukkit.jar
Tekkit and Minecraft Vanilla Coexisting in McMyAdmin
- Follow the McMyAdmin tutorial above, except name the McMyAdmin folder "McMA_Vanilla". Replace all "McMyAdmin" with "McMA_Vanilla" as needed.
- Create a folder called MineCraft.
bash code
|
mkdir /var/hda/web-apps/MineCraft
|
- Copy (not move) McMA_Vanilla into the MineCraft folder.
bash code
|
cp -fr /var/hda/web-apps/McMA_Vanilla /var/hda/web-apps/MineCraft
|
- Rename the original McMA_Vanilla to McMA_Tekkit.
- Move McMA_Tekkit into MineCraft folder.
bash code
|
mv /var/hda/web-apps/McMA_Tekkit /var/hda/web-apps/MineCraft
|
- Follow the Tekkit tutorial above.
- Rename the Tekkit.jar file to craftbukkit.jar, AFTER having started and stopped the Tekkit and MineCraft servers at least once as outlined above.
bash code
|
cd /var/hda/web-apps/tekkit RENAME command
|
- Copy the contents of the tekkit folder into the McMA_Tekkit/Minecraft folder, merge and replace all files as needed.
- Delete the now empty tekkit directory
bash code
|
rm -fr /var/hda/web-apps/tekkit
|
- Now we must edit the ports so that both McMyAdmin servers can run at the same time:
bash code
|
ctrl+x y (to confirm save) enter
|
- And the same must be done with the MineCraft servers
bash code
|
cd /var/hda/web-apps/MineCraft/McMA_Tekkit/Minecraft nano server.properties Change server-port 25565 (line 8) to server-port 25665 ctrl+x y (to confirm save)
|
bash code
|
cd /var/hda/web-apps/MineCraft/McMA_Tekkit mono McMyAdmin.exe
|
- In a new terminal, start the Vanilla server
bash code
|
cd /var/hda/web-apps/MineCraft/McMA_Vanilla mono McMyAdmin.exe
|
Access McMyAdmin
- For the Tekkit McMyAdmin:
- For the Vanilla McMyAdmin:
Join MineCraft Server with Client
bash code
|
hda IP):25665
|
bash code
|
hda IP):25565
|