This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

Similar documents
XLink Kai Raspberry Pi Beginners Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Dell EMC ME4 Series vsphere Client Plug-in

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Sputnik Installation and Configuration Guide

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

SAMA5D3x-CM Instruction to program images with PEEDI

cpouta exercises

Lab 3a Using the vi editor

Communication protocols and services

Exercise sheet 1 To be corrected in tutorials in the week from 23/10/2017 to 27/10/2017

Amazon Web Services Hands On S3 January, 2012

Relay Proxy User Guide

labibi Documentation Release 1.0 C. Titus Brown

Introduction to Joker Cyber Infrastructure Architecture Team CIA.NMSU.EDU

Exercise Sheet 2. (Classifications of Operating Systems)

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

CS CS Tutorial 2 2 Winter 2018

CHE3935. Lecture 1. Introduction to Linux

Introduction to the shell Part II

CIS 192 Linux Lab Exercise

This guide assumes that you are setting up a masternode for the first time. You will need:

Purpose. Target Audience. Install SNMP On The Remote Linux Machine. Nagios XI. Monitoring Linux Using SNMP

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

Running Kmeans Spark on EC2 Documentation

CS 460 Linux Tutorial

Step by Step Installation of CentOS Linux 7 and Active Circle

Quick Start Guide to Compute Canada Cloud Service

Amazon Web Services Hands on EC2 December, 2012

Introduction to the Linux Command Line

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

Setting up the Seagate D4 NAS with Hard Disk Sentinel Pro. By Gary Ryan. Adapted from:

Assignment 1: Build Environment

Eaton NetWatch NetWatch installation and configuration guide VMware ESXi 3 Virtual architecture

Introduction: What is Unix?

OpenDaylight & PacketFence install guide. for PacketFence version 7.4.0

USING NGC WITH GOOGLE CLOUD PLATFORM

CENG393 Computer Networks Labwork 1

Singularity: container formats

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

Docusnap X - Docusnap Script Linux. Script-based Inventory for Linux

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

Install Guides. Automated Compiler Cold Node (Linux VPS) Absolute. Proof of View

Using ISMLL Cluster. Tutorial Lec 5. Mohsan Jameel, Information Systems and Machine Learning Lab, University of Hildesheim

PMOD Installation on MacOSX Systems

L.A.M.P. Stack Part I

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Masternode Setup Guide

Linux crash lecture by Andrey Lukyanenko

Configure CEM Controller on CentOS 6.9

Teradici PCoIP Connection Manager 1.8 and Security Gateway 1.14

Check the FQDN of your server by executing following two commands in the terminal.

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Table of Contents. Table of Contents License server installation guide - Linux. Download SCL

Definition Center Installation for Linux

Introduction in Unix. Linus Torvalds Ken Thompson & Dennis Ritchie

RG-MACC_2.0 Installation Manual

CHAPTER III PLANNING

Setting up a Chaincoin Masternode

Linux Shell Script. J. K. Mandal

CISC 220 fall 2011, set 1: Linux basics

IBM z Systems Development and Test Environment Tools User's Guide IBM

Config Server Firewall. Đặng Thanh Bình

Hands-on Exercise Hadoop

Operating Systems Linux 1-2 Measurements Background material

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Users, Groups and Permission in Linux

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi

Offloading NDO2DB To Remote Server

Precursor Steps & Storage Node

INd_rasN SOME SHELL SCRIPTING PROGRAMS. 1. Write a shell script to check whether the name passed as first argument is the name of a file or directory.

If you had a freshly generated image from an LCI instructor, make sure to set the hostnames again:

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

T.A.D / ABS - Installation

This material is based on work supported by the National Science Foundation under Grant No

CSE 303 Lecture 4. users/groups; permissions; intro to shell scripting. read Linux Pocket Guide pp , 25-27, 61-65, , 176

Adafruit's Raspberry Pi Lesson 6. Using SSH

User-friendly Cross-platform Industry 4.0 Web Viewer Smartphone-App Free Hotline

1 Getting Started with Linux.

opencrx Server Installation

Install the Marionnet network simulator on Kali Linux Light vbox-i686

Bitnami Apache Solr for Huawei Enterprise Cloud

How to run NoMachine server inside Docker

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell

UNIT 9 Introduction to Linux and Ubuntu

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Once the VM is started, the VirtualBox OS Manager window can be closed. But our Ubuntu VM is still running.

3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5

Installing idenprotect server on RHEL 6 or CentOS 6. idenprotect Ltd.

HPE StoreVirtual OS Update Guide

1. Open VirtualBox and start your linux VM. Boot the machine and log in with the user account you created in Lab #1. Open the Terminal application.

Install and Configure Ubuntu on a VirtualBox Virtual Machine

Bitnami MEAN for Huawei Enterprise Cloud

CS370 Operating Systems

PMOD Installation on MacOSX Systems

Introduction to UNIX. SURF Research Boot Camp April Jeroen Engelberts Consultant Supercomputing

Aware IM Version 8.1 Installation Guide

PMOD Installation on Linux Systems

Transcription:

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time. Running your own server lets you play together with your friends and family with your own set of rules. Open Firewall / IPTables ports for minecraft We need to ensure minecraft port is opened else you will not be able to connect to the server. sudo iptables -I INPUT 1 -p tcp -m tcp --dport 25565 -j ACCEPT sudo service iptables save sudo service iptables restart Preparing Directory for Minecraft Server First we should create a directory for our minecraft server at /home folder as shown (** You may name the folder to your preferred choice) mkdir /home/minecraftsvr cd /home/minecraftsvr/ Next we need to install Java on CentOS to run the server since minecraft is a Java-based game. sudo yum install java-1.8.0-openjdk

Verify if Java had been successfully installed Download Minecraft Server Jar file Now that we had java installed, we are ready to download our Server file as shown. wget https://s3.amazonaws.com/minecraft.download/versions/1.9/minecraft_ser ver.1.9.jar Next we turn the downloaded jar file into executable file by issuing the following command chmod +x minecraft_server.1.9.jar Installing Screen Utility By default, minecraft server will stop running once the SSH session is closed hence we need this utility to keep the server running in the background after we quit our SSH session upon launching the server. sudo yum install screen

Once we are done installing screen, we are ready to use it and start our Minecraft Server. Starting Minecraft Server for the first time Before we start our Minecraft server we need to run screen which create an instance of the screen. ** Xmx1024M is the amount of ram you will be allocating to the server. If you are running a server with 512M then ensure to change it accordingly. screen echo 'eula=true' > "/home/minecraftsvr/eula.txt" sudo java -Xmx1024M -Xms1024M -jar minecraft_server.1.9.jar nogui You should be seeing something similar as shown.

We can now test logging in with our Latest Minecraft Client. Congratulation! Your Minecraft server is now ready for your family and friends. Start Minecraft Server on server restart / Boot (Optional) Next we might want to setup our Minecraft Server to start automatically during server boot up or restart.

We will now create a Minecraft Server startup script as followed nano /home/minecraftsvr/startminecraft.sh Content of the startup script #!/bin/bash clear echo -e "Starting Minecraft.." sleep 5 cd /home/minecraftsvr/ screen -A -m -d -S minecraftsvr java -Xmx768M -Xms768M -jar /home/minecraftsvr/minecraft_server.1.9.jar nogui Next we will enable execute permission for the script we had just created with the following command chmod +x /home/minecraftsvr/startminecraft.sh Next we like to test if the script is being configured correctly by running the following command. /home/minecraftsvr/startminecraft.sh You should see similar output as shown. The script will launch an instance of screen and start Minecraft Server before detaching itself from the screen. You will be able to manage it by reattaching back to the screen console with screen -r minecraftsvr Finally we will now add the script to /etc/rc.local so it will start our Minecraft Server

during boot up. nano /etc/rc.local Append sh /home/minecraftsvr/startminecraft.sh to the last line of the file Congratulation! Our Server will now start during boot or restart. Screen Utility Cheat Sheet To detach from the current screen, issue keyboard command Ctrl+a + d To list screen issue command: screen ls To re-attach to screen (Needed when you login to your server ssh session and want to manage your minecraft server) issue command: screen -r number_of_minecraft_instance e.g screen -r 1