Giter Site home page Giter Site logo

zanix / msc-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minecraftservercontrol/msc-gui

0.0 3.0 0.0 259 KB

A web-based GUI for Minecraft Server Control

License: BSD 2-Clause "Simplified" License

Makefile 3.13% Perl 70.10% HTML 11.33% CSS 15.44%

msc-gui's Introduction

Minecraft Server Control GUI

Index

Overview

Minecraft Server Control GUI (MSC-GUI) is a new web-based interface to the [Minecraft Server Control Script] (https://github.com/MinecraftServerControl/mscs) that has been controlling many Linux and UNIX powered Minecraft servers since it was first released in 2011.

Prerequisites for installation

The Minecraft Server Control GUI uses Perl to present a web-based interface to the [Minecraft Server Control Script] (https://github.com/MinecraftServerControl/mscs). As such, the mscs script must be installed and working for the GUI to function. Since the GUI is web based, you will need to have a web server installed and working. These directions assume you are using Apache, but any web server solution should function. To install Apache:

sudo apt-get install apache2

Installation

Download

If you followed the easiest way of downloading the script when installing MSCS, then you will want to do the same here. With git already installed:

git clone https://github.com/MinecraftServerControl/msc-gui.git
Other ways to download

Configuration

Navigate to the msc-gui directory that you just downloaded. Configuration can be done with the included Makefile in Debian and Ubuntu like environments by running:

sudo make install

Apache

Here is an example of a file that can be placed in the /etc/apache2/sites-enabled/ directory to enable Apache to run a webserver on port 80 on the host minecraft.server.com from the directory /var/www. Change these values to suit your the needs of your website. This configuration would make the GUI available at http:\\localhost\gui.

<VirtualHost *:80>
    ServerName minecraft.server.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www

    Alias /gui /var/www/gui
    <Directory "/var/www/gui">
        Order Allow,Deny
        Allow from all
        AllowOverride None
        AddHandler cgi-script .pl
        Options +ExecCGI -MultiViews -Indexes -Includes +FollowSymLinks
    </Directory>
</VirtualHost>

Make sure to create a symbolic link so that Apache can actually find the GUI:

sudo ln -s /opt/mscs/gui /var/www/gui

You will also need to enable the Apache CGI module and restart Apache for the GUI to work:

sudo a2enmod cgi
sudo service apache2 restart

Permissions

To allow Apache and the MSC-GUI access to MSCS, use your favorite editor to create a new file in the /etc/sudoers.d folder:

sudo editor /etc/sudoers.d/mscs

and add this text :

# Allow www-data to execute the msctl command as the minecraft user.
www-data ALL=(minecraft:minecraft) NOPASSWD: /usr/local/bin/msctl

Getting started guide

License

See LICENSE

Disclaimer

Minecraft is a trademark of Mojang Synergies AB, a subsidiary of Microsoft Studios. MSCS and MSC-GUI are designed to ease the use of the Mojang produced Minecraft server software on Linux and UNIX servers. MSCS and MSC-GUI are independently developed by open software enthusiasts with no support or implied warranty provided by either Mojang or Microsoft.

msc-gui's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.