{"id":16,"date":"2013-01-31T17:41:24","date_gmt":"2013-01-31T17:41:24","guid":{"rendered":"http:\/\/www.brianmarkus.com\/?page_id=16"},"modified":"2013-01-31T17:41:24","modified_gmt":"2013-01-31T17:41:24","slug":"tekkit-install-notes-for-centos-linux","status":"publish","type":"page","link":"http:\/\/www.brianmarkus.com\/?page_id=16","title":{"rendered":"Tekkit install notes for CentOS Linux"},"content":{"rendered":"<p><strong>Tekkit Install notes for\u00a0 CentOS\u00a0 &#8211; Not a blog, just notes for my friends.<\/strong><\/p>\n<p>Tekkit as of Jan 2013 requires java 1.7 JDK.<\/p>\n<p>Check the version of java you have.<\/p>\n<p>First locate the binary (Executable)<\/p>\n<p>[root@vps minecraft]# find \/usr -name java<br \/>\n\/usr\/share\/java<br \/>\n\/usr\/bin\/java<br \/>\n\/usr\/lib\/java<br \/>\n\/usr\/lib\/jvm\/java<br \/>\n\/usr\/lib\/jvm\/java-1.6.0-openjdk-1.6.0.0\/bin\/java<br \/>\n\/usr\/lib\/jvm\/java-1.6.0-openjdk-1.6.0.0\/jre\/bin\/java<br \/>\n\/usr\/lib\/jvm-exports\/java<br \/>\n[root@vps minecraft]#<\/p>\n<p>use <strong>java -version <\/strong>with the fully qualified path in front of it to determine the version.\u00a0 As you can see by the paths they look to all be java-1.6<\/p>\n<p>We will need to install java-1.7<\/p>\n<p>Using YUM we need to search for the correct version.<\/p>\n<p>[root@vps minecraft]# yum search java-1.7<br \/>\nLoaded plugins: fastestmirror<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n* base: mirror.ovh.net<br \/>\n* extras: mirror.ovh.net<br \/>\n* updates: mirror.ovh.net<br \/>\n========================================== Matched: java-1.7 ===========================================<br \/>\n<strong>java-1.7.0-openjdk.i386 : OpenJDK Runtime Environment<\/strong><br \/>\njava-1.7.0-openjdk-demo.i386 : OpenJDK Demos<br \/>\njava-1.7.0-openjdk-devel.i386 : OpenJDK Development Environment<br \/>\njava-1.7.0-openjdk-javadoc.i386 : OpenJDK API Documentation<br \/>\njava-1.7.0-openjdk-src.i386 : OpenJDK Source Bundle<\/p>\n<p>Now that we know the package name we need to do the YUM install.<\/p>\n<p>[root@vps minecraft]# yum install java-1.7.0-openjdk.i386<br \/>\nLoaded plugins: fastestmirror<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n* base: mirror.ovh.net<br \/>\n* extras: mirror.ovh.net<br \/>\n* updates: mirror.ovh.net<br \/>\nSetting up Install Process<br \/>\nPackage 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.el5_9.1.i386 already installed and latest version<br \/>\nResolving Dependencies<br \/>\nInstall\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4 Package(s)<br \/>\nIs this ok [y\/N]: y<br \/>\nComplete!<\/p>\n<p>Create a non-root user to run minecraft as using adduser<\/p>\n<p>[root@vps tst]#adduser minecraft<\/p>\n<p>Change the users password<\/p>\n<p>[root@vps tst]# passwd minecraft<br \/>\nChanging password for user minecraft.<br \/>\nNew UNIX password:<br \/>\nRetype new UNIX password:<br \/>\npasswd: all authentication tokens updated successfully.<\/p>\n<p>Log out as root and login as the new user (minecraft) or switch users using the SU command<\/p>\n<p>su &#8211; minecraft<\/p>\n<p>WGET the latest tekkit server package.<\/p>\n<p>-bash-3.2$ wget http:\/\/mirror.technicpack.net\/Technic\/servers\/tekkit\/Tekkit_Server_3.1.2.zip<br \/>\n&#8211;2013-01-31 20:29:37&#8211;\u00a0 http:\/\/mirror.technicpack.net\/Technic\/servers\/tekkit\/Tekkit_Server_3.1.2.zip<br \/>\nResolving mirror.technicpack.net&#8230; 206.217.207.1<br \/>\nConnecting to mirror.technicpack.net|206.217.207.1|:80&#8230; connected.<br \/>\nHTTP request sent, awaiting response&#8230; 200 OK<br \/>\nLength: 14665243 (14M) [application\/zip]<br \/>\nSaving to: `Tekkit_Server_3.1.2.zip&#8217;<br \/>\n100%[==============================================================&gt;] 14,665,243\u00a0 5.90M\/s\u00a0\u00a0 in 2.4s<br \/>\n(5.90 MB\/s) &#8211; `Tekkit_Server_3.1.2.zip&#8217; saved [14665243\/14665243]<\/p>\n<p>The file is compressed (.zip) you need to UNZIP it.<br \/>\n-bash-3.2$ unzip Tekkit_Server_3.1.2.zip<\/p>\n<p>Change the permissions of the launch.sh script so that it is executable using the chmod command.<\/p>\n<p>-bash-3.2$ chmod 755 launch.sh<\/p>\n<p>&nbsp;<\/p>\n<p>Edit the <strong>launch.sh<\/strong> script to take advantage of java-1.7\u00a0 (Adjust the memory based on how much ram you have)<\/p>\n<p>-bash-3.2$ vi launch.sh<\/p>\n<p>NOTE: You will need to watch a video or read how to use vi.\u00a0 This does not show how.<\/p>\n<p>#!\/bin\/sh<br \/>\n\/usr\/lib\/jvm\/java-1.7.0-openjdk-1.7.0.9\/jre\/bin\/java -Xmx768M -Xms768M -jar Tekkit.jar nogui<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tekkit Install notes for\u00a0 CentOS\u00a0 &#8211; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-16","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/pages\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":3,"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/pages\/16\/revisions"}],"predecessor-version":[{"id":19,"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=\/wp\/v2\/pages\/16\/revisions\/19"}],"wp:attachment":[{"href":"http:\/\/www.brianmarkus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}