Brian Markus

Tekkit install notes for CentOS Linux

Tekkit Install notes for  CentOS  – Not a blog, just notes for my friends.

Tekkit as of Jan 2013 requires java 1.7 JDK.

Check the version of java you have.

First locate the binary (Executable)

[root@vps minecraft]# find /usr -name java
/usr/share/java
/usr/bin/java
/usr/lib/java
/usr/lib/jvm/java
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java
/usr/lib/jvm-exports/java
[root@vps minecraft]#

use java -version with the fully qualified path in front of it to determine the version.  As you can see by the paths they look to all be java-1.6

We will need to install java-1.7

Using YUM we need to search for the correct version.

[root@vps minecraft]# yum search java-1.7
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ovh.net
* extras: mirror.ovh.net
* updates: mirror.ovh.net
========================================== Matched: java-1.7 ===========================================
java-1.7.0-openjdk.i386 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.i386 : OpenJDK Demos
java-1.7.0-openjdk-devel.i386 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.i386 : OpenJDK API Documentation
java-1.7.0-openjdk-src.i386 : OpenJDK Source Bundle

Now that we know the package name we need to do the YUM install.

[root@vps minecraft]# yum install java-1.7.0-openjdk.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ovh.net
* extras: mirror.ovh.net
* updates: mirror.ovh.net
Setting up Install Process
Package 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.el5_9.1.i386 already installed and latest version
Resolving Dependencies
Install       4 Package(s)
Is this ok [y/N]: y
Complete!

Create a non-root user to run minecraft as using adduser

[root@vps tst]#adduser minecraft

Change the users password

[root@vps tst]# passwd minecraft
Changing password for user minecraft.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

Log out as root and login as the new user (minecraft) or switch users using the SU command

su – minecraft

WGET the latest tekkit server package.

-bash-3.2$ wget http://mirror.technicpack.net/Technic/servers/tekkit/Tekkit_Server_3.1.2.zip
–2013-01-31 20:29:37–  http://mirror.technicpack.net/Technic/servers/tekkit/Tekkit_Server_3.1.2.zip
Resolving mirror.technicpack.net… 206.217.207.1
Connecting to mirror.technicpack.net|206.217.207.1|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 14665243 (14M) [application/zip]
Saving to: `Tekkit_Server_3.1.2.zip’
100%[==============================================================>] 14,665,243  5.90M/s   in 2.4s
(5.90 MB/s) – `Tekkit_Server_3.1.2.zip’ saved [14665243/14665243]

The file is compressed (.zip) you need to UNZIP it.
-bash-3.2$ unzip Tekkit_Server_3.1.2.zip

Change the permissions of the launch.sh script so that it is executable using the chmod command.

-bash-3.2$ chmod 755 launch.sh

 

Edit the launch.sh script to take advantage of java-1.7  (Adjust the memory based on how much ram you have)

-bash-3.2$ vi launch.sh

NOTE: You will need to watch a video or read how to use vi.  This does not show how.

#!/bin/sh
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre/bin/java -Xmx768M -Xms768M -jar Tekkit.jar nogui

 

Pages

  • Information Security
  • Martial Arts
  • Tekkit install notes for CentOS Linux

Archives

  • January 2013

Categories

  • Uncategorized (1)

WordPress

  • Log in
  • WordPress

Subscribe

  • Entries (RSS)
  • Comments (RSS)
CyberChimps ©2026