in Ukategorisert

Minecraft Debian AMP

As root

Prerequisites

apt-get install lib32gcc1 coreutils screen tmux socat unzip git wget libsqlite3-dev openjdk-8-jre openjdk-8-jdk
/sbin/service iptables save
adduser minecraft - set a strong password
open port 25565 - -A INPUT -p tcp –dport 25565 -j ACCEPT
open port 8080 - -A INPUT -p tcp –dport 8080 -j ACCEPT

As user minecraft

mkdir ~/AMP
cd ~/AMP
wget http://cubecoders.com/Downloads/ampinstmgr.zip
unzip ampinstmgr.zip
rm -i ampinstmgr.zip

To install and start

Run this command

./ampinstmgr CreateInstance McMyAdmin MCMA 0.0.0.0 8080 [LicenceKey] [Password] +Core.Login.Username [Username]

Replace 0.0.0.0 with your ip adress [LicenceKey], [Username] and [Password] with your McMyAdmin licence key, a username, and a password to login with.

To start

./ampinstmgr StartInstance MCMA

Start on boot

As root

crontab -e

Insert:

@reboot su minecraft -c "cd /home/minecraft/AMP/ && screen -dmS minecraft ./ampinstmgr -s MCMA"

Problem with Login

As user minecraft

Run

./ampinstmgr -ResetLogin MCMA [Username] [Password]

Replace [Username] [Password] with your username and password.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.