Skip to content

kleberboy/SkyTekx-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SkyTekx server with plugins

SkyTekx is a combination of Tekkit, Hexxit and SkyFactory2.5 in Minecraft 1.7.10.

Installation

there are a lot of ways to install this server on any system that is able to run java, but in this guide I will exclusively focus on installing it on debian 8.

Furthermore, my setup works without screen.

For server managing we will use rcon and ufw as a firewall.

Step 1:

First of all we need to make some preparations in the os to guarantee a reliable system: Setting up the correct locals:

cp /usr/share/zoneinfo/UTC /etc/localtime
export LC_ALL=
export LANG=en_US.UTF-8
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
apt-get update
apt-get dist-upgrade -y
apt-get install -t jessie-backports openjdk-8-jre-headless ca-certificates-java build-essential git ufw -y

Step 2:

After the preparations are finished we can finally start to set up our service by creating its home. In order to do that we need to create a system user with the name minecraft as well as the group minecraft.

adduser minecraft --system --group --home /opt/minecraft-server --disabled-login

For security reasons we will create the minecraft server in /opt.

mkdir -p /opt/minecraft/{backup/server,build/mcrcon,server}

Step 3:

In order to be able to manage the SkyTekx-server in the future we need to compile mcrcon.

cd /opt/minecraft-server/build/mcrcon
git clone git://git.code.sf.net/p/mcrcon/code
cd code
gcc mcrcon.c -o mcrcon
mv mcrcon /usr/local/bin/

Step 4:

Next step we have to clone my skytekx-server repo and link the systemd unit.

git clone https://github.com/kleberboy/SkyTekx-Server.git /opt/minecraft-server/server/skytekx-server
chown -Rv minecraft:minecraft /opt/minecraft-server/
ln /opt/minecraft-server/server/skytekx-server/systemd/skytekx.service /etc/systemd/system/
systemctl daemon-reload
systemctl start skytekx.service
systemctl status skytekx.service
systemctl enable skytekx.service

Step 5:

Last but not least, we should set up a firewall to prevent randoms from loging into mcrcon.

sed -i 's/IPV6=yes/IPV6=no/g' /etc/default/ufw
ufw allow 21/tcp
ufw allow 25565/tcp
ufw enable