Difference between revisions of "McMyAdmin"

From Amahi Wiki
Jump to: navigation, search
(Reformated, saving just in case.)
(Saving Tekkit instructions)
Line 8: Line 8:
  
 
=Installing McMyAdmin=
 
=Installing McMyAdmin=
 +
 
Minecraft server with web-based front end for server management.
 
Minecraft server with web-based front end for server management.
  
Line 30: Line 31:
  
 
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.
 
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==
 
==Installing the Minecraft Server==
  
Line 37: Line 39:
  
 
==Installing the Tekkit Server==
 
==Installing the Tekkit Server==
[http://www.technicpack.net/tekkit/ 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.
 
* s
 
  
 +
[http://www.technicpack.net/tekkit/ 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.
 +
*Navigate to the default hda web-apps folder
 +
      cd /var/hda/web-apps/mcmyadmin
 +
*Create a folder for Tekkit and get in the folder:
 +
      mkdir tekkit
 +
      cd tekkit
 +
*Download the latest Tekkit server zip file from [http://www.technicpack.net/tekkit/ here]. Replace my link below with your own latest one.
 +
      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.
 +
      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.
 +
      nano start.sh
 +
      #!/bin/sh
 +
      sh -Xmx 1500M -Xms512M -jar Tekkit.jar
 +
*Give permissions to the script.
 +
      chmod +x start.sh
 +
*Start Tekkit
 +
      ./start.sh
 
[[Category:Apps]]
 
[[Category:Apps]]

Revision as of 00:55, 16 July 2012

Note: Below instructions are for Fedora. Ubuntu users replace all "yum"s with "apt-get"s. So:

     yum install mono-basic

becomes

     apt-get install mono-basic.

Installing McMyAdmin

Minecraft server with web-based front end for server management.

  • Install dependencies
     yum install mono-basic
     yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin-1
  • Get and install McMyAdmin
     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
     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.

     nohup ./start.sh &

The web interface runs on port 8080 by default account admin/admin:

     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

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.

  • Navigate to the default hda web-apps folder
     cd /var/hda/web-apps/mcmyadmin
  • Create a folder for Tekkit and get in the folder:
     mkdir tekkit
     cd tekkit
  • Download the latest Tekkit server zip file from here. Replace my link below with your own latest one.
     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.
     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.
     nano start.sh
     #!/bin/sh
     sh -Xmx 1500M -Xms512M -jar Tekkit.jar
  • Give permissions to the script.
     chmod +x start.sh
  • Start Tekkit
     ./start.sh