How to Install a Tekkit Classic Server on CentOS 6/7

  • Last Created On Dec 09, 2024
  • 7
0 0
This article is a port of “How to Setup a Tekkit Classic Server on Ubuntu 16.10“. It has been updated for CentOS 6 and CentOS 7.

In this tutorial, we’ll be creating a Tekkit Classic server. Tekkit is another popular modpack made for Minecraft. Due to the amount of modifications (mods), it will require a larger instance to cope with the intensive load.

Prerequisites

  • 4 gigabytes of RAM or more.
  • Java 7 (required, as Minecraft and various servers are written in Java).
  • wget (for downloading server files).
  • screen (required to run Java in the background).
  • unzip (extraction utility for ZIP files).
  • nano (text editor).

Installation

The installation process is the same for both CentOS 6, and CentOS 7 systems. This tutorial supports only 64 bit systems due to the resource requirements.

Before we download Tekkit, we must install our prerequisites.

Step one – updating our current packages:

yum update -y

Step two – install Java:

yum install java-1.7.0-openjdk -y

Step three – install screen:

yum install screen -y

NOTE: This step is required to keep the server active once you disconnect from SSH.

Step four – creating an unprivileged user:

adduser tekkit
passwd tekkit

When you’re prompted, enter your desired password.

Step five – creating the server directory:

cd /home/tekkit
mkdir server
cd server

Step six – downloading the Tekkit server files:

wget http://servers.technicpack.net/Technic/servers/tekkitmain/Tekkit_Server_v1.2.9g.zip

Step seven – extracting the archive:

unzip Tekkit_Server_v1.2.9g.zip

Step eight – modifying launch.sh:

nano launch.sh

You will see the following:

#!/bin/sh
java -Xmx3G -Xms2G -jar Tekkit.jar nogui

Modify 3G and 2G to 3.5G. It should look like this:

#!/bin/sh
java -Xmx3.5G -Xms3.5G -jar Tekkit.jar nogui

Exit and save (CTRL + O, followed by the Return or Enter key).

The reason we’re setting it to 3.5 gigabytes of RAM rather than 4 gigabytes is that the system will require it’s own memory to run new processes. The system will not allow Java to allocate the full allotment of RAM.

Step nine – signing into our unprivileged user:

ssh tekkit@localhost

Enter the password you set earlier when prompted.

Step ten – open up a screen:

screen -S tekkit

Step eleven – starting the server:

 sh launch.sh

You can exit the screen without killing the server by using the following combination: CTRL + A + D.

If you’d like to re-enter the screen, perform the following:

screen -r tekkit

At this point, you may exit the unprivileged user by entering the following command:

logout

Perform the command above again if you’d like to exit your server.

Conclusion

Connecting to your new Tekkit server is rather simple. Copy the IP address from your Aklweb host instance, and enter it into your Minecraft client.

That’s it! You’ve successfully installed a Tekkit server on CentOS.

Have fun!

Views: 7

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    96
  • Deploy a PyTorch Workspace on a Vultr Cl...
    71
  • Managing Backup Storage
    82
  • Automating FTP Backups in Windows Server
    71
  • Automating FTP Backups in Linux
    75

Popular Articles

  • Our General Terms & Conditions
    2630
  • Our Privacy Policy
    2475
  • Our Cookies Policy
    275
  • Our Terms of Use
    152
  • How to Install JAX with ROCm Acceleratio...
    96